CSharp examples for System:String Split
Split On New Lines
using System.Text.RegularExpressions; using System.Linq; using System.Collections.Generic; using System;//from w w w.j av a2s . c o m public class Main{ public static IEnumerable<string> SplitOnNewLines(this string strSource) { return strSource.Split(new[] {"\r\n", "\n"}, StringSplitOptions.RemoveEmptyEntries); } }