REFACTOR: Reformat code.

This commit is contained in:
2017-12-19 20:33:03 +00:00
parent 77edc7c91c
commit e6f6ace80b
704 changed files with 82627 additions and 83641 deletions

View File

@@ -76,7 +76,6 @@ namespace DiscImageChef.Metadata
public class ataType
{
public string AdditionalPID { get; set; }
public Identify.TransferMode APIOSupported { get; set; }
public ushort ATAPIByteCount { get; set; }
@@ -1045,5 +1044,4 @@ namespace DiscImageChef.Metadata
public byte[] SCR { get; set; }
public byte[] ExtendedCSD { get; set; }
}
}
}

View File

@@ -909,10 +909,8 @@ namespace DiscImageChef.Metadata
return dmns;
#endregion Apple Hard Disks
default:
return null;
default: return null;
}
}
}
}
}

View File

@@ -41,29 +41,26 @@ namespace DiscImageChef.Metadata
{
public static ExtentType[] ToMetadata(ExtentsULong extents)
{
if(extents == null)
return null;
if(extents == null) return null;
Tuple<ulong, ulong>[] tuples = extents.ToArray();
ExtentType[] array = new ExtentType[tuples.Length];
for(ulong i = 0; i < (ulong)array.LongLength; i++)
array[i] = new ExtentType { Start = tuples[i].Item1, End = tuples[i].Item2 };
array[i] = new ExtentType {Start = tuples[i].Item1, End = tuples[i].Item2};
return array;
}
public static ExtentsULong FromMetadata(ExtentType[] extents)
{
if(extents == null)
return null;
if(extents == null) return null;
List<Tuple<ulong, ulong>> tuples = new List<Tuple<ulong, ulong>>();
foreach(ExtentType extent in extents)
tuples.Add(new Tuple<ulong, ulong>(extent.Start, extent.End));
foreach(ExtentType extent in extents) tuples.Add(new Tuple<ulong, ulong>(extent.Start, extent.End));
return new ExtentsULong(tuples);
}
}
}
}

View File

@@ -1826,5 +1826,4 @@ namespace DiscImageChef.Metadata
}
}
}
}
}

View File

@@ -54,5 +54,4 @@ using System.Reflection;
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
//[assembly: AssemblyKeyFile("")]

View File

@@ -41,17 +41,13 @@ namespace DiscImageChef.Metadata
[XmlRoot("DicResume", Namespace = "", IsNullable = false)]
public class Resume
{
[XmlElement(DataType = "dateTime")]
public DateTime CreationDate;
[XmlElement(DataType = "dateTime")]
public DateTime LastWriteDate;
[XmlElement(DataType = "dateTime")] public DateTime CreationDate;
[XmlElement(DataType = "dateTime")] public DateTime LastWriteDate;
public bool Removable;
public ulong LastBlock;
public ulong NextBlock;
[XmlArrayItem("DumpTry")]
public List<DumpHardwareType> Tries;
[XmlArrayItem("Block")]
public List<ulong> BadBlocks;
[XmlArrayItem("DumpTry")] public List<DumpHardwareType> Tries;
[XmlArrayItem("Block")] public List<ulong> BadBlocks;
}
}
}

View File

@@ -121,16 +121,13 @@ namespace DiscImageChef.Metadata
public class ChecksumStats
{
[XmlAttribute]
public string algorithm;
[XmlText]
public double Value;
[XmlAttribute] public string algorithm;
[XmlText] public double Value;
}
public class BenchmarkStats
{
[XmlElement("Checksum")]
public List<ChecksumStats> Checksum;
[XmlElement("Checksum")] public List<ChecksumStats> Checksum;
public double Entropy;
public double All;
public double Sequential;
@@ -140,12 +137,9 @@ namespace DiscImageChef.Metadata
public class MediaStats
{
[XmlAttribute]
public bool real;
[XmlAttribute]
public string type;
[XmlText]
public long Value;
[XmlAttribute] public bool real;
[XmlAttribute] public string type;
[XmlText] public long Value;
}
public class DeviceStats
@@ -155,8 +149,7 @@ namespace DiscImageChef.Metadata
public string Revision { get; set; }
public string Bus { get; set; }
[XmlIgnore]
public bool ManufacturerSpecified;
[XmlIgnore] public bool ManufacturerSpecified;
}
public class NameValueStats
@@ -176,4 +169,4 @@ namespace DiscImageChef.Metadata
[XmlText]
public long Value { get; set; }
}
}
}