NDoc 1.3.1 SDK

EnumDescriptionConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

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

This member overrides ConvertTo.

[Visual Basic]
Overrides  OverloadsPublic Function ConvertTo( _ 
   ByVal context As ITypeDescriptorContext, _ 
   ByVal culture As CultureInfo, _ 
   ByVal value As Object, _ 
   ByVal destinationType As Type _ 
) As Object
[C#]
public override object ConvertTo(
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value,
   Type destinationType
);
[C++]
public: Object* ConvertTo(
   ITypeDescriptorContext* context,
   CultureInfo* culture,
   Object* value,
   Type* destinationType
);
[JScript]
public override function ConvertTo(
   ITypeDescriptorContext context,
   CultureInfo culture,
   Object value,
   Type destinationType
): Object;

Parameters

context
An ITypeDescriptorContext that provides a format context.
culture
A CultureInfo object. If a a null reference (Nothing in Visual Basic) 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.

See Also

EnumDescriptionConverter Class | NDoc.Core.PropertyGridUI Namespace | EnumDescriptionConverter.ConvertTo Overload List