Class FlagUtils
Provides utility methods for working with integer-based flags.
Inherited Members
Namespace: TriLibCore.Utils
Assembly: TriLibCore.dll
Syntax
public static class FlagUtils
Methods
HasFlag(int, int)
Determines whether the specified flag is set within the given integer value.
Declaration
public static bool HasFlag(int value, int flag)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The integer value to check. |
| int | flag | The flag to look for. |
Returns
| Type | Description |
|---|---|
| bool |