Space Engineers
Public Member Functions | Properties | List of all members
VRage.Library.Collections.MyListDictionary< TKey, TValue > Class Template Reference

Collection which stores multiple elements under same key by using list. Collection does not allow removing single value, only all items with same key. More...

Inheritance diagram for VRage.Library.Collections.MyListDictionary< TKey, TValue >:

Public Member Functions

List< TValue > GetList (TKey key)
 
List< TValue > GetOrAddList (TKey key)
 
void Add (TKey key, TValue value)
 
bool Remove (TKey key)
 
void Clear ()
 
IEnumerator< KeyValuePair< TKey, List< TValue > > > GetEnumerator ()
 

Properties

Dictionary< TKey, List< TValue > >.ValueCollection Values [get]
 

Detailed Description

Collection which stores multiple elements under same key by using list. Collection does not allow removing single value, only all items with same key.

Definition at line 14 of file MyListDictionary.cs.

Member Function Documentation

void VRage.Library.Collections.MyListDictionary< TKey, TValue >.Add ( TKey  key,
TValue  value 
)
inline

Definition at line 53 of file MyListDictionary.cs.

void VRage.Library.Collections.MyListDictionary< TKey, TValue >.Clear ( )
inline

Definition at line 70 of file MyListDictionary.cs.

IEnumerator<KeyValuePair<TKey, List<TValue> > > VRage.Library.Collections.MyListDictionary< TKey, TValue >.GetEnumerator ( )
inline

Definition at line 79 of file MyListDictionary.cs.

List<TValue> VRage.Library.Collections.MyListDictionary< TKey, TValue >.GetList ( TKey  key)
inline

Definition at line 33 of file MyListDictionary.cs.

List<TValue> VRage.Library.Collections.MyListDictionary< TKey, TValue >.GetOrAddList ( TKey  key)
inline

Definition at line 38 of file MyListDictionary.cs.

bool VRage.Library.Collections.MyListDictionary< TKey, TValue >.Remove ( TKey  key)
inline

Definition at line 58 of file MyListDictionary.cs.

Property Documentation

Dictionary<TKey, List<TValue> >.ValueCollection VRage.Library.Collections.MyListDictionary< TKey, TValue >.Values
get

Definition at line 50 of file MyListDictionary.cs.


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