show.EndsWith("你好链胡嫌");
即为字符show 内,是"你做银好"
show.Length;
show字符内的个数棚手
比如:show="123456"
show.Length=6
string aa="隐脊 abcd6789@21cn.com"陆携核;
方法1:aa.IndexOf ("b",1,);
方法2:有需要用正则表达式
string emailflag = "早掘@";
if(Regex.Matches(aa,emailflag).Count)==0
static int Count(string str, string constr)
{
return System.Text.RegularExpressions.Regex.Matches(str, constr).Count;
}