Beispiel #1
0
 public void Dispose()
 {
     _parent?.Dispose();
     _parent = default;
     _src?.Dispose();
     _src     = default;
     _context = default;
     Pool <SelectExprWithContextEnumerator> .Return(this);
 }
Beispiel #2
0
 public SelectExprWithContextEnumerator Init(
     SelectExprWithContextEnumerable <T, TR, TContext> parent,
     IPoolingEnumerator <T> src,
     TContext context,
     Func <TContext, T, TR> condition)
 {
     _src       = src;
     _parent    = parent;
     _context   = context;
     _condition = condition;
     return(this);
 }