查验byte\[\]内容的方法
cs
public static string BytesToHex(byte[] data)
{
if (data == null || data.Length == 0)
return "";
return BitConverter.ToString(data).Replace('-', ' ');
}