Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool |
Gets a value indicating whether this converter can convert an object in the given source type to a
|
|
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool |
Gets a value indicating whether this converter can convert an object to the given destination type using the context.
|
|
ConvertFrom ( ITypeDescriptorContext context, |
Converts the given object to a
|
|
ConvertTo ( ITypeDescriptorContext context, |
Converts the given object to another type. The most common types to convert are to and from a string object. The default implementation will make a call to ToString on the object if the object is valid and if the destination type is string. If this cannot convert to the desitnation type, this will throw a NotSupportedException.
|
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool | ||
context | ITypeDescriptorContext | |
sourceType | Type | |
return | bool |
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool | ||
context | ITypeDescriptorContext | |
destinationType | Type | |
return | bool |
public ConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
culture | ||
value | object | |
return | object |
public ConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
culture | ||
value | object | |
destinationType | Type | |
return | object |