用另一个字符串拆分字符串
string str = "this--is--a--complete--sentence";
string[] tokens = str.Split(new[] { "--" }, StringSplitOptions.None);
结果:
[
this,is,a,complete,sentence]
string str = "this--is--a--complete--sentence";
string[] tokens = str.Split(new[] { "--" }, StringSplitOptions.None);
结果:
[
this,is,a,complete,sentence]