| ObjectHelperParseT Method (String) |
Parses the specified value (using the invariant culture).
Namespace: DigitalRuneAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static T Parse<T>(
string value
)
Public Shared Function Parse(Of T) (
value As String
) As T
public:
generic<typename T>
static T Parse(
String^ value
)
static member Parse :
value : string -> 'T
Parameters
- value
- Type: SystemString
The value.
Type Parameters
- T
- The target type.
Return Value
Type:
TThe parsed value.
Exceptions Remarks
This method can parse values of types that
- implement System.IConvertible,
- have a static method Parse(string) or Parse(string, IFormatProvider), or
- have a TypeConverter.
A NotSupportedException is thrown for other types that do not have an
automatic mechanism for value conversion from string. Further, an exception can be thrown
if the given string is invalid.
See Also