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

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public override Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)
Visual Basic
Public Overrides Function ConvertTo ( 
	context As ITypeDescriptorContext,
	culture As CultureInfo,
	value As Object,
	destinationType As Type
) As Object
Visual C++
public:
virtual Object^ ConvertTo(
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value, 
	Type^ destinationType
) override
F#
abstract ConvertTo : 
        context : ITypeDescriptorContext * 
        culture : CultureInfo * 
        value : Object * 
        destinationType : Type -> Object 
override ConvertTo : 
        context : ITypeDescriptorContext * 
        culture : CultureInfo * 
        value : Object * 
        destinationType : Type -> Object 

Parameters

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

Return Value

Type: Object
An System.Object that represents the converted value.

See Also