Skip to content

ReplPage<T>

Represents one page of a larger result set.

public sealed record ReplPage<T> : IReplPage, IEquatable<ReplPage<T>>
  • T: Item type.

Initializes a new instance of the ReplPage<T> record.

public ReplPage(IReadOnlyList<T> items, ReplPageInfo pageInfo)
  • items (IReadOnlyList<T>): Items in the page.
  • pageInfo (ReplPageInfo): Page metadata.

Gets the runtime item type declared by the page.

[JsonIgnore]
public Type ItemType { get; }

Type

Gets the typed items in the page.

public IReadOnlyList<T> Items { get; init; }

IReadOnlyList<T>

Gets page metadata.

public ReplPageInfo PageInfo { get; init; }

ReplPageInfo

Gets the current page items as an untyped list.

[JsonIgnore]
public IReadOnlyList<object?> UntypedItems { get; }

IReadOnlyList<object>