mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 04:35:00 +00:00
Enum optimizations
This commit is contained in:
@@ -49,8 +49,8 @@ namespace ICD.Common.Utils.Extensions
|
||||
throw new ArgumentException(message);
|
||||
}
|
||||
|
||||
ulong num = Convert.ToUInt64(value);
|
||||
return (Convert.ToUInt64(extends) & num) == num;
|
||||
int num = (int)(object)value;
|
||||
return ((int)(object)extends & num) == num;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user