From b2bc311ef8cef5ca6cf81c301e22ba28e312e303 Mon Sep 17 00:00:00 2001 From: aloisdg Date: Sat, 9 May 2015 11:36:54 +0200 Subject: [PATCH] Indent code --- Counter/ADocument.cs | 4 ++-- Counter/Document.cs | 14 +++++++------- Counter/Documents/Archives/Docx.cs | 6 +++--- Counter/Documents/Archives/Odt.cs | 6 +++--- Counter/Documents/Pdf.cs | 5 ++--- Counter/IDocument.cs | 4 ++-- Counter/Properties/AssemblyInfo.cs | 4 ++-- 7 files changed, 21 insertions(+), 22 deletions(-) diff --git a/Counter/ADocument.cs b/Counter/ADocument.cs index 92d5124..cb0ddac 100644 --- a/Counter/ADocument.cs +++ b/Counter/ADocument.cs @@ -2,7 +2,7 @@ { internal abstract class ADocument : IDocument { - public abstract DocumentType Type { get; } - public abstract uint Count { get; protected set; } + public abstract DocumentType Type { get; } + public abstract uint Count { get; protected set; } } } \ No newline at end of file diff --git a/Counter/Document.cs b/Counter/Document.cs index 04a8b34..fc66b0e 100644 --- a/Counter/Document.cs +++ b/Counter/Document.cs @@ -13,12 +13,12 @@ namespace Counter /// public class Document { - public DocumentType ExtensionType { get; private set; } - public string Extension { get; private set; } - public string FullName { get; private set; } - public string Name { get; private set; } - public string NameWithoutExtension { get; private set; } - public uint Count { get; private set; } + public DocumentType ExtensionType { get; private set; } + public string Extension { get; private set; } + public string FullName { get; private set; } + public string Name { get; private set; } + public string NameWithoutExtension { get; private set; } + public uint Count { get; private set; } private readonly Dictionary _extensionsSupported = new Dictionary @@ -31,7 +31,7 @@ private readonly Dictionary _extensionsSupported public Document(string fullName) { FullName = fullName; - Name = Path.GetFileName(fullName); + Name = Path.GetFileName(fullName); NameWithoutExtension = Path.GetFileNameWithoutExtension(fullName); Extension = Path.GetExtension(fullName); ExtensionType = IsSupported(Extension) diff --git a/Counter/Documents/Archives/Docx.cs b/Counter/Documents/Archives/Docx.cs index 7c2e06c..e481ac2 100644 --- a/Counter/Documents/Archives/Docx.cs +++ b/Counter/Documents/Archives/Docx.cs @@ -7,9 +7,9 @@ namespace Counter.Documents.Archives { internal sealed class Docx : AArchive { - const string Path = "docProps/app.xml"; - public override DocumentType Type { get { return DocumentType.Pdf; } } - public override uint Count { get; protected set; } + const string Path = "docProps/app.xml"; + public override DocumentType Type { get { return DocumentType.Pdf; } } + public override uint Count { get; protected set; } // a pptx or a docx is a zip public Docx(Stream stream) diff --git a/Counter/Documents/Archives/Odt.cs b/Counter/Documents/Archives/Odt.cs index 2fb2238..a63d8e4 100644 --- a/Counter/Documents/Archives/Odt.cs +++ b/Counter/Documents/Archives/Odt.cs @@ -7,9 +7,9 @@ namespace Counter.Documents.Archives { internal sealed class Odt : AArchive { - const string Path = "meta.xml"; - public override DocumentType Type { get { return DocumentType.Odt; } } - public override uint Count { get; protected set; } + const string Path = "meta.xml"; + public override DocumentType Type { get { return DocumentType.Odt; } } + public override uint Count { get; protected set; } public Odt(Stream stream) { diff --git a/Counter/Documents/Pdf.cs b/Counter/Documents/Pdf.cs index c9c175b..6c52233 100644 --- a/Counter/Documents/Pdf.cs +++ b/Counter/Documents/Pdf.cs @@ -6,9 +6,8 @@ namespace Counter.Documents { internal sealed class Pdf : ADocument { - public override DocumentType Type { get { return DocumentType.Pdf; } } - - public override uint Count { get; protected set; } + public override DocumentType Type { get { return DocumentType.Pdf; } } + public override uint Count { get; protected set; } // faster than regex. // so thread http://stackoverflow.com/q/320281/1248177 diff --git a/Counter/IDocument.cs b/Counter/IDocument.cs index 64da3b0..7cc6db9 100644 --- a/Counter/IDocument.cs +++ b/Counter/IDocument.cs @@ -2,7 +2,7 @@ { internal interface IDocument { - DocumentType Type { get; } - uint Count { get; } + DocumentType Type { get; } + uint Count { get; } } } \ No newline at end of file diff --git a/Counter/Properties/AssemblyInfo.cs b/Counter/Properties/AssemblyInfo.cs index 7d6a32c..726b38d 100644 --- a/Counter/Properties/AssemblyInfo.cs +++ b/Counter/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.3.2")] -[assembly: AssemblyFileVersion("1.1.3.2")] \ No newline at end of file +[assembly: AssemblyVersion("1.1.3.4")] +[assembly: AssemblyFileVersion("1.1.3.4")] \ No newline at end of file