Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext context, |
Determines if this converter can convert an object in the given source type to the native type of the converter.
|
|
CanConvertTo ( ITypeDescriptorContext context, |
Gets a value indicating whether this converter can convert an object to the given destination type using the context.
|
|
ConvertFrom ( ITypeDescriptorContext context, |
||
ConvertTo ( ITypeDescriptorContext context, |
Converts the specified object to the specified type.
|
|
CreateInstance ( ITypeDescriptorContext context, IDictionary propertyValues ) : object |
Creates an instance of this type given a set of property values for the object. This is useful for objects that are immutable but still want to provide changeable properties.
|
|
GetCreateInstanceSupported ( ITypeDescriptorContext context ) : bool | ||
GetProperties ( ITypeDescriptorContext context, object value, |
Retrieves the set of properties for this type. By default, a type does not return any properties.
|
|
GetPropertiesSupported ( ITypeDescriptorContext context ) : bool |
public CanConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null. |
sourceType | The type you want to convert from. | |
return | bool |
public CanConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | An |
destinationType | A |
|
return | bool |
public ConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
culture | ||
value | object | |
return | object |
public ConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | A |
culture | An |
|
value | object | The object to convert. |
destinationType | The type to convert the object to. | |
return | object |
public CreateInstance ( ITypeDescriptorContext context, IDictionary propertyValues ) : object | ||
context | ITypeDescriptorContext | A |
propertyValues | IDictionary | A dictionary of new property values. The dictionary contains a series of name-value pairs, one for each property returned from a call to the |
return | object |
public GetCreateInstanceSupported ( ITypeDescriptorContext context ) : bool | ||
context | ITypeDescriptorContext | |
return | bool |
public GetProperties ( ITypeDescriptorContext context, object value, |
||
context | ITypeDescriptorContext | A |
value | object | The value of the object to get the properties for. |
attributes | An array of |
|
return |
public GetPropertiesSupported ( ITypeDescriptorContext context ) : bool | ||
context | ITypeDescriptorContext | |
return | bool |