mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Exposing method for determining if an integer has multiple flag values
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using ICD.Common.Properties;
|
||||||
using ICD.Common.Utils.Collections;
|
using ICD.Common.Utils.Collections;
|
||||||
using ICD.Common.Utils.Extensions;
|
using ICD.Common.Utils.Extensions;
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
@@ -335,7 +336,8 @@ namespace ICD.Common.Utils
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="value"></param>
|
/// <param name="value"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private static bool HasMultipleFlags(int value)
|
[PublicAPI]
|
||||||
|
public static bool HasMultipleFlags(int value)
|
||||||
{
|
{
|
||||||
return ((value & (value - 1)) != 0);
|
return ((value & (value - 1)) != 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user