Method ConvertTo
- Namespace
- SharpVectors.Runtime
- Assembly
- SharpVectors.Runtime.Wpf.dll
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 context, CultureInfo culture, object value, Type destinationType)
Parameters
context
ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
culture
CultureInfoA CultureInfo. If null is passed, the current culture is assumed.
value
objectThe object to convert.
destinationType
TypeThe Type to convert the
value
parameter to.
Returns
Exceptions
- ArgumentNullException
The
destinationType
parameter is null.- NotSupportedException
The conversion cannot be performed.