Class CappedList<T>
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
TThe items.
- Inheritance
-
CappedList<T>
- Implements
-
IEquatable<CappedList<T>>
- 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
ItemsIReadOnlyList<T>The items kept.
TotalintHow many there are, those beyond the cap included.
Properties
Items
The items kept.
public IReadOnlyList<T> Items { get; init; }
Property Value
Total
How many there are, those beyond the cap included.
public int Total { get; init; }
Property Value
Truncated
Whether some items are left out.
public bool Truncated { get; }