Cuemon .NET Framework
FromString<T>(String,CultureInfo,ITypeDescriptorContext) Method

The type of the expected return value after conversion.
The string value to convert.
The culture-specific formatting information about value.
The type-specific formatting information about value.
Converts the specified string to its T equivalent using the specified context and culture information.
Syntax
'Declaration
 
Public Overloads Shared Function FromString(Of T)( _
   ByVal value As String, _
   ByVal culture As CultureInfo, _
   ByVal context As ITypeDescriptorContext _
) As T
public static T FromString<T>( 
   string value,
   CultureInfo culture,
   ITypeDescriptorContext context
)

Parameters

value
The string value to convert.
culture
The culture-specific formatting information about value.
context
The type-specific formatting information about value.

Type Parameters

T
The type of the expected return value after conversion.

Return Value

An object that is equivalent to T contained in value, as specified by culture and context.
Exceptions
ExceptionDescription
System.ArgumentExceptionInvalid value for T specified.
System.NotSupportedException The conversion cannot be performed.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Converter Class
Converter Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback