Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
DictionaryValueList< TKey, TValue > Class Template Reference

Note: One-one mapping required! Cannot map multiple keys to same value! More...

Inheritance diagram for DictionaryValueList< TKey, TValue >:
KSP.UI.Screens.AppUIMemberDropdown.AppUIDropdownItemDictionary

Public Member Functions

bool Add (TKey key, TValue val)
 
TValue At (int index)
 Gets the item at the specified index More...
 
void Clear ()
 
bool Contains (TKey key)
 
bool ContainsKey (TKey key)
 
 DictionaryValueList ()
 
 DictionaryValueList (DictionaryValueList< TKey, TValue > old)
 
Dictionary< TKey, TValue >
.Enumerator 
GetDictEnumerator ()
 
List< TValue >.Enumerator GetListEnumerator ()
 
int IndexOf (TValue val)
 
TKey KeyAt (int index)
 
bool Remove (TKey key)
 
void SortList (System.Comparison< TValue > comparison)
 Sort the list More...
 
bool TryGetValue (TKey key, out TValue val)
 

Properties

int Count [get]
 
Dictionary< TKey, TValue >
.KeyCollection 
Keys [get]
 
TValue this[TKey key] [get, set]
 
Dictionary< TKey, TValue >
.ValueCollection 
Values [get]
 

Detailed Description

Note: One-one mapping required! Cannot map multiple keys to same value!

Template Parameters
TKey
TValue</typeparam

Constructor & Destructor Documentation

DictionaryValueList< TKey, TValue >.DictionaryValueList ( )
inline
DictionaryValueList< TKey, TValue >.DictionaryValueList ( DictionaryValueList< TKey, TValue >  old)
inline

Member Function Documentation

bool DictionaryValueList< TKey, TValue >.Add ( TKey  key,
TValue  val 
)
inline
TValue DictionaryValueList< TKey, TValue >.At ( int  index)
inline

Gets the item at the specified index

Parameters
index
Returns
void DictionaryValueList< TKey, TValue >.Clear ( )
inline
bool DictionaryValueList< TKey, TValue >.Contains ( TKey  key)
inline
bool DictionaryValueList< TKey, TValue >.ContainsKey ( TKey  key)
inline
Dictionary<TKey, TValue>.Enumerator DictionaryValueList< TKey, TValue >.GetDictEnumerator ( )
inline
List<TValue>.Enumerator DictionaryValueList< TKey, TValue >.GetListEnumerator ( )
inline
int DictionaryValueList< TKey, TValue >.IndexOf ( TValue  val)
inline
TKey DictionaryValueList< TKey, TValue >.KeyAt ( int  index)
inline
bool DictionaryValueList< TKey, TValue >.Remove ( TKey  key)
inline
void DictionaryValueList< TKey, TValue >.SortList ( System.Comparison< TValue >  comparison)
inline

Sort the list

Parameters
comparisonComparison operator that will sort the list
bool DictionaryValueList< TKey, TValue >.TryGetValue ( TKey  key,
out TValue  val 
)
inline

Property Documentation

int DictionaryValueList< TKey, TValue >.Count
get
Dictionary<TKey, TValue>.KeyCollection DictionaryValueList< TKey, TValue >.Keys
get
TValue DictionaryValueList< TKey, TValue >.this[TKey key]
getset
Dictionary<TKey, TValue>.ValueCollection DictionaryValueList< TKey, TValue >.Values
get

The documentation for this class was generated from the following file: