Class ConvertTo<TTo>
Value converter to TTo type.
public static class ConvertTo<TTo>
Type Parameters
TToTarget conversion type.
- Inheritance
-
ConvertTo<TTo>
Methods
From<TFrom>(TFrom)
Converts value from TFrom to TTo type.
public static TTo From<TFrom>(TFrom o)
Parameters
oTFromValue to convert.
Returns
- TTo
Converted value.
Type Parameters
TFromSource conversion type.
Examples
ConvertTo<int>.From("123");