c# Equals对比忽略大小写

String.Equals(str1,str2,StringComparison.CurrentCultureIgnoreCase);
StringComparison.CurrentCultureIgnoreCase:忽略被比较字符的大小写



c#比较字符串(并且忽略大小写)Equals 对比 ToUpper 和 ToLower 提高效率

猜你喜欢

转载自www.cnblogs.com/lbonet/p/9887662.html
今日推荐