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.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
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.