mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Style] Use primative string instead of object String
This commit is contained in:
@@ -424,7 +424,7 @@ namespace SabreTools.Helper
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa
|
/// http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static byte[] StringToByteArray(String hex)
|
public static byte[] StringToByteArray(string hex)
|
||||||
{
|
{
|
||||||
int NumberChars = hex.Length;
|
int NumberChars = hex.Length;
|
||||||
byte[] bytes = new byte[NumberChars / 2];
|
byte[] bytes = new byte[NumberChars / 2];
|
||||||
@@ -436,7 +436,7 @@ namespace SabreTools.Helper
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// http://stackoverflow.com/questions/5613279/c-sharp-hex-to-ascii
|
/// http://stackoverflow.com/questions/5613279/c-sharp-hex-to-ascii
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string ConvertHexToAscii(String hexString)
|
public static string ConvertHexToAscii(string hexString)
|
||||||
{
|
{
|
||||||
if (hexString.Contains("-"))
|
if (hexString.Contains("-"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user