【发布时间】:2013-02-02 18:40:50
【问题描述】:
private static string SetValue(string input, string reference)
{
string[] sentence = input.Split(' ');
for(int word = 0; word<sentence.Length; word++)
{
if (sentence[word].Equals(reference, StringComparison.OrdinalIgnoreCase))
{
return String.Join(" ", sentence.subarray(word+1,sentence.Length))
}
}
}
我怎样才能轻松完成sentence.subarray(word+1,sentence.Length) 或以其他方式做到这一点?
【问题讨论】: