Generic array datatype.
    public class Array : IList, ICollection, 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:

[codeblock]

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

[/codeblock]

Arrays are always passed by reference.

Inheritance Chain

Interfaces

Constructors

    public Array()

    public Array(IEnumerable collection)

Properties

    public int Count { get; }

    public bool IsFixedSize { get; }

    public bool IsReadOnly { get; }

    public bool IsSynchronized { get; }

    public object SyncRoot { get; }

    public object this[] { get; set; }

Methods

    public int Add(object value)

    public void Clear()

    public bool Contains(object value)

    public void CopyTo(System.Array array, int index)

    public void Dispose()

    public IEnumerator GetEnumerator()

    public int IndexOf(object value)

    public void Insert(int index, object value)

    public void Remove(object value)

    public void RemoveAt(int index)

    public Error Resize(int newSize)

    public override string ToString()
Tags: