net472_PropertyGridHelpers.Converters_TypeConverter 1_ConvertFrom - dparvin/PropertyGridHelpers GitHub Wiki

TypeConverter<T>.ConvertFrom method

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.

Return Value

An instance of T if conversion is successful; otherwise defers to the base implementation.

Remarks

Supports parsing if:

  • T implements .NET 7+ IParsable<T>
  • or the PropertyGridHelpers' custom IParsable interface

See Also

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