Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

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

By: a guest on Feb 28th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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"]