M
Matt Burland
I wanted to set up a enum to represent certain properties of an object that
can be combined. So I'm using the FlagAttribute with my enum and adding them
to by objects with | (or). But what is the right way to get them back (i.e.
to check it this object has a certain flag set)? I tried:
(MyObj.Properties & MyProps.Prop1) == MyProps.Prop1
But that doesn't work right. What gives?
Thanks
Matt
can be combined. So I'm using the FlagAttribute with my enum and adding them
to by objects with | (or). But what is the right way to get them back (i.e.
to check it this object has a certain flag set)? I tried:
(MyObj.Properties & MyProps.Prop1) == MyProps.Prop1
But that doesn't work right. What gives?
Thanks
Matt