ConvertDataTypes.comConvert data types programming in one click !

Convert byte[] to ushort in C#

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