chore: EnumExtensions added

This commit is contained in:
2025-03-31 16:46:19 +03:00
parent e8ef41af41
commit 90c1dd9348
2 changed files with 13 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
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;
}