using System;\r
using System.Collections;\r
using System.Collections.Specialized;\r
+using System.Collections.Generic;\r
\r
namespace System.Text.RegularExpressions\r
{\r
\r
virtual public string [] Split (Regex regex, string input, int count, int startat)\r
{\r
- ArrayList splits = new ArrayList ();\r
+ var splits = new List<string> ();\r
if (count == 0)\r
count = Int32.MaxValue;\r
\r
if (!regex.RightToLeft && ptr <= input.Length)\r
splits.Add (input.Substring (ptr));\r
\r
- return (string []) splits.ToArray (typeof (string));\r
+ return splits.ToArray ();
}\r
\r
virtual public Match Scan (Regex regex, string text, int start, int end)\r