1、如何使用List<T>.Any来代List<T>.Contains(TSource value, IEqualityComparer<TSource> comparer),不需要使用IEqualityComparer比较器

List<string> list = new List<string>() { "Tom""Dick""Harry""Mary""Jay" };
Response.Write(list.Any(s 
=> s.ToLower() == "tom"));


2、

相关文章:

  • 2022-12-23
  • 2021-06-25
  • 2021-07-26
  • 2021-06-26
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2021-06-04
  • 2021-08-16
  • 2021-08-18
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案