Ctrl+K

OrderedDictionary

Declaration

public class Strawberry.Collection.OrderedDictionary

Represents an Ordered Collection

Type Parameters

Name Description
T
K

Properties

UnderlyingCollection

OrderedDictionary UnderlyingCollection { get }

this[]

K this[T key] { get set }

this[]

K this[int index] { get set }

Keys

ICollection<T> Keys { get }

Values

ICollection<K> Values { get }

IsReadOnly

bool IsReadOnly { get }

Count

int Count { get }

Methods

GetEnumerator

IDictionaryEnumerator GetEnumerator()

Insert

void Insert(int index, T key, K value)

Parameters:

Name Type Description
index System.Int32
key T
value K

RemoveAt

void RemoveAt(int index)

Parameters:

Name Type Description
index System.Int32

Contains

bool Contains(T key)

Parameters:

Name Type Description
key T

Add

void Add(T key, K value)

Parameters:

Name Type Description
key T
value K

Clear

void Clear()

Remove

void Remove(T key)

Parameters:

Name Type Description
key T

CopyTo

void CopyTo(Array array, int index)

Parameters:

Name Type Description
array System.Array
index System.Int32

Swap

void Swap(T key1, T key2)

Parameters:

Name Type Description
key1 T
key2 T