Edit

Share via


JsonStringEnumConverter<TEnum>.CanConvert(Type) Method

Definition

When overridden in a derived class, determines whether the converter instance can convert the specified object type.

public:
 override bool CanConvert(Type ^ typeToConvert);
public override sealed bool CanConvert (Type typeToConvert);
override this.CanConvert : Type -> bool
Public Overrides NotOverridable Function CanConvert (typeToConvert As Type) As Boolean

Parameters

typeToConvert
Type

The type of the object to check whether it can be converted by this converter instance.

Returns

true if the instance can convert the specified object type; otherwise, false.

Applies to