Started project

This commit is contained in:
Caleb Sandford deQuincey
2025-11-14 17:30:41 +00:00
parent 00b55a5b1e
commit 334021d04e
36526 changed files with 4940113 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System;
namespace Unity.PlasticSCM.Editor
{
internal static class EnumExtensions
{
internal static bool HasFlag(this Enum variable, Enum value)
{
if (variable.GetType() != value.GetType())
throw new ArgumentException(
"The checked flag is not from the same type as the checked variable.");
Convert.ToUInt64(value);
ulong num = Convert.ToUInt64(value);
ulong num2 = Convert.ToUInt64(variable);
return (num2 & num) == num;
}
}
}