NanoByte.Common  2.9.0
NanoByte.Common.Values.Design.EnumXmlConverter< T > Class Template Reference

Type converter for Enums annotated with XmlEnumAttributes. More...

Inheritance diagram for NanoByte.Common.Values.Design.EnumXmlConverter< T >:

Public Member Functions

override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
override bool GetStandardValuesSupported (ITypeDescriptorContext context)
override bool GetStandardValuesExclusive (ITypeDescriptorContext context)
override StandardValuesCollection GetStandardValues (ITypeDescriptorContext context)

Detailed Description

Type converter for Enums annotated with XmlEnumAttributes.

Template Parameters
TThe type the converter is used for.

Add this attribute to the Enum:


XmlEnumAttribute.Name is used as the case-insensitive string representation (falls back to element name).

Type Constraints
T :struct 

The documentation for this class was generated from the following file: