Be.Windows.Forms.HexBox.ConvertBytesToHex C# (CSharp) Метод

ConvertBytesToHex() приватный Метод

Converts a byte array to a hex string. For example: {10,11} = "0A 0B"
private ConvertBytesToHex ( byte data ) : string
data byte the byte array
Результат string
        string ConvertBytesToHex(byte[] data)
        {
            StringBuilder sb = new StringBuilder();
            foreach (byte b in data)
            {
                string hex = ConvertByteToHex(b);
                sb.Append(hex);
                sb.Append(" ");
            }
            if (sb.Length > 0)
                sb.Remove(sb.Length - 1, 1);
            string result = sb.ToString();
            return result;
        }
        /// <summary>
HexBox