10 lines
206 B
C#
10 lines
206 B
C#
using System;
|
|
|
|
namespace Syntriax.Engine.Core;
|
|
|
|
public static class EnumExtensions
|
|
{
|
|
public static bool CheckFlag(this Enum left, Enum right)
|
|
=> ((int)(object)left & (int)(object)right) != 0;
|
|
}
|