string a = "abcdefg";

string b = "abc";

if(a.IndexOf(b)>-1)

{

   字符串A包含字符串B;

}

相关文章: