GenericExpandableNullableObjectConverter Class
Provides a TypeConverter
to convert objects to and from other representations.
public class GenericExpandableNullableObjectConverter : ExpandableNullableObjectConverter
- Inheritance:
- object TypeConverter ExpandableObjectConverter ExpandableNullableObjectConverter object
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.
public GenericExpandableNullableObjectConverter()
Methods
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destType)
Parameter | Type | Description |
---|---|---|
context | ITypeDescriptorContext | 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.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType)
Parameter | Type | Description |
---|---|---|
context | ITypeDescriptorContext | An |
culture | CultureInfo | A |
value | object | The |
destType | Type | The |
Returns
- object:
An
Object
that represents the converted value.