JsonNode.JsonNodeTypeConverter.CanConvertTo(ITypeDescriptorContext, Type) Method
In This Article
Checks whether or not the component can be converted to the specified type.
Namespace: DevExpress.DataAccess.Json
Assembly: DevExpress.DataAccess.v24.2.dll
NuGet Package: DevExpress.DataAccess
#Declaration
public override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
#Parameters
Name | Type | Description |
---|---|---|
context | IType |
An object implementing the IType |
destination |
Type | A Type enumeration value. |
#Returns
Type | Description |
---|---|
Boolean | true if the valid conversion is possible; otherwise false. |
#Remarks
Use the CanConvertTo method to check the validity of an intended operation before calling the JsonNode.JsonNodeTypeConverter.ConvertTo method.
See Also