/// <summary> /// Initializes a new instance of the <see cref="PagedList{T}"/> class that contains /// elements copied from the specified collection and has sufficient capacity to /// accommodate the number of elements copied. /// </summary> /// <param name="list">The collection whose elements are copied to the new /// list.</param> public MartenPagedListWrapper(MartenPagination.IPagedList <T> list) => _list = list;
/// <summary> /// Returns a <see cref="IPagedList{T}"/> wrapper for the Marten implementation. /// </summary> /// <typeparam name="T">The type of items in the collection.</typeparam> /// <param name="pagedList">The Marten <see cref="MartenPagination.IPagedList{T}"/>.</param> /// <returns>An <see cref="IPagedList{T}"/> containing the items in the current collection.</returns> public static IPagedList <T> AsPagedList <T>(this MartenPagination.IPagedList <T> pagedList) => new MartenPagedListWrapper <T>(pagedList);