Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext context, |
Returns True when sourceType is a String or Int32.
|
|
CanConvertTo ( ITypeDescriptorContext context, |
Returns True when destinationType is a String or Int32.
|
|
ConvertFrom ( ITypeDescriptorContext context, |
Converts a String or Int32 to an Encoding. Returns Encoding.Default if the value is null or an empty string. |
|
ConvertTo ( ITypeDescriptorContext context, |
Gets the name or code page for an Encoding.
|
Method | Description | |
---|---|---|
IsNumeric ( |
Returns true if the type is a signed or unsigned short or larger integer.
|
public CanConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | Additional context for conversion. |
sourceType | The type of the source object. | |
return | bool |
public CanConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | Additional context for conversion. |
destinationType | The type of the destination object. | |
return | bool |
public ConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | Additional context for conversion. |
culture | The culture to use for conversion. | |
value | object | The |
return | object |
public ConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | Additional context for conversion. |
culture | The culture to use for conversion. | |
value | object | The |
destinationType | The type of the destination object. | |
return | object |