Class NullableEnumConverter<T>
Type converter for nullable enum types.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class NullableEnumConverter<T> : TypeConverter where T : struct, ValueType
Type Parameters
T
The type of the enum the type converter is intended for. |
Constructors
NullableEnumConverter()
Declaration
public NullableEnumConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether this instance can convert from the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
The context. |
System.Type
sourceType
Type of the source. |
Returns
System.Boolean
|
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts from the specified value to the type of this converter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
The context. |
System.Globalization.CultureInfo
culture
The culture. |
System.Object
value
The value. |
Returns
System.Object
|