Summary
Provides a base implementation for enum converters intended to enable enum translation. See remarks.
Generic type parameters
TEnum | Type of the enum being translated. |
TTranslation | Type of a translation class which has fields named the same as enum values. |
Remarks
Suggested use: define a separate Lingo string class for the enum. Inside this class, declare a nested class deriving
from this base class. Specify a TypeConverter on the enum in question using the said nested class.
Constructors
Instance methods
object | ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) | Override; see base. |
object | ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) |