Folder Path Type ConverterConvert To(IType Descriptor Context, Culture Info, Object, Type) Method
Converts the given value object to the specified type, using the specified context and culture information.
Definition
Namespace: Sandcastle.Core.Design
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.3.29.0
An Object that represents the converted value.
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.3.29.0
C#
public override Object ConvertTo(
ITypeDescriptorContext context,
CultureInfo culture,
Object value,
Type destinationType
)VB
Public Overrides Function ConvertTo (
context As ITypeDescriptorContext,
culture As CultureInfo,
value As Object,
destinationType As Type
) As ObjectC++
public:
virtual Object^ ConvertTo(
ITypeDescriptorContext^ context,
CultureInfo^ culture,
Object^ value,
Type^ destinationType
) overrideF#
abstract ConvertTo :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object *
destinationType : Type -> Object
override ConvertTo :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object *
destinationType : Type -> Object Parameters
- context ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context.
- culture CultureInfo
- A CultureInfo. If is passed, the current culture is assumed.
- value Object
- The Object to convert.
- destinationType Type
- The Type to convert the value parameter to.
Return Value
ObjectAn Object that represents the converted value.
Exceptions
| ArgumentNullException | The destinationType parameter is . |
| NotSupportedException | The conversion cannot be performed. |