public static ushort GetSlovo(byte hiByte, byte loByte) { var hex = String.Format("{0:X2}", hiByte); var hex1 = String.Format("{0:X2}", loByte); return ushort.Parse(hex + hex1, System.Globalization.NumberStyles.HexNumber); }