NullableConverter Class

Definition

Provides automatic conversion between a nullable type and its underlying primitive type.

public class NullableConverter : System.ComponentModel.TypeConverter
Inheritance
NullableConverter
Derived

Inherited Members

System.ComponentModel.TypeConverter

System.Object

Constructors

NullableConverter(Type)

Initializes a new instance of the NullableConverter class.

Properties

NullableType

Gets the nullable type.

UnderlyingType

Gets the underlying type.

UnderlyingTypeConverter

Gets the underlying type converter.

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

CanConvertTo(ITypeDescriptorContext, Type)

Returns whether this converter can convert the object to the specified type, using the specified context.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Converts the given object to the type of this converter, using the specified context and culture information.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the given value object to the specified type, using the specified context and culture information.

CreateInstance(ITypeDescriptorContext, IDictionary)

Creates an instance of the type that this TypeConverter is associated with, using the specified context, given a set of property values for the object.

GetCreateInstanceSupported(ITypeDescriptorContext)

Returns whether changing a value on this object requires a call to CreateInstance(IDictionary) to create a new value, using the specified context.

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes.

GetPropertiesSupported(ITypeDescriptorContext)

Returns whether this object supports properties, using the specified context.

GetStandardValues(ITypeDescriptorContext)

Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.

GetStandardValuesExclusive(ITypeDescriptorContext)

Returns whether the collection of standard values returned from GetStandardValues is an exclusive list of possible values, using the specified context.

GetStandardValuesSupported(ITypeDescriptorContext)

Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.

IsValid(ITypeDescriptorContext, Object)

Returns whether the given value object is valid for this type and for the specified context.