Class EnumExtensions
Extentions for enums.
Inherited Members
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public static class EnumExtensions
Methods
HasFlag(Enum, Enum)
A FX 3.5 way to mimic the FX4 "HasFlag" method.
Declaration
public static bool HasFlag(this Enum variable, Enum value)
Parameters
Type | Name | Description |
---|---|---|
Enum | variable | The tested enum. |
Enum | value | The value to test. |
Returns
Type | Description |
---|---|
bool | True if the flag is set. Otherwise false. |