There is a way to check if I got a flag in a series of flag?
Example:
[Flags] Enum TestEnum { ALIVE, DEAD, ALMOSTDEAD, HURT, OTHERS } // check if
You can do bitwise operation like this:
var alive = TestEnum.Alive; var hurt = TestEnum.Hurt; var aliveAndHurt = alive & hurt;