System.ComponentModel.TypeConverter
Provides a unified way of converting types of values to other types, as well as for accessing standard values and subproperties.
public TypeConverter()
Initializes a new instance of the TypeConverter class.
Returns whether this converter can convert an object of the given type to the type of this converter.
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Returns whether this converter can convert the object to the specified type.
Returns whether this converter can convert the object to the specified type, using the specified context.
Converts the given value to the type of this converter.
public virtual object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Converts the given object to the type of this converter, using the specified context and culture information.
Converts the given string to the type of this converter, using the invariant culture.
Converts the specified text to an object.
Converts the given text to an object, using the specified context and culture information.
Converts the given value object to the specified type, using the arguments.
public virtual object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Converts the given value object to the specified type, using the specified context and culture information.
Converts the specified value to a culture-invariant string representation.
Converts the specified value to a string representation.
Converts the given value to a string representation, using the specified context and culture information.
Returns an exception to throw when a conversion cannot be performed.
Returns an exception to throw when a conversion cannot be performed.