Class StringToEnumConverter
Converts text to an enum by name or number. Name matching ignores case.
public class StringToEnumConverter : ITypeConverter
- Inheritance
-
StringToEnumConverter
- Implements
- Inherited Members
- Extension Methods
Constructors
StringToEnumConverter(Type)
Converts text to an enum by name or number. Name matching ignores case.
public StringToEnumConverter(Type enumType)
Parameters
enumTypeType
Properties
OutputType
The type produced by the conversion.
public Type OutputType { get; }
Property Value
Methods
EmitConversion(Generator, Type)
Converts the current value to OutputType.
public void EmitConversion(Generator generator, Type sourceType)