[Style] Use primative string instead of object String

This commit is contained in:
Matt Nadareski
2016-09-26 12:19:37 -07:00
parent 6952be1753
commit ad34192a14

View File

@@ -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("-"))
{ {