Pattern for exposing non-generic version of generic interface
问题 Say I have the following interface for exposing a paged list public interface IPagedList<T> { IEnumerable<T> PageResults { get; } int CurrentPageIndex { get; } int TotalRecordCount { get; } int TotalPageCount { get; } int PageSize { get; } } Now I want to create a paging control public class PagedListPager<T> { public PagedListPager<T>(IPagedList<T> list) { _list = list; } public void RenderPager() { for (int i = 1; i < list.TotalPageCount; i++) RenderLink(i); } } The paging control has no