Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if ((int)value & 0x1)
  2. {
  3. //statement here
  4. }
  5. if ((int)value & 0x2)
  6. {
  7. //statement here
  8. }
  9. if ((int)value & 0x4)
  10. {
  11. //statement here
  12. }
  13. if ((int)value & 0x8)
  14. {
  15. //statement here
  16. }
  17.  
  18. 0 & 0 = 0
  19. 0 & 1 = 0
  20. 1 & 0 = 0
  21. 1 & 1 = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement