Dictionary type.
    public class Dictionary : IDictionary, ICollection, IEnumerable, IDisposable

Dictionary type. Associative container which contains values referenced by unique keys. Dictionaries are always passed by reference.

Erasing elements while iterating over them is not supported.

Creating a dictionary:


var d = {4: 5, “A key”: “A value”, 28: [1, 2, 3]}


To add a key to an existing dictionary, access it like an existing key and assign to it:


d[4] = “hello” # Add integer 4 as a key and assign the String “hello” as its value.

d[“Godot”] = 3.01 # Add String “Godot” as a key and assign the value 3.01 to it.


Inheritance Chain



    public Dictionary()

    public Dictionary(IDictionary dictionary)


    public int Count { get; }

    public bool IsFixedSize { get; }

    public bool IsReadOnly { get; }

    public bool IsSynchronized { get; }

    public ICollection Keys { get; }

    public object SyncRoot { get; }

    public object this[] { get; set; }

    public ICollection Values { get; }


    public void Add(object key, object value)

    public void Clear()

    public bool Contains(object key)

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

    public void Dispose()

    public IDictionaryEnumerator GetEnumerator()

    public void Remove(object key)

    public override string ToString()