blob: ea29986b71ea97bc5599ac5d6675b3f87616b8b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.Scripting
{
internal static class ExtensionMethods
{
public static List<String> ToLines(this String str)
{
//return str.Split(new[] { '\r', '\n' }).ToList();
if (str == null) return new List<string>();
return str.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None).ToList();
}
}
}
|