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
TKeyTValue
- 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
dictionaryIDictionary<TKey, TValue>
OABOrderedDictionary(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)
public OABOrderedDictionary(IDictionary<TKey, TValue> values, IEqualityComparer<TKey> comparer)
  Parameters
valuesIDictionary<TKey, TValue>comparerIEqualityComparer<TKey>
OABOrderedDictionary(IEnumerable<KeyValuePair<TKey, TValue>>)
public OABOrderedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> items)
  Parameters
itemsIEnumerable<KeyValuePair<TKey, TValue>>
OABOrderedDictionary(IEqualityComparer<TKey>)
public OABOrderedDictionary(IEqualityComparer<TKey> comparer)
  Parameters
comparerIEqualityComparer<TKey>
OABOrderedDictionary(int)
public OABOrderedDictionary(int capacity)
  Parameters
capacityint
OABOrderedDictionary(int, IEqualityComparer<TKey>)
public OABOrderedDictionary(int capacity, IEqualityComparer<TKey> comparer)
  Parameters
capacityintcomparerIEqualityComparer<TKey>
Properties
Count
public int Count { get; }
  Property Value
IsReadOnly
public bool IsReadOnly { get; }
  Property Value
this[int]
public KeyValuePair<TKey, TValue> this[int index] { get; set; }
  Parameters
indexint
Property Value
- KeyValuePair<TKey, TValue>
 
this[TKey]
public TValue this[TKey key] { get; set; }
  Parameters
keyTKey
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
itemKeyValuePair<TKey, TValue>
Add(TKey, TValue)
public void Add(TKey key, TValue value)
  Parameters
keyTKeyvalueTValue
Clear()
public void Clear()
  Contains(KeyValuePair<TKey, TValue>)
public bool Contains(KeyValuePair<TKey, TValue> pair)
  Parameters
pairKeyValuePair<TKey, TValue>
Returns
ContainsKey(TKey)
public bool ContainsKey(TKey key)
  Parameters
keyTKey
Returns
CopyTo(KeyValuePair<TKey, TValue>[], int)
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
  Parameters
arrayKeyValuePair<TKey, TValue>[]arrayIndexint
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
itemKeyValuePair<TKey, TValue>
Returns
Insert(int, KeyValuePair<TKey, TValue>)
public void Insert(int index, KeyValuePair<TKey, TValue> item)
  Parameters
indexintitemKeyValuePair<TKey, TValue>
Remove(KeyValuePair<TKey, TValue>)
public bool Remove(KeyValuePair<TKey, TValue> pair)
  Parameters
pairKeyValuePair<TKey, TValue>
Returns
Remove(TKey)
public bool Remove(TKey key)
  Parameters
keyTKey
Returns
RemoveAt(int)
public void RemoveAt(int index)
  Parameters
indexint
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
  Parameters
keyTKeyvalueTValue