Exemple #1
0
 public IEnumerable <ParkingSlot> Filter(IEnumerable <ParkingSlot> items, IParkingSlotCriteria <ParkingSlot> t)
 {
     foreach (var item in items)
     {
         if (t.IsCriteriaMet(item))
         {
             yield return(item);
         }
     }
 }
Exemple #2
0
 public ConjunctionCriteria(IParkingSlotCriteria <T> first, IParkingSlotCriteria <T> second)
 {
     _first  = first;
     _second = second;
 }