-
Notifications
You must be signed in to change notification settings - Fork 0
Collections Array
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.Collections.Array |
| Namespace | Electron2D.Collections |
| Kind | class |
| Category | Math and Data |
Stores an ordered mutable list of Electron2D.Variant values.
public sealed class Electron2D.Collections.Array : System.Collections.Generic.IEnumerable<Electron2D.Variant>, System.Collections.IEnumerableProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: Array
Mutable reference-like Variant list for the 0.1 closed Variant type set.
This type stores only values that can be represented by Electron2D.Variant
and is intended for dynamic Electron2D APIs.
The container itself is reference-like: assigning the same instance to multiple variants stores the same mutable array object.
This type is not synchronized. External synchronization is required when the same instance is mutated from multiple threads.
This type is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.DictionaryElectron2D.Variant
| Member | Kind | Summary |
|---|---|---|
Count |
Property | Gets the number of values stored in the array. |
Item |
Property | Gets or sets the value at the specified index. |
Electron2D.Collections.Array() |
Constructor | Initializes a new instance of the Array type. |
Add(Electron2D.Variant) |
Method | Appends a value to the end of the array. |
Clear() |
Method | Removes all values from the array. |
GetEnumerator() |
Method | Returns an enumerator over the current values. |
RemoveAt(System.Int32) |
Method | Removes the value at the specified index. |
ToArray() |
Method | Returns a snapshot of the current array values. |
ToString() |
Method | Returns a diagnostic string representation of this array. |
Kind: Property
public System.Int32 Count { get; }Gets the number of values stored in the array.
This value changes when Electron2D.Collections.Array.Add(Electron2D.Variant), Electron2D.Collections.Array.RemoveAt(System.Int32) or
Electron2D.Collections.Array.Clear mutates the container.
The current number of Electron2D.Variant values.
This property is not synchronized. External synchronization is required when the same instance is accessed from multiple threads.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array
Kind: Property
public Electron2D.Variant this[System.Int32 index] { get; set; }Gets or sets the value at the specified index.
The getter and setter access the live mutable container. Assigning a
value replaces the existing element without changing Electron2D.Collections.Array.Count.
-
index: The zero-based index of the value.
The stored Electron2D.Variant value.
The value at the specified index.
-
System.ArgumentOutOfRangeException: Thrown whenindexis outside the array bounds.
This indexer is not synchronized. External synchronization is required when the same instance is accessed from multiple threads.
This indexer is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array.Add(Electron2D.Variant)Electron2D.Collections.Array.RemoveAt(System.Int32)
Kind: Constructor
public Electron2D.Collections.Array()Initializes a new instance of the Array type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array
Kind: Method
public System.Void Add(Electron2D.Variant)(Electron2D.Variant value)Appends a value to the end of the array.
The appended value becomes available at index Count - 1 after the
call returns.
-
value: The value to append.
This method is not synchronized. External synchronization is required when the same instance is mutated from multiple threads.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array.ClearElectron2D.Collections.Array.RemoveAt(System.Int32)
Kind: Method
public System.Void Clear()()Removes all values from the array.
Existing references to this Electron2D.Collections.Array observe the same mutable
instance after it has been cleared.
This method is not synchronized. External synchronization is required when the same instance is mutated from multiple threads.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array.Count
Kind: Method
public System.Collections.Generic.IEnumerator<Electron2D.Variant> GetEnumerator()()Returns an enumerator over the current values.
The enumerator follows the behavior of System.Collections.Generic.List1.GetEnumerator`.
Mutating this container while enumerating it invalidates the enumerator.
An enumerator over Electron2D.Variant values.
This method is not synchronized. External synchronization is required when the same instance may be mutated while it is being enumerated.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array.ToArray
Kind: Method
public System.Void RemoveAt(System.Int32)(System.Int32 index)Removes the value at the specified index.
Values after index shift down by one position.
-
index: The zero-based index of the value to remove.
-
System.ArgumentOutOfRangeException: Thrown whenindexis outside the array bounds.
This method is not synchronized. External synchronization is required when the same instance is mutated from multiple threads.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array.Add(Electron2D.Variant)Electron2D.Collections.Array.Clear
Kind: Method
public Electron2D.Variant[] ToArray()()Returns a snapshot of the current array values.
The returned CLR array is a snapshot. Later changes to this
Electron2D.Collections.Array do not change the returned array instance.
A new CLR array containing the current Electron2D.Variant values.
This method is not synchronized. External synchronization is required when the same instance may be mutated while the snapshot is being made.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array.GetEnumerator
Kind: Method
public System.String ToString()()Returns a diagnostic string representation of this array.
The result is intended for diagnostics and logs. It is not a stable serialization format.
A comma-separated list of values wrapped in square brackets.
This method is not synchronized. External synchronization is required when the same instance may be mutated while the string is being built.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Collections.Array
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.