REFACTOR: All refactor in DiscImageChef.Helpers.

This commit is contained in:
2017-12-22 16:35:31 +00:00
parent af478a92d1
commit c684b25418
11 changed files with 31 additions and 104 deletions

View File

@@ -54,12 +54,7 @@ namespace DiscImageChef
Array.Copy(destinationArray, 0, destinationArray, copyLength, destinationArray.Length - copyLength);
}
public static string ByteArrayToHex(byte[] array)
{
return ByteArrayToHex(array, false);
}
public static string ByteArrayToHex(byte[] array, bool upper)
public static string ByteArrayToHex(byte[] array, bool upper = false)
{
StringBuilder sb = new StringBuilder();
for(long i = 0; i < array.LongLength; i++) sb.AppendFormat("{0:x2}", array[i]);