CollectionExtensionsToPagedListT Method
Gets a
PagedListT to paginate
source enumeration for
a given
page and specified
pageSize.
Namespace: Gemstone.Collections.CollectionExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static PagedList<T> ToPagedList<T>(
this IEnumerable<T> source,
int page,
int pageSize,
int count = -1
)
<ExtensionAttribute>
Public Shared Function ToPagedList(Of T) (
source As IEnumerable(Of T),
page As Integer,
pageSize As Integer,
Optional count As Integer = -1
) As PagedList(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static PagedList<T>^ ToPagedList(
IEnumerable<T>^ source,
int page,
int pageSize,
int count = -1
)
JavaScript does not support generic types or methods.
- source IEnumerableT
- Source enumeration to paginate.
- page Int32
- Page number (1-based).
- pageSize Int32
- Page size.
- count Int32 (Optional)
- Total records in source if known.
- T
- Type of IEnumerableT to paginate.
PagedListTSet of items on a given
page for specified
pageSize.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
If count is known or can be calculated early, specify the value in the
count parameter as an optimization to prevent a full
enumeration on source to get a count.