Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HasFlag()

bool System.Enum.HasFlag ( Enum flag)
inline

Definition at line 333 of file Enum.cs.

334 {
335 if (flag == null)
336 {
337 throw new ArgumentNullException("flag");
338 }
339 if (!GetType().IsEquivalentTo(flag.GetType()))
340 {
341 throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType()));
342 }
343 return InternalHasFlag(flag);
344 }
bool InternalHasFlag(Enum flags)

References System.SR.Argument_EnumTypeDoesNotMatch, System.SR.Format(), and System.Enum.InternalHasFlag().