Click or drag to resize

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
Syntax
public static T ToggleFlag<T>(
	T enumValue,
	T flag
)
where 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: T
The enum value with the flag bit toggled.
See Also