Enhanced C#
Language of your choice: library documentation
Public fields | Properties | Public Member Functions | List of all members
Loyc.Collections.BMultiMap< K, V >.ValueList Struct Reference

Represents the set of values associated with a particular key in a BMultiMap<K,V> collection. More...


Source file:
Inheritance diagram for Loyc.Collections.BMultiMap< K, V >.ValueList:

Remarks

Represents the set of values associated with a particular key in a BMultiMap<K,V> collection.

Renamed from Values because C# wouldn't let me implement a Values property (for the IReadOnlyDictionary interface) at the same time.

Public fields

readonly BMultiMap< K, V > _map
 
readonly K _key
 

Properties

int Count [get]
 
bool IsReadOnly [get]
 

Public Member Functions

IEnumerator< V > GetEnumerator ()
 
IEnumerator< V > GetEnumeratorCore (int index)
 
System.Collections.IEnumerator System.Collections.IEnumerable. GetEnumerator ()
 
void Add (V item)
 Adds a new item associated with the key that this object represents. Allows duplicate values. More...
 
void Clear ()
 
bool Contains (V item)
 
void CopyTo (V[] array, int arrayIndex)
 
bool Remove (V item)
 

Member Function Documentation

void Loyc.Collections.BMultiMap< K, V >.ValueList.Add ( item)
inline

Adds a new item associated with the key that this object represents. Allows duplicate values.

Parameters
itemValue to add.

References Loyc.Collections.Remove.