Class EnumMemberEnumConverter
- Namespace
- RetailForce.Fiscalisation.Entities
- Assembly
- RetailForce.Fiscalisation.Model.dll
public class EnumMemberEnumConverter : EnumConverter
- Inheritance
-
objectEnumMemberEnumConverter
- Inherited Members
Constructors
EnumMemberEnumConverter(Type)
public EnumMemberEnumConverter(Type type)
Parameters
typeType
Methods
ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)
Converts the specified value object to an enumeration object.
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoAn optional CultureInfo. If not supplied, the current culture is assumed.
valueobjectThe object to convert.
Returns
- object
An object that represents the converted
value.
Exceptions
- FormatException
valueis not a valid value for the target type.- NotSupportedException
The conversion cannot be performed.