C#中判断字符串A中是否包含字符串B

string a = "dahioh123geug";
string b = "123";
if(a.IndexOf(b)>-1)
{
  //字符串A中包含字符串B
}
原文地址:https://www.cnblogs.com/tohen/p/479584.html