Method
StringValue.Get<T>
Get<T>(IFormatProvider?) #
Parses the value contained in this StringValue as a type T that implements IParsable.
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 #
formatProvider IFormatProvider?
The IFormatProvider to use for parsing. Defaults to null.
Returns #
T
The converted value of type T.
Type Parameters #
T
The type to parse the value to.
Exceptions #
Thrown when the value cannot be parsed to type T.