Class EnumExtensions
Extensions for enums.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public static class EnumExtensionsMethods
HasFlag(Enum, Enum)
An 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; false otherwise. |