Exemple #1
0
 public void Dispose()
 {
     if (this.collectionView != null)
     {
         this.collectionView.EndDefer();
         this.collectionView = (CollectionView)null;
     }
     GC.SuppressFinalize((object)this);
 }
Exemple #2
0
 public DeferHelper(CollectionView collectionView)
 {
     this.collectionView = collectionView;
 }
Exemple #3
0
 private void SetFlag(CollectionView.CollectionViewFlags flags, bool value)
 {
     if (value)
     {
         this.flags = this.flags | flags;
     }
     else
     {
         this.flags = this.flags & ~flags;
     }
 }
Exemple #4
0
 public PlaceholderAwareEnumerator(CollectionView collectionView, IEnumerator baseEnumerator, object newItem)
 {
     this.collectionView = collectionView;
     this.timestamp = collectionView.Timestamp;
     this.baseEnumerator = baseEnumerator;
     this.newItem = newItem;
 }
Exemple #5
0
 private bool CheckFlag(CollectionView.CollectionViewFlags flags)
 {
     return (this.flags & flags) != (CollectionView.CollectionViewFlags)0;
 }