net472_PropertyGridHelpers.Converters_EnumTextConverter_ConvertFrom - dparvin/PropertyGridHelpers GitHub Wiki

EnumTextConverter.ConvertFrom method

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.

Return Value

The parsed enum value.

Exceptions

exception condition
ArgumentException Thrown if value is neither a string nor an int, or cannot be parsed.

See Also

⚠️ **GitHub.com Fallback** ⚠️