Click or drag to resize

PagedListT Constructor

Creates a new PagedListT.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public PagedList(
	IEnumerable<T> source,
	int page,
	int pageSize,
	int count = -1
)
View Source

Parameters

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.
Remarks
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.
See Also