Beispiel #1
0
            public Enumerator(EntitySourceContext <TEntity> context, IEntitySource <TEntity>[] sources)
            {
                _buffer  = new Dictionary <int, TEntity>(256);
                _context = context;
                _sources = sources;

                _current           = null !;
                _currentEnumerator = null;
            }
Beispiel #2
0
            public void Dispose()
            {
                _buffer.Clear();
                _buffer = null !;

                _current = null !;

                _context._enumerator = null;
                _context             = null !;

                _sources = null !;

                _currentEnumerator?.Dispose();
                _currentEnumerator = null !;
            }