TypeConverterHelper
Ecng.ComponentModel
Auxilary class for accessing typed data from type converters.
Methods
FromString``1
public static T FromString<T>(string value)
result = TypeConverterHelper.FromString(value)
Converts the specified text to an object.
- value
- The value.
FromString``1
public static T FromString<T>(ITypeDescriptorContext context, CultureInfo culture, string value)
result = TypeConverterHelper.FromString(context, culture, value)
Converts the specified text to an object.
- context
- The context.
- culture
- The culture.
- value
- The value.
GetConverter``1
public static TypeConverter GetConverter<T>()
result = TypeConverterHelper.GetConverter()
Gets the converter.
ToString``1
public static string ToString<T>(T value)
result = TypeConverterHelper.ToString(value)
Converts the specified value to a string representation.
- value
- The value.
ToString``1
public static string ToString<T>(ITypeDescriptorContext context, CultureInfo culture, T value)
result = TypeConverterHelper.ToString(context, culture, value)
Converts the specified value to a string representation.
- context
- The context.
- culture
- The culture.
- value
- The value.