TYPE
CSharpTest.Net
FromString<TYPE> Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace > StringConverter Class : FromString<TYPE> Method

value

Glossary Item Box

Converts the provided string to a value of TYPE if the type is registered, or raises ArgumentOutOfRangeException if no transform is registered for that type. Throws an ArgumentException if the string can not be converted.

Syntax

Visual Basic (Declaration) 
Public Function FromString(Of TYPE)( _
   ByVal value As String _
) As TYPE
C# 
public TYPE FromString<TYPE>( 
   string value
)

Parameters

value

Type Parameters

TYPE

Exceptions

ExceptionDescription
System.ArgumentExceptionThe exception that is thrown when one of the arguments provided to a method is not valid.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys