Esempio n. 1
0
            public void Dispose()
            {
                _currentEnumerator?.Dispose();
                _currentEnumerator = default;

                _parent?.Dispose();
                _parent = default;

                _src.Dispose();
                _src = default;

                Pool <SelectManyExprWithContextEnumerator> .Return(this);
            }
Esempio n. 2
0
 public SelectManyExprWithContextEnumerator Init(
     SelectManyExprWithContextEnumerable <T, TR, TContext> parent,
     IPoolingEnumerator <T> src,
     Func <T, TContext, IPoolingEnumerable <TR> > mutator,
     TContext context)
 {
     _src               = src;
     _finished          = false;
     _parent            = parent;
     _mutator           = mutator;
     _context           = context;
     _currentEnumerator = default;
     return(this);
 }