Class ConversionUtils
Helpers for working with type converters.
public static class ConversionUtils
- Inheritance
-
objectConversionUtils
Methods
ConvertFromString<TType>(string)
Uses the type converter for TType (set with System.ComponentModel.TypeConverterAttribute) to parse a string.
public static TType ConvertFromString<TType>(this string value) where TType : notnull
Parameters
valuestring
Returns
- TType
Type Parameters
TType
ConvertToString<TType>(TType)
Uses the type converter for TType (set with System.ComponentModel.TypeConverterAttribute) to generate a string.
[Pure]
public static string ConvertToString<TType>(this TType value) where TType : notnull
Parameters
valueTType
Returns
- string
Type Parameters
TType