We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed260ed commit 17e5a54Copy full SHA for 17e5a54
1 file changed
EXILED/Exiled.API/Extensions/BitwiseExtensions.cs
@@ -67,8 +67,8 @@ public static T ModifyFlags<T>(this T flags, bool value, params T[] changeFlags)
67
/// <param name="value">Value to check in flag.</param>
68
/// <typeparam name="T">The type of the enum.</typeparam>
69
/// <returns><see langword="true"/> if value is presented in flag. Otherwise, <see langword="false"/>.</returns>
70
- [Obsolete("Use Enum::HasFlag instead.")]
71
- public static bool HasFlag<T>(this T flag, T value)
+ [Obsolete("Use Enum::HasFlagFast instead.")]
+ public static bool HasFlagFast<T>(this T flag, T value)
72
where T : Enum => flag.HasFlag(value);
73
}
74
0 commit comments