pszczyg

Untitled

Apr 1st, 2017
178
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public Guid(byte[] b)
  2. {
  3. if (b==null)
  4. throw new ArgumentNullException("b");
  5. if (b.Length != 16)
  6. throw new ArgumentException(
  7.                    Environment.GetResourceString("Arg_GuidArrayCtor""16"));
  8. Contract.EndContractBlock();            _a = ((int)b[3] << 24) | ((int)b[2] << 16) | ((int)b[1] << 8) | b[0];
  9. _b = (short)(((int)b[5] << 8) | b[4]);
  10. _c = (short)(((int)b[7] << 8) | b[6]);
  11. _d = b[8];
  12. _e = b[9];
  13. _f = b[10];
  14. _g = b[11];
  15. _h = b[12];
  16. _i = b[13];
  17. _j = b[14];
  18. _k = b[15];
  19. }
RAW Paste Data