/*
* Copyright (c) United Binary LLC. All rights reserved.
*
* This code is licensed under the MIT License
*
* SEE: http://harnessit.codeplex.com/license
*
*/
#region using ...
using System;
using System.Text;
#endregion
namespace UnitedBinary.Core.Utility.Text
{
///
public sealed class Format
{
private Format() { }
///
public static string BytesToHexString(byte[] source)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < source.Length; i++)
{
sb.AppendFormat("{0:X2}", source[i]);
}
string hex = sb.ToString();
return hex;
}
}
}