JsonStringEnumConverter.CanConvert(Type) 方法

定义

确定是否可将指定类型转换为枚举。

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

参数

typeToConvert
Type

要检查的类型。

返回

如果可以转换类型,则为 true;否则为 false

适用于