Check if an enum flag contains a certain flag value
问题 In C# (using Unity working on a game) I have an enum with the [Flag] attribute. I have instantiated it twice. I would like a way to compare the two enums. Specifically if enum A (which will have multiple flags) contains a flag from enum B (which will only ever be assigned a single flag). I am not trying to compare a single instantiated enum to a single flag (this has been answered multiple times). I suspect I could do this by dumping values with GetValue and comparing those values on a