PagedListT Constructor

Creates a new PagedListT.

Definition

Namespace: Gemstone.Collections
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.138 -- Release Build+dacff88cce10d287c7434d5aac59c76948c712b1
public PagedList(
	IEnumerable<T> source,
	int page,
	int pageSize,
	int count = -1
)

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