Split Into Lines - CSharp System

CSharp examples for System:String Split

Description

Split Into Lines

Demo Code


using System;/*ww w. j a  va 2 s .c o m*/

public class Main{
        public static string[] SplitIntoLines(this string value, StringSplitOptions stringSplitOptions = StringSplitOptions.None)
        {
            return value.Split(new[] { "\r\n", "\r", "\n" }, stringSplitOptions);
        }
}

Related Tutorials