谁帮我看看这个函数
public static string jiequ(string alltext,string startext,string endtext)
{
int i =alltext.IndexOf(startext)+startext.Length;
int s =alltext.IndexOf(endtext);
string str=alltext.Substring(i,s);
return str;
}
我想实现的功能:把alltext中,startext 和 endtext中的字符串取出来