Authentiqr.NET.Code.Hex.Decode C# (CSharp) Метод

Decode() публичный статический Метод

public static Decode ( string hex ) : byte[]
hex string
Результат byte[]
        public static byte[] Decode(string hex)
        {
            int NumberChars = hex.Length;
            byte[] bytes = new byte[NumberChars / 2];
            for (int i = 0; i < NumberChars; i += 2)
            {
                bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), 16);
            }
            return bytes;
        }
    }