FlagsHelperContains Method

Check to see if a flags enumeration has a specific flag set.

Definition

Namespace: SMath.Controls
Assembly: SMath.Controls (in SMath.Controls.dll) Version: 1.2.9018.0
C#
public static bool Contains(
	this Enum keys,
	Enum flag
)

Parameters

keys  Enum
 
flag  Enum
 

Return Value

Boolean

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