This is more of a question that I ask to understand, not to find out the problem. Consider the following two:
[Flags]
public enum Flags
{
NONE = 0x0,
PASSUPDATE = 0x1,
PASSRENDER = 0x2,
DELETE = 0x4,
ACCEPTINPUT = 0x8,
FADE_IN = 0x10,
FADE_OUT = 0x20,
FADE_OUT_COMPLETE = 0x40
}
[Flags]
public enum Flags
{
NONE = 0x0,
PASSUPDATE,
PASSRENDER,
DELETE,
ACCEPTINPUT,
FADE_IN ,
FADE_OUT,
FADE_OUT_COMPLETE
}
If I check something with the help of the last enumeration, sometimes overlapping occurs (I think something seems to be DELETEinterpreted as PASSUPDATE | PASSRENDER, whereas in the first example each record is independent of the other (i.e., it DELETEjust DELETEcannot be proved with combinations of another set of flags).
source
share