Skip to content

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>

objectSandboxValueListValue

IEquatable<SandboxValue>, IReadOnlyList<SandboxValue>, IReadOnlyCollection<SandboxValue>, IEnumerable<SandboxValue>, IEnumerable, IEquatable<ListValue>

SandboxValue.Unit, SandboxValue.Type, SandboxValue.FromBool(bool), SandboxValue.FromInt32(int), SandboxValue.FromInt64(long), SandboxValue.FromDouble(double), SandboxValue.FromString(string), SandboxValue.FromGuid(Guid), SandboxValue.FromOpaqueId(string, string), SandboxValue.FromPath(string), SandboxValue.FromUri(string), SandboxValue.FromList(IReadOnlyList<SandboxValue>), SandboxValue.FromList(IReadOnlyList<SandboxValue>, SandboxType), SandboxValue.FromMap(IReadOnlyDictionary<SandboxValue, SandboxValue>, SandboxType, SandboxType), SandboxValue.FromRecord(IReadOnlyList<SandboxValue>), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

ListValue(IReadOnlyList<SandboxValue>, SandboxType)

Section titled “ ListValue(IReadOnlyList<SandboxValue>, SandboxType)”
public ListValue(IReadOnlyList<SandboxValue> Values, SandboxType ItemType)

Values IReadOnlyList<SandboxValue>

ItemType SandboxType

Gets the number of elements in the collection.

public int Count { get; }

int

public SandboxType ItemType { get; init; }

SandboxType

public override SandboxType Type { get; }

SandboxType

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

IReadOnlyList<SandboxValue>

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

public SandboxValue this[int index] { get; }

SandboxValue

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

public bool Equals(ListValue? other)

other ListValue?

An object to compare with this object.

bool

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

Returns an enumerator that iterates through the collection.

public IEnumerator<SandboxValue> GetEnumerator()

IEnumerator<SandboxValue>

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

Serves as the default hash function.

public override int GetHashCode()

int

A hash code for the current object.

Returns a string that represents the current object.

public override string ToString()

string

A string that represents the current object.