a.字节数组:
b.字符串数组:不少人抱怨C#没有提供以字符串分割字符串的方法,其实2.0里C#提供了这样的方
//625毫秒/百万次
string str = "acabcdeabcdeabcde";
string[] strArr = str.Split(new char[1] { 'c' });
法。
//828毫秒/百万次
string str = "acabcdeabcdeabcde";
string[] strArr = str.Split(new string[1]{"c"}, StringSplitOptions.None);
//703毫秒/百万次
string str = "acabcdeabcdeabcde";
string[] strArr = str.Split(new string[1]{"cde"}, StringSplitOptions.None);