From 0df718862589ed5174b254dd0375d179455233a8 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 11 Mar 2019 19:22:26 +0000 Subject: [PATCH] Code styling. --- Metadata/Resume.cs | 18 +++++++++++------- Metadata/Statistics.cs | 39 +++++++++++++++++++++++---------------- Structs/Filesystems.cs | 18 ++++++++++++------ 3 files changed, 46 insertions(+), 29 deletions(-) diff --git a/Metadata/Resume.cs b/Metadata/Resume.cs index b05d4a4f9..c6794d769 100644 --- a/Metadata/Resume.cs +++ b/Metadata/Resume.cs @@ -47,13 +47,17 @@ namespace DiscImageChef.CommonTypes.Metadata [XmlRoot("DicResume", Namespace = "", IsNullable = false)] public class Resume { - [XmlElement(DataType = "dateTime")] public DateTime CreationDate; - [XmlElement(DataType = "dateTime")] public DateTime LastWriteDate; - public bool Removable; - public ulong LastBlock; - public ulong NextBlock; + [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 Tries; - [XmlArrayItem("Block")] public List BadBlocks; + [XmlArrayItem("DumpTry")] + public List Tries; + [XmlArrayItem("Block")] + public List BadBlocks; } } \ No newline at end of file diff --git a/Metadata/Statistics.cs b/Metadata/Statistics.cs index 236996f8a..33cc6ed7b 100644 --- a/Metadata/Statistics.cs +++ b/Metadata/Statistics.cs @@ -142,34 +142,41 @@ namespace DiscImageChef.CommonTypes.Metadata public class ChecksumStats { - [XmlAttribute] public string algorithm; - [XmlText] public double Value; + [XmlAttribute] + public string algorithm; + [XmlText] + public double Value; } public class BenchmarkStats { - public double All; - [XmlElement("Checksum")] public List Checksum; - public double Entropy; - public long MaxMemory; - public long MinMemory; - public double Sequential; + public double All; + [XmlElement("Checksum")] + public List Checksum; + public double Entropy; + public long MaxMemory; + public long MinMemory; + public double Sequential; } 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 { - [XmlIgnore] public bool ManufacturerSpecified; - public string Manufacturer { get; set; } - public string Model { get; set; } - public string Revision { get; set; } - public string Bus { get; set; } + [XmlIgnore] + public bool ManufacturerSpecified; + public string Manufacturer { get; set; } + public string Model { get; set; } + public string Revision { get; set; } + public string Bus { get; set; } } public class NameValueStats diff --git a/Structs/Filesystems.cs b/Structs/Filesystems.cs index 28b5926ea..153f624b3 100644 --- a/Structs/Filesystems.cs +++ b/Structs/Filesystems.cs @@ -247,13 +247,19 @@ namespace DiscImageChef.CommonTypes.Structs [StructLayout(LayoutKind.Explicit)] public struct FileSystemId { - [FieldOffset(0)] public bool IsInt; - [FieldOffset(1)] public bool IsLong; - [FieldOffset(2)] public bool IsGuid; + [FieldOffset(0)] + public bool IsInt; + [FieldOffset(1)] + public bool IsLong; + [FieldOffset(2)] + public bool IsGuid; - [FieldOffset(3)] public uint Serial32; - [FieldOffset(3)] public ulong Serial64; - [FieldOffset(3)] public Guid uuid; + [FieldOffset(3)] + public uint Serial32; + [FieldOffset(3)] + public ulong Serial64; + [FieldOffset(3)] + public Guid uuid; } ///