From 26298fa2aeb11f2c5678a05defa05d5cc0ef1d4f Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 5 Nov 2017 18:58:01 +0200 Subject: Implemented precise package names for Java compiler using a new 'UseDefaultStructure' property for all compilers! --- .../Tango.Core/ExtensionMethods/StringExtensions.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Software/Visual Studio/Tango.Core/ExtensionMethods/StringExtensions.cs') diff --git a/Software/Visual Studio/Tango.Core/ExtensionMethods/StringExtensions.cs b/Software/Visual Studio/Tango.Core/ExtensionMethods/StringExtensions.cs index 5baaac72b..049c9c4af 100644 --- a/Software/Visual Studio/Tango.Core/ExtensionMethods/StringExtensions.cs +++ b/Software/Visual Studio/Tango.Core/ExtensionMethods/StringExtensions.cs @@ -15,4 +15,14 @@ public static class StringExtensions { return obj != null ? obj.ToString() : String.Empty; } + + /// + /// Splits the string to lines. + /// + /// The string. + /// + public static List ToLines(this String str) + { + return str.Split(new[] { '\r', '\n' }).ToList(); + } } -- cgit v1.3.1