PointConverter..::..ConvertTo Method

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

Namespace:  Squid
Assembly:  Squid.Core (in Squid.Core.dll)

Syntax


public Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)
Public Function ConvertTo ( _
	context As ITypeDescriptorContext, _
	culture As CultureInfo, _
	value As Object, _
	destinationType As Type _
) As Object
public:
Object^ ConvertTo(
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value, 
	Type^ destinationType
)

Parameters

context
Type: ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
culture
Type: CultureInfo
A CultureInfo. If null is passed, the current culture is assumed.
value
Type: Object
The Object to convert.
destinationType
Type: Type
The Type to convert the value parameter to.

Return Value

An Object that represents the converted value.

Exceptions


ExceptionCondition
[System.ArgumentNullException]destinationType