C# 包含某字符串,并忽略大小写

string arg = "Somestring";
bool silentInstall = arg.IndexOf("silent", StringComparison.OrdinalIgnoreCase) >= 0;

https://blog.csdn.net/qw623577789/article/details/44778249

你可能感兴趣的:(C# 包含某字符串,并忽略大小写)