Skip to content

net472_PropertyGridHelpers.Converters_TypeConverter 1_ConvertTo

dparvin edited this page Jul 5, 2025 · 11 revisions

TypeConverter<T>.ConvertTo method

Converts an object of type T to the requested destination type.

public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, 
    Type destinationType)
parameter description
context Context information from the property grid.
culture The culture to use during conversion.
value The current value to convert.
destinationType The type to convert to (typically string).

Return Value

A string representation of the value if destinationType is string; otherwise defers to the base implementation.

See Also

Clone this wiki locally