1忽略大小写进行字符串比较 放弃性能消耗更大的ToLower,ToUpper 去使用如下方法 string a="test"; string b="Test"; String.Compare(a, b,StringComparison.OrdinalIgnoreCase)==0;