From 14e4bd850fa6730eecd7d15bd7044f364b41c986 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 12 Nov 2020 20:38:57 +0200 Subject: Working on data store view. --- .../Visual_Studio/Tango.Core/ExtensionMethods/StringExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Software/Visual_Studio/Tango.Core/ExtensionMethods') diff --git a/Software/Visual_Studio/Tango.Core/ExtensionMethods/StringExtensions.cs b/Software/Visual_Studio/Tango.Core/ExtensionMethods/StringExtensions.cs index 97c8773d6..5a12e16bb 100644 --- a/Software/Visual_Studio/Tango.Core/ExtensionMethods/StringExtensions.cs +++ b/Software/Visual_Studio/Tango.Core/ExtensionMethods/StringExtensions.cs @@ -261,6 +261,11 @@ public static class StringExtensions return !String.IsNullOrWhiteSpace(str); } + public static String ToOneLine(this String str) + { + return str.Replace(Environment.NewLine, " "); + } + public static List ToEnumValues(this String str, char splitChar) where T : struct { if (!String.IsNullOrWhiteSpace(str)) -- cgit v1.3.1