Example #1
0
            public void Dispose()
            {
                _elements?.Dispose();
                Pool <PoolingList <TSource> > .Return(_elements);

                _elements = null;

                Key = default;
            }
                public void Dispose()
                {
                    _enumerator?.Dispose();
                    _src?.Dispose();
                    Pool <PoolingList <T> > .Return(_src);

                    Pool <EnumeratorVal> .Return(this);

                    _src = default;
                }
        private void Dispose()
        {
            if (_count == 0)
            {
                return;
            }
            _count--;
            if (_count == 0)
            {
                _src?.Dispose();
                Pool <PoolingList <T> > .Return(_src);

                _src = default;
                Pool <ReverseExprEnumerable <T> > .Return(this);
            }
        }