SHARE
TWEET

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

a guest Feb 28th, 2012 19 Never
  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"]
RAW Paste Data
Top