EnumHelperToggleFlagT Method |
Toggles the specified flag in the enum value.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static T ToggleFlag<T>(
T enumValue,
T flag
)
where T : struct, new()
Public Shared Function ToggleFlag(Of T As {Structure, New}) (
enumValue As T,
flag As T
) As T
public:
generic<typename T>
where T : value class, gcnew()
static T ToggleFlag(
T enumValue,
T flag
)
static member ToggleFlag :
enumValue : 'T *
flag : 'T -> 'T when 'T : struct, new()
Parameters
- enumValue
- Type: T
The value that must have the flag bit toggled. - flag
- Type: T
The flag bit that must be toggled.
Type Parameters
- T
- The type of enum that is manipulated.
Return Value
Type:
TThe enum value with the flag bit toggled.
See Also