예제 #1
0
        public void LoadNextPage()
        {
            var replacing = _pagesToLoad.Current;

            if (replacing == null)
            {
                throw new NullReferenceException("no more pages to load");
            }
            VirtualMemory.Accept(replacing);
            PhysicalMemory.Accept(replacing);
            _pagesToLoad.MoveNext();
        }