TypeConverterBase.ConvertFrom Method

Definition

When overridden in a derived class, converts the specified value to a new representation specified by the derived class.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);

Parameters

context
ITypeDescriptorContext

Context information that is used for conversion.

culture
CultureInfo

An optional CultureInfo. If not supplied, the current culture is assumed.

value
Object

The object to convert.

Returns

The converted value.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1