| FlagsHelperIsSetT Method |
Checks if an enum is part of a mask
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool IsSet<T>(
T flags,
T flag
)
where T : struct, new()
Parameters
- flags
- Type: T
The value of the mask - flag
- Type: T
The enum to check against the mask
Type Parameters
- T
- The enum type
Return Value
Type:
BooleanTrue if the enum is part of the mask, false if it is not
See Also