Method | Description | |
---|---|---|
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object |
Converts the given object to the type of this converter, using the specified context and culture information. This member overrides TypeConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, object).
|
|
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object |
Converts the given value object to the specified type, using the specified context and culture information. This member overrides TypeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type).
|
|
EnumDescriptionConverter ( System type ) : System |
Constructs EnumDescriptionConverter for a given Enum
|
|
GetEnumDescription ( Enum value ) : string |
Gets the Description of the given Enumeration value
|
|
GetEnumDescription ( System value, string name ) : string |
Gets the Description of a named value in an Enumeration
|
|
GetEnumValue ( System value, string description ) : object |
Gets the value of an Enum, based on it's Description Attribute or named value
|
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object | ||
context | ITypeDescriptorContext | An |
culture | CultureInfo | A |
value | object | The |
return | object |
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object | ||
context | ITypeDescriptorContext | An |
culture | CultureInfo | A |
value | object | The |
destinationType | Type | The |
return | object |
public EnumDescriptionConverter ( System type ) : System | ||
type | System | |
return | System |
public static GetEnumDescription ( Enum value ) : string | ||
value | Enum | The enumeration value |
return | string |
public static GetEnumDescription ( System value, string name ) : string | ||
value | System | The type of the Enumeration |
name | string | The name of the Enumeration value |
return | string |
public static GetEnumValue ( System value, string description ) : object | ||
value | System | The Enum type |
description | string | The description or name of the element |
return | object |