ConvertTo Method (original) (raw)

Summary

Converts the given value object to the specified type, using the specified context and culture information.

Syntax

Parameters

context
An ITypeDescriptorContext that provides a format context.

culture
A CultureInfo. If null is passed, the current culture is assumed.

value
The Object to convert.

destinationType
The Type to convert the value parameter to.

Return Value

An Object that represents the converted value.

Exceptions

Exception Description
System.ArgumentNullException The destinationType parameter is null.
System.NotSupportedException The conversion cannot be performed.

Leadtools.Dicom.Common Assembly