Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((int)value & 0x1)
- {
- //statement here
- }
- if ((int)value & 0x2)
- {
- //statement here
- }
- if ((int)value & 0x4)
- {
- //statement here
- }
- if ((int)value & 0x8)
- {
- //statement here
- }
- 0 & 0 = 0
- 0 & 1 = 0
- 1 & 0 = 0
- 1 & 1 = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement