📜  如何在 c# 代码示例中从 readline 中搜索字符串

📅  最后修改于: 2022-03-11 14:48:44.586000             🧑  作者: Mango

代码示例1
string s = "abc";//string to be searched
//'line' is the storing the line which is read
if(line.Contains(s))
{
   //action to be performed
}