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
Section titled “Inheritance”object ← SandboxValue ← ListValue
Implements
Section titled “Implements”IEquatable<SandboxValue>, IReadOnlyList<SandboxValue>, IReadOnlyCollection<SandboxValue>, IEnumerable<SandboxValue>, IEnumerable, IEquatable<ListValue>
Inherited Members
Section titled “Inherited Members”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()
Constructors
Section titled “Constructors”ListValue(IReadOnlyList<SandboxValue>, SandboxType)
Section titled “ ListValue(IReadOnlyList<SandboxValue>, SandboxType)”public ListValue(IReadOnlyList<SandboxValue> Values, SandboxType ItemType)Parameters
Section titled “Parameters”Values IReadOnlyList<SandboxValue>
ItemType SandboxType
Properties
Section titled “Properties”Gets the number of elements in the collection.
public int Count { get; }Property Value
Section titled “Property Value”ItemType
Section titled “ ItemType”public SandboxType ItemType { get; init; }Property Value
Section titled “Property Value”public override SandboxType Type { get; }Property Value
Section titled “Property Value”Values
Section titled “ Values”public IReadOnlyList<SandboxValue> Values { get; init; }Property Value
Section titled “Property Value”this[int]
Section titled “ this[int]”Gets the element at the specified index in the read-only list.
public SandboxValue this[int index] { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(ListValue?)
Section titled “ Equals(ListValue?)”Indicates whether the current object is equal to another object of the same type.
public bool Equals(ListValue? other)Parameters
Section titled “Parameters”other ListValue?
An object to compare with this object.
Returns
Section titled “Returns”true if the current object is equal to the other parameter; otherwise, false.
GetEnumerator()
Section titled “ GetEnumerator()”Returns an enumerator that iterates through the collection.
public IEnumerator<SandboxValue> GetEnumerator()Returns
Section titled “Returns”An enumerator that can be used to iterate through the collection.
GetHashCode()
Section titled “ GetHashCode()”Serves as the default hash function.
public override int GetHashCode()Returns
Section titled “Returns”A hash code for the current object.
ToString()
Section titled “ ToString()”Returns a string that represents the current object.
public override string ToString()Returns
Section titled “Returns”A string that represents the current object.