public void Dispose() { if (m_tableOfContent != null) { Debug.Assert(m_tableOfContent.VirtualPages.Count == 0); m_tableOfContent.Dispose(); m_tableOfContent = null; } m_pagingManager = null; this.IsDisposed = true; }
public VirtualList(VirtualPageManager pagingManager, int virtualCount) { if (pagingManager == null) { throw new ArgumentNullException("pagingManager"); } pagingManager.ManageList(this); m_tableOfContent = new VirtualListTableOfContent(8); m_virtualCount = virtualCount; }
public VirtualList(VirtualPageManager pagingManager) : this(pagingManager, -1) { }