//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors /// <summary> /// Default constructor for a PageCache object. /// Creates our internal cache, represented as a Generic List. /// </summary> public PageCache() { //Create the internal representation of our Cache with a default size. //This cache is a dynamic List which will expand to accommodate larger documents. _cache = new List <PageCacheEntry>(_defaultCacheSize); //Create the PageDestroyedWatcher which will keep track of what DocumentPages //have been destroyed. _pageDestroyedWatcher = new PageDestroyedWatcher(); }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors /// <summary> /// Default constructor for a PageCache object. /// Creates our internal cache, represented as a Generic List. /// </summary> public PageCache() { //Create the internal representation of our Cache with a default size. //This cache is a dynamic List which will expand to accommodate larger documents. _cache = new List<PageCacheEntry>(_defaultCacheSize); //Create the PageDestroyedWatcher which will keep track of what DocumentPages //have been destroyed. _pageDestroyedWatcher = new PageDestroyedWatcher(); }