Provides a TypeConverter
to convert objects to and from other representations.
- Inheritance:
-
object
Type
Converter ExpandableObject ExpandableConverter Nullable objectObject Converter
Remarks
This class places the text (none)
in a property grid when an object reference is null
.
Constructors
GenericExpandableNullableObjectConverter()
Initializes an instance of the class.
Methods
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
Parameter | Type | Description |
---|---|---|
context | IType |
An |
destType | Type | A |
Returns
- bool:
true
if this converter can perform the conversion; otherwise,false
.
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Parameter | Type | Description |
---|---|---|
context | IType |
An |
culture | Culture |
A |
value | object | The |
destType | Type | The |
Returns
- object:
An
Object
that represents the converted value.