Craig's Utility Library
4.0 Beta
|
Dictionary that matches multiple keys to each value More...
Public Member Functions | |
TagDictionary () | |
Constructor More... | |
void | Add (Key key, IEnumerable< Value > value) |
Adds a list of values to the key More... | |
void | Add (Value Value, params Key[] Keys) |
Adds a value to the dicionary More... | |
void | Add (KeyValuePair< Key, IEnumerable< Value >> item) |
Adds an item to the dictionary More... | |
void | Clear () |
Clears the dictionary More... | |
bool | Contains (KeyValuePair< Key, IEnumerable< Value >> item) |
Determines if the dictionary contains the key/value pair More... | |
bool | ContainsKey (Key key) |
Determines if a key is in the dictionary More... | |
void | CopyTo (KeyValuePair< Key, IEnumerable< Value >>[] array, int arrayIndex) |
Copies itself to an array More... | |
IEnumerator< KeyValuePair< Key, IEnumerable< Value > > > | GetEnumerator () |
Gets the enumerator More... | |
bool | Remove (Key key) |
Removes all items that are associated with a key More... | |
bool | Remove (KeyValuePair< Key, IEnumerable< Value >> item) |
Removes a specific key/value pair More... | |
bool | TryGetValue (Key key, out IEnumerable< Value > value) |
Attempts to get the values associated with a key More... | |
Properties | |
int | Count [get] |
Number of items in the dictionary More... | |
bool | IsReadOnly [get] |
Always false More... | |
ICollection< Key > | Keys [get] |
Gets the keys found in the dictionary More... | |
ICollection< IEnumerable< Value > > | Values [get] |
Gets the values found in the dictionary More... | |
IEnumerable< Value > | this[Key key] [get, set] |
Gets the values based on a key More... | |
Dictionary that matches multiple keys to each value
Key | Key type |
Value | Value type |
Definition at line 35 of file TagDictionary.cs.
Utilities.DataTypes.TagDictionary< Key, Value >.TagDictionary | ( | ) |
Constructor
Definition at line 40 of file TagDictionary.cs.
void Utilities.DataTypes.TagDictionary< Key, Value >.Add | ( | Key | key, |
IEnumerable< Value > | value | ||
) |
Adds a list of values to the key
key | Key |
value | Values to add |
Definition at line 110 of file TagDictionary.cs.
void Utilities.DataTypes.TagDictionary< Key, Value >.Add | ( | Value | Value, |
params Key[] | Keys | ||
) |
Adds a value to the dicionary
Value | Value to add |
Keys | Keys to associate the value with |
Definition at line 121 of file TagDictionary.cs.
void Utilities.DataTypes.TagDictionary< Key, Value >.Add | ( | KeyValuePair< Key, IEnumerable< Value >> | item | ) |
Adds an item to the dictionary
item | item to add |
Definition at line 132 of file TagDictionary.cs.
void Utilities.DataTypes.TagDictionary< Key, Value >.Clear | ( | ) |
Clears the dictionary
Definition at line 140 of file TagDictionary.cs.
bool Utilities.DataTypes.TagDictionary< Key, Value >.Contains | ( | KeyValuePair< Key, IEnumerable< Value >> | item | ) |
Determines if the dictionary contains the key/value pair
item | item to check |
Definition at line 150 of file TagDictionary.cs.
bool Utilities.DataTypes.TagDictionary< Key, Value >.ContainsKey | ( | Key | key | ) |
Determines if a key is in the dictionary
key | Key to check |
Definition at line 160 of file TagDictionary.cs.
void Utilities.DataTypes.TagDictionary< Key, Value >.CopyTo | ( | KeyValuePair< Key, IEnumerable< Value >>[] | array, |
int | arrayIndex | ||
) |
Copies itself to an array
array | Array |
arrayIndex | Array index |
Definition at line 170 of file TagDictionary.cs.
IEnumerator<KeyValuePair<Key, IEnumerable<Value> > > Utilities.DataTypes.TagDictionary< Key, Value >.GetEnumerator | ( | ) |
bool Utilities.DataTypes.TagDictionary< Key, Value >.Remove | ( | Key | key | ) |
Removes all items that are associated with a key
key | Key |
Definition at line 195 of file TagDictionary.cs.
bool Utilities.DataTypes.TagDictionary< Key, Value >.Remove | ( | KeyValuePair< Key, IEnumerable< Value >> | item | ) |
Removes a specific key/value pair
item | item to remove |
Definition at line 208 of file TagDictionary.cs.
bool Utilities.DataTypes.TagDictionary< Key, Value >.TryGetValue | ( | Key | key, |
out IEnumerable< Value > | value | ||
) |
Attempts to get the values associated with a key
key | Key |
value | Values associated with a key |
Definition at line 231 of file TagDictionary.cs.
|
get |
Number of items in the dictionary
Definition at line 50 of file TagDictionary.cs.
|
get |
Always false
Definition at line 58 of file TagDictionary.cs.
|
get |
Gets the keys found in the dictionary
Definition at line 66 of file TagDictionary.cs.
|
getset |
Gets the values based on a key
key | Key to get the values of |
Definition at line 94 of file TagDictionary.cs.
|
get |
Gets the values found in the dictionary
Definition at line 74 of file TagDictionary.cs.