Converts the given value object to the specified type, using the specified context and culture information.
            
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
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  | 
Parameters
- context
 - Type: System.ComponentModel..::..ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. 
- culture
 - Type: System.Globalization..::..CultureInfo
A CultureInfo. If null is passed, the current culture is assumed. 
- value
 - Type: System..::..Object
The Object to convert. 
- destinationType
 - Type: System..::..Type
The Type to convert the value parameter to. 
Return Value
Type: ObjectAn Object that represents the converted value.
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | The destinationType parameter is null. | 
| System..::..NotSupportedException | The conversion cannot be performed. |