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

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.). Example:


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 int Count { get; }

    public bool IsReadOnly { get; }

    public object this[] { get; set; }


    public void Add(object item)

    public void Clear()

    public bool Contains(object item)

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

    public void Dispose()

    public IEnumerator<object> GetEnumerator()

    public int IndexOf(object item)

    public void Insert(int index, object item)

    public bool Remove(object item)

    public void RemoveAt(int index)

    public Error Resize(int newSize)