net472_PropertyGridHelpers.Converters_TypeConverter 1_ConvertFrom - dparvin/PropertyGridHelpers GitHub Wiki
Converts from a string to an instance of T, if supported.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture,
object value)
parameter | description |
---|---|
context | Context information from the property grid. |
culture | Culture info to use for parsing. |
value | The string to convert from. |
An instance of T if conversion is successful; otherwise defers to the base implementation.
Supports parsing if:
-
T implements .NET 7+
IParsable<T>
- or the PropertyGridHelpers' custom
IParsable
interface
- class TypeConverter<T>
- namespace PropertyGridHelpers.Converters
- assembly PropertyGridHelpers