ConvertDataTypes.comConvert data types programming in one click !

Convert byte[] to long in C#

    23994 hits
  • byte[] vIn = new byte[] { 1, 1, 0 };
  • long vOut = BitConverter.ToInt64(vIn, 0 /* Which byte position to convert */);