| EnumUtilsGetEnumIfDefinedTEnumType Method |
Returns a parsed enum value (if defined) corresponding to the given string (value), or null if not defined.
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic static Nullable<TEnumType> GetEnumIfDefined<TEnumType>(
string value,
bool ignoreCase = false
)
where TEnumType : struct, new()
Parameters
- value
- Type: SystemString
Enum name/value to lookup - ignoreCase (Optional)
- Type: SystemBoolean
True if case-insensitive, false otherwise (default: false)
Type Parameters
- TEnumType
- Type of the enum
Return Value
Type:
NullableTEnumTypeParsed enum value (of type
TEnumType), null otherwise
See Also