net472_PropertyGridHelpers.Converters_EnumTextConverter_ConvertFrom - dparvin/PropertyGridHelpers GitHub Wiki
Converts from a string or integer to the corresponding enum value.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture,
object value)
parameter | description |
---|---|
context | An optional format context. |
culture | Culture information for the conversion. |
value | The string or integer to convert. |
The parsed enum value.
exception | condition |
---|---|
ArgumentException | Thrown if value is neither a string nor an int, or cannot be parsed. |
- class EnumTextConverter
- namespace PropertyGridHelpers.Converters
- assembly PropertyGridHelpers