NanoByte.Common  2.7.0
NanoByte.Common.Values.EnumExtensions Class Reference

Contains extension methods for Enums. More...

Static Public Member Functions

static bool HasFlag (this Enum enumRef, Enum flag)
 Checks whether a flag is set. More...
 
static bool HasFlag (this ushort enumRef, ushort flag)
 Checks whether a flag is set. More...
 
static bool HasFlag (this int enumRef, int flag)
 Checks whether a flag is set. More...
 

Detailed Description

Contains extension methods for Enums.

Member Function Documentation

◆ HasFlag() [1/3]

static bool NanoByte.Common.Values.EnumExtensions.HasFlag ( this Enum  enumRef,
Enum  flag 
)
inlinestatic

Checks whether a flag is set.

◆ HasFlag() [2/3]

static bool NanoByte.Common.Values.EnumExtensions.HasFlag ( this int  enumRef,
int  flag 
)
static

Checks whether a flag is set.

◆ HasFlag() [3/3]

static bool NanoByte.Common.Values.EnumExtensions.HasFlag ( this ushort  enumRef,
ushort  flag 
)
static

Checks whether a flag is set.


The documentation for this class was generated from the following file: