Method ConvertTo
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Attempt to convert a coordinate to the given type
public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
Parameters
typeDescriptorContextITypeDescriptorContextThe ITypeDescriptorContext for this call.
cultureInfoCultureInfoThe CultureInfo which is respected when converting.
valueobjectThe value to convert.
destinationTypeTypeThe type to which to convert the value.
Returns
- object
The object which was constructed.
Exceptions
- ArgumentNullException
An ArgumentNullException is thrown if the example object is null.
- ArgumentException
An ArgumentException is thrown if the object is not null, or if the destinationType isn't one of the valid destination types.