c# If else statement with case insensative
This question already has an answer here:
尝试这个
if(article.IndexOf(value, StringComparison.OrdinalIgnoreCase) >= 0)
{
// ....
}
else
{
// .....
}
链接地址: http://www.djcxy.com/p/13090.html
上一篇: 检查Windows ListBox是否包含字符串c#ignorecase?
下一篇: c#If else语句不区分大小写