mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
Join local variable declaration and assignment.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user