From 0b515eb15ced8f187ed3748f3f4e92918ab8f6b7 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Mon, 12 Feb 2018 22:53:42 +0100 Subject: [PATCH] Use expression-bodied properties. --- ATxCommon/Serializables/ServiceConfig.cs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/ATxCommon/Serializables/ServiceConfig.cs b/ATxCommon/Serializables/ServiceConfig.cs index 10d90df..9fca6a7 100644 --- a/ATxCommon/Serializables/ServiceConfig.cs +++ b/ATxCommon/Serializables/ServiceConfig.cs @@ -221,41 +221,31 @@ namespace ATxCommon.Serializables /// The full path to the incoming directory. /// </summary> [XmlIgnore] - public string IncomingPath { - get { return Path.Combine(SourceDrive, IncomingDirectory); } - } + public string IncomingPath => Path.Combine(SourceDrive, IncomingDirectory); /// <summary> /// The full path to the managed directory. /// </summary> [XmlIgnore] - public string ManagedPath { - get { return Path.Combine(SourceDrive, ManagedDirectory); } - } + public string ManagedPath => Path.Combine(SourceDrive, ManagedDirectory); /// <summary> /// The full path to the processing directory. /// </summary> [XmlIgnore] - public string ProcessingPath { - get { return Path.Combine(ManagedPath, "PROCESSING"); } - } + public string ProcessingPath => Path.Combine(ManagedPath, "PROCESSING"); /// <summary> /// The full path to the done directory / grace location. /// </summary> [XmlIgnore] - public string DonePath { - get { return Path.Combine(ManagedPath, "DONE"); } - } + public string DonePath => Path.Combine(ManagedPath, "DONE"); /// <summary> /// The full path to the directory for unmatched user directories. /// </summary> [XmlIgnore] - public string UnmatchedPath { - get { return Path.Combine(ManagedPath, "UNMATCHED"); } - } + public string UnmatchedPath => Path.Combine(ManagedPath, "UNMATCHED"); #endregion -- GitLab