Useful snippet, converts a byte array to base 16:
public static class Extensions {
public static string ToBase16(this byte[] input) {
return string.Concat((from x in input
select x.ToString("x2")).ToArray());
}
}
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5