예제 #1
0
 private void AddDiscard(int index)
 {
     if (index == -1)
     {
         return;
     }
     DiscardIndexes.Add(index);
     // if everything is discarded, there's nothing left to do
     // ideally we'd also cancel the background task here
     if (!IDs.Any())
     {
         ResultMaps = new Dictionary <long, Map>();
         Finish();
     }
 }
예제 #2
0
 public bool In(params int[] IDs)
 {
     return(IDs.Any(id => this.ID.Equals(id)));
 }
예제 #3
0
 protected virtual bool ContainsInternal(ObjectId id)
 {
     return(IDs.Any(oid => oid.Equals(id)));
 }