Guest User

Retrieving a byte array stored in a INT field in the database

a guest
Feb 28th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. [Flags]
  2. public enum Permissions
  3. {
  4. Read = 1,
  5. Write = 2,
  6. Execute = 4,
  7. Guillotine = 8,
  8. Lynch = 16
  9. // etc
  10. }
  11.  
  12. Permissions permissions = (Permissions) (int) dr["Field"]
Add Comment
Please, Sign In to add comment