Method Get
Get<T>(IFormatProvider?)
Parses the value contained in this StringValue as a type T that implements IParsable<TSelf>.
Throws an exception if the value couldn't be parsed to the target type.
public T Get<T>(IFormatProvider? formatProvider = null) where T : IParsable<T>
Parameters
formatProviderIFormatProviderThe IFormatProvider to use for parsing. Defaults to null.
Returns
- T
The converted value of type
T.
Type Parameters
TThe type to parse the value to.
Exceptions
- FormatException
Thrown when the value cannot be parsed to type
T.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語