public static ToHex ( this data ) : string | ||
data | this | a byte array to encode. The assumption is that the string to encode /// is small enough to be held in memory without streaming the encoding |
return | string |
public static string ToHex(this byte[] data)
{
return String.Concat(Array.ConvertAll(data, x => x.ToString("X2"))).ToLower();
}