Class DynamicEnumerationConverter
Denotes a type converter that dynamically converts strings to enumeration literals and back
Inheritance
DynamicEnumerationConverter
Assembly: NMF.Models.Dynamic.dll
Syntax
public class DynamicEnumerationConverter : TypeConverter
Constructors
|
Edit this page
View Source
Creates a new converter for the given enumeration
Declaration
public DynamicEnumerationConverter(IEnumeration enumeration)
Parameters
Type |
Name |
Description |
IEnumeration |
enumeration |
The enumeration
|
Properties
|
Edit this page
View Source
Enumeration
The enumeration for this converter
Declaration
public IEnumeration Enumeration { get; }
Property Value
Methods
|
Edit this page
View Source
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Returns
Overrides
|
Edit this page
View Source
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Returns
Overrides
|
Edit this page
View Source
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Returns
Overrides
|
Edit this page
View Source
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Returns
Overrides