Generic array datatype.
    public class Array<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable

Generic array which can contain several elements of any type, accessible by a numerical index starting at 0. Negative indices can be used to count from the back, like in Python (-1 is the last element, -2 the second to last, etc.).



var array = [“One”, 2, 3, “Four”]

print(array[0]) # One

print(array[2]) # 3

print(array[-1]) # Four

array[2] = “Three”

print(array[-2]) # Three


Arrays are always passed by reference.

Inheritance Chain



    public Array()

    public Array(IEnumerable<T> collection)

    public Array(Array array)


    public int Count { get; }

    public bool IsReadOnly { get; }

    public T this[] { get; set; }


    public void Add(T item)

    public void Clear()

    public bool Contains(T item)

    public void CopyTo(T[] array, int arrayIndex)

    public IEnumerator<T> GetEnumerator()

    public int IndexOf(T item)

    public void Insert(int index, T item)

    public bool Remove(T item)

    public void RemoveAt(int index)

    public Error Resize(int newSize)

    public override string ToString()

Conversion Operators

    public static explicit operator Array(Array<T> from)