Click or drag to resize

imbTypeEnumExtensionsHasFlags Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Determines whether the specified en has flags .

Namespace:  imbSCI.Core.extensions.enumworks
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static bool HasFlags(
	this Enum en,
	bool onOneFlag = false
)
Request Example View Source

Parameters

en
Type: SystemEnum
The en.
onOneFlag (Optional)
Type: SystemBoolean
The result to return if there is only one flag,and it is not none or 0 value

Return Value

Type: Boolean
true if the specified en has flags; otherwise, false.

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