Table of Contents

Class ListValue

Namespace
DotBoxD.Kernels.Sandbox.Values
Assembly
DotBoxD.Kernels.dll
public sealed record ListValue : SandboxValue, IEquatable<SandboxValue>, IReadOnlyList<SandboxValue>, IReadOnlyCollection<SandboxValue>, IEnumerable<SandboxValue>, IEnumerable, IEquatable<ListValue>
Inheritance
ListValue
Implements
Inherited Members

Constructors

ListValue(IReadOnlyList<SandboxValue>, SandboxType)

public ListValue(IReadOnlyList<SandboxValue> Values, SandboxType ItemType)

Parameters

Values IReadOnlyList<SandboxValue>
ItemType SandboxType

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

this[int]

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

public SandboxValue this[int index] { get; }

Parameters

index int

The zero-based index of the element to get.

Property Value

SandboxValue

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

ItemType

public SandboxType ItemType { get; init; }

Property Value

SandboxType

Type

public override SandboxType Type { get; }

Property Value

SandboxType

Values

public IReadOnlyList<SandboxValue> Values { get; init; }

Property Value

IReadOnlyList<SandboxValue>

Methods

Equals(ListValue?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ListValue? other)

Parameters

other ListValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<SandboxValue> GetEnumerator()

Returns

IEnumerator<SandboxValue>

An enumerator that can be used to iterate through the collection.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.