📜  字节到十六进制字符串 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:56.852000             🧑  作者: Mango

代码示例2
public static string ByteArrayToString(byte[] ba)
{
  StringBuilder hex = new StringBuilder(ba.Length * 2);
  foreach (byte b in ba)
    hex.AppendFormat("{0:x2}", b);
  return hex.ToString();
}