JsonValueExtensionsGetEnumOrDefault Method

Overload List

GetEnumOrDefaultTEnum(JsonValue, JsonValueType) Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns the default value of TEnum.
GetEnumOrDefaultTEnum(JsonValue, TEnum, JsonValueType) Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns defaultValue.
GetEnumOrDefaultTEnum(JsonValue, Boolean, JsonValueType) Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns the default value of TEnum.
GetEnumOrDefaultTEnum(JsonValue, Boolean, TEnum, JsonValueType) Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns defaultValue.
GetEnumOrDefaultTEnum(JsonValue, Boolean, String, JsonValueType) Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns the default value of TEnum.
GetEnumOrDefaultTEnum(JsonValue, Boolean, TEnum, String, JsonValueType) Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns defaultValue.

See Also