Table of Contents

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

T

The type of elements in the list.

Inheritance
PagedList<T>
Implements
Inherited Members

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

list IReadOnlyList<T>

The source list.

skip int

The number of records skipped.

top int

The top count.

totalRecordCount int

The total record count.

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

this[int]

Gets the element at the specified index in the read-only list.

public T this[int index] { get; }

Parameters

index int

The 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

int

Top

Gets the maximum number of records to return.

public int Top { get; }

Property Value

int

TotalRecordCount

Gets the total number of records.

public int TotalRecordCount { get; }

Property Value

int

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.