1: public bool Exists(Predicate<VALUE> predicate)
   2:         {
   3:             bool returnValue = false;
   4:  
   5:             Each(delegate(VALUE value) { returnValue |= predicate(value); });
   6:  
   7:             return returnValue;
   8:         }
   9:  
  10: public void Each(Action<VALUE> action)
  11:         {
  12:             foreach (var pair in _values)
  13:             {
  14:                 action(pair.Value);
  15:             }
  16:         }
  17:  
  18: private readonly IDictionary<KEY, VALUE> _values;

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2021-10-09
  • 2021-10-09
  • 2022-01-22
  • 2022-02-14
  • 2021-10-30
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案