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