TypeConverter
ReferencesType converter implementation, for type converter compatibility in portable class libraries.
obsolete, Use System.ComponentModel.TypeConverter instead
Methods
CanConvertFrom
#Determines whether this instance can convert from the specified context sourceType.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| sourceType (Type) | Source type. |
Returns:
true if this instance can convert from the specified context sourceType; otherwise, false.CanConvertFrom
#Determines whether this instance can convert from the specified sourceType.
Parameters:
| sourceType (Type) | Source type to convert from. |
Returns:
true if this instance can convert from the specified sourceType; otherwise, false.CanConvertTo
#Determines whether this instance can convert to the specified context destinationType.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| destinationType (Type) | Destination type. |
Returns:
true if this instance can convert to the specified context destinationType; otherwise, false.CanConvertTo
#Determines whether this instance can convert to the specified destinationType.
Parameters:
| destinationType (Type) | Destination type. |
Returns:
true if this instance can convert to the specified destinationType; otherwise, false.ConvertFrom
#public virtual object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Converts the specified
value.Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| value (object) | Value to convert. |
Returns: The converted value.
ConvertFrom
#Converts from the specified object.
Parameters:
| o (object) | Object to convert. |
Returns: The converted object.
ConvertFromInvariantString
#Converts from an invariant string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| text (string) | Text to convert. |
Returns: The from invariant string.
ConvertFromInvariantString
#Converts from an invariant string.
Parameters:
| text (string) | Text to convert. |
Returns: The from invariant string.
ConvertFromString
#Converts from string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| text (string) | Text to convert. |
Returns: The converted object.
ConvertFromString
#Converts from string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| text (string) | Text to convert. |
Returns: The converted object.
ConvertFromString
#Converts from string.
Parameters:
| text (string) | Text to convert. |
Returns: The converted object.
ConvertTo
#public virtual object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Converts to the specified type.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| value (object) | Value to convert. |
| destinationType (Type) | Destination type to convert to. |
Returns: The converted object.
ConvertToInvariantString
#Converts to invariant string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToInvariantString
#Converts to an invariant string.
Parameters:
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToString
#Converts to a string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| culture (CultureInfo) | Culture. |
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToString
#Converts to a string.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| value (object) | Value to convert. |
Returns: The converted string.
ConvertToString
#Converts to a string.
Parameters:
| value (object) | Value to convert. |
Returns: The converted string.
GetConvertFromException
#Gets the exception when converting from a value.
Parameters:
| value (object) | Value converted from. |
Returns: The convert from exception.
GetConvertToException
#Gets the exception when converting to a value.
Returns: The convert to exception.
IsValid
#Determines whether this instance is valid the specified context value.
Parameters:
| context (ITypeDescriptorContext) | Context. |
| value (object) | Value. |
Returns:
true if this instance is valid the specified context value; otherwise, false.