A quick (and elegant, IMHO) way to convert a byte array to hexadecimal string

        public static string ByteArrayToString(byte[] bytes)

        {

            return String.Join(string.Empty, Array.ConvertAll(bytes, x => x.ToString("X2")));

        }

posted @ Monday, October 4, 2010 11:31 AM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)

 
 
 
 

Live Comment Preview: