Newtonsoft.Json.Converters.StringEnumConverter.CanConvert C# (CSharp) Méthode

CanConvert() public méthode

Determines whether this instance can convert the specified object type.
public CanConvert ( Type objectType ) : bool
objectType System.Type Type of the object.
Résultat bool
        public override bool CanConvert(Type objectType)
        {
            Type t = (ReflectionUtils.IsNullableType(objectType))
                ? Nullable.GetUnderlyingType(objectType)
                : objectType;

            return t.IsEnum();
        }
    }