Enums.NET icon indicating copy to clipboard operation
Enums.NET copied to clipboard

HasAnyFlags fails while HasFlag is not

Open apobekiaris opened this issue 4 years ago • 3 comments

unfortunately cannot repro it in a clean sample, but somewhere deep in my modules the next call is not valid, but when I use the HasFlag method it is

image

apobekiaris avatar Oct 17 '21 13:10 apobekiaris

Is there an error or does it return false when true is expected? What is the base type of the ObjectModification enum, int, byte, etc? What version of Enums.NET are you using? What runtime version is this on, .NET Framework 4.8, .NET Core 3.1, etc?

TylerBrinkley avatar Oct 18 '21 18:10 TylerBrinkley

no error, just wrong result, ObjectModification is int, this is a test that runs nunit on .net5,0

apobekiaris avatar Oct 18 '21 18:10 apobekiaris

from Rider IDE if it matters

apobekiaris avatar Oct 18 '21 18:10 apobekiaris