Class PagedList<T>
- Namespace
- GroupeIsa.Neos.Application.Read
- Assembly
- GroupeIsa.Neos.Application.Abstractions.dll
Represents a IPagedList<T>.
public class PagedList<T> : IPagedList<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
TThe type of elements in the list.
- Inheritance
-
PagedList<T>
- Implements
-
IPagedList<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
PagedList(IReadOnlyList<T>, int, int, int)
Initializes a new instance of the PagedList<T> class.
public PagedList(IReadOnlyList<T> list, int skip, int top, int totalRecordCount)
Parameters
listIReadOnlyList<T>The source list.
skipintThe number of records skipped.
topintThe top count.
totalRecordCountintThe total record count.
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
this[int]
Gets the element at the specified index in the read-only list.
public T this[int index] { get; }
Parameters
indexintThe zero-based index of the element to get.
Property Value
- T
The element at the specified index in the read-only list.
Skip
Gets the number of records to ignore.
public int Skip { get; }
Property Value
Top
Gets the maximum number of records to return.
public int Top { get; }
Property Value
TotalRecordCount
Gets the total number of records.
public int TotalRecordCount { get; }
Property Value
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.