Click or drag to resize

EnumUtilsIsEnumValueDefinedTEnumType Method

Checks if a specified enum type (TEnumType) has a value defined for the given string (value).

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public static bool IsEnumValueDefined<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: Boolean
True if some value is defined, false otherwise
See Also