我有这样的刺痛:
string searches = "my test";
然后我可以将它们分解成单独的术语,如下所示:
string[] split = searches.Split(new Char[] { ' ' });
这给了我:
[0] = "my"
[1] = "test"
有什么快速的方法可以做到以下几点:
[0] = "my"
[1] = "test"
[2] = "my:"
[3] = "test:"
[4] = "my,"
[5] = "test,"
我需要将搜索词加倍并将“:”附加到加倍集的末尾。最简单有效的方法是什么?