ReplPage<T>
Represents one page of a larger result set.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/ResultFlow/ReplPage.cs
Signature
Section titled “Signature”public sealed record ReplPage<T> : IReplPage, IEquatable<ReplPage<T>>Type Parameters
Section titled “Type Parameters”T: Item type.
Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”- IReplPage
IEquatable<ReplPage<T>>
Constructors
Section titled “Constructors”ReplPage(IReadOnlyList<T>, ReplPageInfo)
Section titled “ReplPage(IReadOnlyList<T>, ReplPageInfo)”Initializes a new instance of the ReplPage<T> record.
public ReplPage(IReadOnlyList<T> items, ReplPageInfo pageInfo)Parameters
Section titled “Parameters”items(IReadOnlyList<T>): Items in the page.pageInfo(ReplPageInfo): Page metadata.
Properties
Section titled “Properties”ItemType
Section titled “ItemType”Gets the runtime item type declared by the page.
[JsonIgnore]public Type ItemType { get; }Returns
Section titled “Returns”Gets the typed items in the page.
public IReadOnlyList<T> Items { get; init; }Returns
Section titled “Returns”IReadOnlyList<T>
PageInfo
Section titled “PageInfo”Gets page metadata.
public ReplPageInfo PageInfo { get; init; }Returns
Section titled “Returns”UntypedItems
Section titled “UntypedItems”Gets the current page items as an untyped list.
[JsonIgnore]public IReadOnlyList<object?> UntypedItems { get; }Returns
Section titled “Returns”IReadOnlyList<object>