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