62,074
社区成员
发帖
与我相关
我的任务
分享
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string s = "Hello";
char[] anyOf ={ 'H', 'e', 'l' };
int i2 = s.LastIndexOfAny(anyOf);
int i1 = s.IndexOfAny(anyOf);
Response.Write(i2+"</br>"+i1);
}
}