Class ListValue
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
ValuesIReadOnlyList<SandboxValue>ItemTypeSandboxType
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
indexintThe 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
Type
public override SandboxType Type { get; }
Property Value
Values
public IReadOnlyList<SandboxValue> Values { get; init; }
Property Value
Methods
Equals(ListValue?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ListValue? other)
Parameters
otherListValueAn object to compare with this object.
Returns
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.