Table of Contents

Class OABOrderedDictionary<TKey, TValue>

Namespace
KSP
Assembly
Assembly-CSharp.dll
public class OABOrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IList<KeyValuePair<TKey, TValue>>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable

Type Parameters

TKey
TValue
Inheritance
OABOrderedDictionary<TKey, TValue>
Implements
IDictionary<TKey, TValue>
IList<KeyValuePair<TKey, TValue>>
ICollection<KeyValuePair<TKey, TValue>>
IEnumerable<KeyValuePair<TKey, TValue>>
Inherited Members
Extension Methods

Constructors

OABOrderedDictionary()

public OABOrderedDictionary()

OABOrderedDictionary(IDictionary<TKey, TValue>)

public OABOrderedDictionary(IDictionary<TKey, TValue> dictionary)

Parameters

dictionary IDictionary<TKey, TValue>

OABOrderedDictionary(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)

public OABOrderedDictionary(IDictionary<TKey, TValue> values, IEqualityComparer<TKey> comparer)

Parameters

values IDictionary<TKey, TValue>
comparer IEqualityComparer<TKey>

OABOrderedDictionary(IEnumerable<KeyValuePair<TKey, TValue>>)

public OABOrderedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> items)

Parameters

items IEnumerable<KeyValuePair<TKey, TValue>>

OABOrderedDictionary(IEqualityComparer<TKey>)

public OABOrderedDictionary(IEqualityComparer<TKey> comparer)

Parameters

comparer IEqualityComparer<TKey>

OABOrderedDictionary(int)

public OABOrderedDictionary(int capacity)

Parameters

capacity int

OABOrderedDictionary(int, IEqualityComparer<TKey>)

public OABOrderedDictionary(int capacity, IEqualityComparer<TKey> comparer)

Parameters

capacity int
comparer IEqualityComparer<TKey>

Properties

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[int]

public KeyValuePair<TKey, TValue> this[int index] { get; set; }

Parameters

index int

Property Value

KeyValuePair<TKey, TValue>

this[TKey]

public TValue this[TKey key] { get; set; }

Parameters

key TKey

Property Value

TValue

Keys

public ICollection<TKey> Keys { get; }

Property Value

ICollection<TKey>

Values

public ICollection<TValue> Values { get; }

Property Value

ICollection<TValue>

Methods

Add(KeyValuePair<TKey, TValue>)

public void Add(KeyValuePair<TKey, TValue> item)

Parameters

item KeyValuePair<TKey, TValue>

Add(TKey, TValue)

public void Add(TKey key, TValue value)

Parameters

key TKey
value TValue

Clear()

public void Clear()

Contains(KeyValuePair<TKey, TValue>)

public bool Contains(KeyValuePair<TKey, TValue> pair)

Parameters

pair KeyValuePair<TKey, TValue>

Returns

bool

ContainsKey(TKey)

public bool ContainsKey(TKey key)

Parameters

key TKey

Returns

bool

CopyTo(KeyValuePair<TKey, TValue>[], int)

public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)

Parameters

array KeyValuePair<TKey, TValue>[]
arrayIndex int

GetEnumerator()

public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<TKey, TValue>>

GetOrderedKeys()

public IEnumerable<TKey> GetOrderedKeys()

Returns

IEnumerable<TKey>

GetOrderedPairs()

public IEnumerable<KeyValuePair<TKey, TValue>> GetOrderedPairs()

Returns

IEnumerable<KeyValuePair<TKey, TValue>>

GetOrderedValues()

public IEnumerable<TValue> GetOrderedValues()

Returns

IEnumerable<TValue>

IndexOf(KeyValuePair<TKey, TValue>)

public int IndexOf(KeyValuePair<TKey, TValue> item)

Parameters

item KeyValuePair<TKey, TValue>

Returns

int

Insert(int, KeyValuePair<TKey, TValue>)

public void Insert(int index, KeyValuePair<TKey, TValue> item)

Parameters

index int
item KeyValuePair<TKey, TValue>

Remove(KeyValuePair<TKey, TValue>)

public bool Remove(KeyValuePair<TKey, TValue> pair)

Parameters

pair KeyValuePair<TKey, TValue>

Returns

bool

Remove(TKey)

public bool Remove(TKey key)

Parameters

key TKey

Returns

bool

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int

TryGetValue(TKey, out TValue)

public bool TryGetValue(TKey key, out TValue value)

Parameters

key TKey
value TValue

Returns

bool