To Split a String at newline in C# and VB.NET you can use the following snippet.
Sample C#
public static IEnumerable<String> SplitAtNewLine(string input) { return input.Split(new[] { Environment.NewLine }, StringSplitOptions.None); }
Sample VB.NET
Public Shared Function SplitAtNewLine(input As String) As IEnumerable(Of String) Return input.Split(New () {Environment.NewLine}, StringSplitOptions.None) End Function
RT @CodeSnippetsNET: Split a String at newline in C# and #VB .NET http://t.co/mciyETW5vq #csharp #dotnet #code #dev #coding