Table of Contents

Class CappedList<T>

Namespace
RDCore.SDK.Server.Assistant
Assembly
RDCore.SDK.dll

The first items of a list, cut at a cap (Cap<T>(IEnumerable<T>, int)), and how many there are.

public sealed record CappedList<T> : IEquatable<CappedList<T>>

Type Parameters

T

The items.

Inheritance
CappedList<T>
Implements
Inherited Members

Constructors

CappedList(IReadOnlyList<T>, int)

The first items of a list, cut at a cap (Cap<T>(IEnumerable<T>, int)), and how many there are.

public CappedList(IReadOnlyList<T> Items, int Total)

Parameters

Items IReadOnlyList<T>

The items kept.

Total int

How many there are, those beyond the cap included.

Properties

Items

The items kept.

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

Property Value

IReadOnlyList<T>

Total

How many there are, those beyond the cap included.

public int Total { get; init; }

Property Value

int

Truncated

Whether some items are left out.

public bool Truncated { get; }

Property Value

bool