EnumerationExtensionsWithClearedFlagT Method |
Returns the enum value with the specified flag cleared.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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
TThe 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