示例#1
0
 public void Dispose()
 {
     if (this.target != null)
     {
         CollectionViewSource collectionViewSource = this.target;
         this.target = null;
         collectionViewSource.EndDefer();
     }
     GC.SuppressFinalize(this);
 }
示例#2
0
 public FilterStub(CollectionViewSource parent)
 {
     this.parent = new WeakReference(parent);
     this.filterWrapper = new Predicate<object>(this.WrapFilter);
 }
示例#3
0
 public DeferHelper(CollectionViewSource target)
 {
     this.target = target;
     this.target.BeginDefer();
 }