Join local variable declaration and assignment.

This commit is contained in:
2022-11-13 20:27:32 +00:00
parent e449e53454
commit c1f24c46a9
3 changed files with 5 additions and 8 deletions

View File

@@ -64,7 +64,6 @@ public static class PRI
return null;
var pri = new PreRecordedInformation();
byte[] tmp;
pri.DataLength = (ushort)((response[0] << 8) + response[1]);
pri.Reserved1 = response[2];
@@ -109,7 +108,7 @@ public static class PRI
Array.Copy(response, 37, pri.ManufacturerId3, 0, 6);
Array.Copy(response, 44, pri.Reserved8, 0, pri.Reserved8.Length);
tmp = new byte[18];
var tmp = new byte[18];
Array.Copy(response, 21, tmp, 0, 6);
Array.Copy(response, 29, tmp, 6, 6);

View File

@@ -125,9 +125,8 @@ public static class Dreamcast
IPBinInformation.AppendLine("--------------------------------");
// Decoding all data
DateTime ipbindate;
CultureInfo provider = CultureInfo.InvariantCulture;
ipbindate = DateTime.ParseExact(Encoding.ASCII.GetString(ipbin.release_date), "yyyyMMdd", provider);
CultureInfo provider = CultureInfo.InvariantCulture;
var ipbindate = DateTime.ParseExact(Encoding.ASCII.GetString(ipbin.release_date), "yyyyMMdd", provider);
IPBinInformation.AppendFormat("Product name: {0}", Encoding.ASCII.GetString(ipbin.product_name)).AppendLine();

View File

@@ -116,9 +116,8 @@ public static class Saturn
IPBinInformation.AppendLine("--------------------------------");
// Decoding all data
DateTime ipbindate;
CultureInfo provider = CultureInfo.InvariantCulture;
ipbindate = DateTime.ParseExact(Encoding.ASCII.GetString(ipbin.release_date), "yyyyMMdd", provider);
CultureInfo provider = CultureInfo.InvariantCulture;
var ipbindate = DateTime.ParseExact(Encoding.ASCII.GetString(ipbin.release_date), "yyyyMMdd", provider);
IPBinInformation.AppendFormat("Product name: {0}", Encoding.ASCII.GetString(ipbin.product_name)).AppendLine();