From 6f5226c9600d6c3797fb7a3ffb4d99bd006a7f0d Mon Sep 17 00:00:00 2001
From: Michael Krisper <michael.krisper@tugraz.at>
Date: Tue, 22 Mar 2022 15:00:55 +0100
Subject: [PATCH] StringExtensionMethods: reformated IndulgentParse, ToStream,
 and RemoveWhitespace

---
 .../Utils/StringExtensionMethods.cs            | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs b/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs
index fbe60aba54..c89db25926 100644
--- a/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs
+++ b/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs
@@ -84,20 +84,14 @@ namespace TUGraz.VectoCommon.Utils
 			return int.Parse(self) != 0;
 		}
 
-		public static double IndulgentParse(this string self)
-		{
-			return double.Parse(new string(self.Trim().TakeWhile(c => char.IsDigit(c) || c == '.').ToArray()),
+		public static double IndulgentParse(this string self) =>
+			double.Parse(new string(self.Trim().TakeWhile(c => char.IsDigit(c) || c == '.').ToArray()),
 				CultureInfo.InvariantCulture);
-		}
 
-		public static Stream ToStream(this string self)
-		{
-			return new MemoryStream(Encoding.UTF8.GetBytes(self));
-		}
+		public static Stream ToStream(this string self) => 
+			new MemoryStream(Encoding.UTF8.GetBytes(self));
 
-		public static string RemoveWhitespace(this string self)
-		{
-			return string.Concat(self.Split());
-		}
+		public static string RemoveWhitespace(this string self) => 
+			string.Concat(self.Split());
 	}
 }
\ No newline at end of file
-- 
GitLab