Class PagingExtensions
Contains filters that can be applied to
Inheritance
System.Object
PagingExtensions
Namespace: DotNetNuke.Collections
Assembly: DotNetNuke.dll
Syntax
public static class PagingExtensions : object
Methods
| Improve this Doc View SourceInPagesOf<T>(IEnumerable<T>, Int32)
Filters the incoming store to retrieve pages of a specified size.
Declaration
public static PageSelector<T> InPagesOf<T>(this IEnumerable<T> source, int pageSize)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | source | The source object being filtered. |
| System.Int32 | pageSize | The page size to use. |
Returns
| Type | Description |
|---|---|
| PageSelector<T> | A PageSelector<T> object that is used to select a single page of data from the data source. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object being filtered. |
ToPagedList<T>(IEnumerable<T>, Int32, Int32)
Converts an
Declaration
public static IPagedList<T> ToPagedList<T>(this IEnumerable<T> source, int pageIndex, int pageSize)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | source | The source |
| System.Int32 | pageIndex | The page index requested. |
| System.Int32 | pageSize | The page size requested. |
Returns
| Type | Description |
|---|---|
| IPagedList<T> | A IPagedList<T> object that is used to select a single page of data from the data source. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the items in the |