//Microsoft Public License (Ms-PL)
//http://visualizer.codeplex.com/license
using System;
using System.Collections.Generic;
namespace Redwerb.BizArk.Core.StringExt
{
///
/// Provides extension methods for strings.
///
public static class StringExt
{
///
/// Splits the string into lines.
///
///
///
public static string[] Lines(this string str)
{
var lines = new List();
using (var sr = new System.IO.StringReader(str))
{
string line = sr.ReadLine();
while (line != null)
{
lines.Add(line);
line = sr.ReadLine();
}
}
return lines.ToArray();
}
}
}