Click or drag to resize

EnumerationExtensionsWithClearedFlagT Method

Returns the enum value with the specified flag cleared.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static T WithClearedFlag<T>(
	this Enum type,
	T value
)
where T : struct, new()

Parameters

type  Enum
The enum value to modify.
value  T
The flag to clear.

Type Parameters

T
The enum type.

Return Value

T
The modified enum value with the flag cleared.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also