Method ConvertTo
ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type)
Converts the given value object to the specified type, using the specified context and culture information.
public override object? ConvertTo(ITypeDescriptorContext? typeDescriptorContext, CultureInfo? cultureInfo, object? value, Type destinationType)
Parameters
typeDescriptorContextITypeDescriptorContextcultureInfoCultureInfovalueobjectThe object to convert.
destinationTypeTypeThe Type to convert the
valueparameter to.
Returns
Exceptions
- ArgumentNullException
The
destinationTypeparameter is null.- NotSupportedException
The conversion cannot be performed.