EnumExtensionsIsSingleFlag(Enum) Method
Gets whether only a single bit is set in value.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static bool IsSingleFlag(
this Enum? value
)
<ExtensionAttribute>
Public Shared Function IsSingleFlag (
value As Enum
) As Boolean
public:
[ExtensionAttribute]
static bool IsSingleFlag(
Enum^ value
)
[<ExtensionAttribute>]
static member IsSingleFlag :
value : Enum -> bool
- value Enum
- The value to check.
Booleantrue, if only a single bit is set in
value; otherwise,
false.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).