Empeld
Empeld plugin documentation.
|
A specialized dictionary that allows either side to be accessed as if it were the key More...
Public Member Functions | |
BiDictionary () | |
Initialize the class More... | |
BiDictionary (IDictionary< T, Q > src) | |
Initialize the class given an existing dictionary More... | |
Dictionary< T, Q > | ToDict () |
Convert the BiDictionary into a Dictionary More... | |
IEnumerator< KeyValuePair< T, Q > > | GetEnumerator () |
Gets the enumerator. More... | |
void | Add (KeyValuePair< T, Q > item) |
Add the specified item. More... | |
void | Clear () |
Clear this instance. More... | |
bool | Contains (KeyValuePair< T, Q > item) |
Contains the specified item. More... | |
void | CopyTo (KeyValuePair< T, Q >[] array, int arrayIndex) |
Copies to a target array More... | |
bool | Remove (KeyValuePair< T, Q > item) |
Remove the specified item. More... | |
void | Add (T key, Q value) |
Add the specified key and value. More... | |
bool | ContainsKey (T key) |
Containses the key. More... | |
bool | ContainsValue (Q value) |
Checks if dictionary contains a given value More... | |
bool | Remove (T key) |
Remove the specified key. More... | |
bool | Remove (Q value) |
Remove the specified value. More... | |
bool | TryGetValue (T key, out Q value) |
Try to get a value by a given key More... | |
Properties | |
int | Count [get] |
Gets the count. More... | |
bool | IsReadOnly [get] |
Gets a value indicating whether this instance is read only. More... | |
A specialized dictionary that allows either side to be accessed as if it were the key
pluginbase.Helpers.Collections.BiDictionary< T, Q >.BiDictionary | ( | IDictionary< T, Q > | src | ) |
Initialize the class given an existing dictionary
src | Source. |
void pluginbase.Helpers.Collections.BiDictionary< T, Q >.Add | ( | KeyValuePair< T, Q > | item | ) |
Add the specified item.
<Docs>The item to add to the current collection.</Docs>
Adds an item to the current collection.
To be added.
System.NotSupportedException | The current collection is read-only. |
item | Item. |
Attribute: item.Key
= item.Value;
Attribute: item.Value
= item.Key;
void pluginbase.Helpers.Collections.BiDictionary< T, Q >.Add | ( | T | key, |
Q | value | ||
) |
Add the specified key and value.
key | Key. |
value | Value. |
Attribute: key
= value;
Attribute: value
= key;
void pluginbase.Helpers.Collections.BiDictionary< T, Q >.Clear | ( | ) |
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.Contains | ( | KeyValuePair< T, Q > | item | ) |
Contains the specified item.
<Docs>The object to locate in the current collection.</Docs>
Determines whether the current collection contains a specific value.
item | Item. |
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.ContainsKey | ( | T | key | ) |
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.ContainsValue | ( | Q | value | ) |
void pluginbase.Helpers.Collections.BiDictionary< T, Q >.CopyTo | ( | KeyValuePair< T, Q > [] | array, |
int | arrayIndex | ||
) |
IEnumerator<KeyValuePair<T, Q> > pluginbase.Helpers.Collections.BiDictionary< T, Q >.GetEnumerator | ( | ) |
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.Remove | ( | KeyValuePair< T, Q > | item | ) |
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.Remove | ( | T | key | ) |
Remove the specified key.
<Docs>The item to remove from the current collection.</Docs>
Removes the first occurrence of an item from the current collection.
key | Key. |
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.Remove | ( | Q | value | ) |
Remove the specified value.
<Docs>The item to remove from the current collection.</Docs>
Removes the first occurrence of an item from the current collection.
value | Value. |
Dictionary<T,Q> pluginbase.Helpers.Collections.BiDictionary< T, Q >.ToDict | ( | ) |
Convert the BiDictionary into a Dictionary
bool pluginbase.Helpers.Collections.BiDictionary< T, Q >.TryGetValue | ( | T | key, |
out Q | value | ||
) |
|
get |
Gets the count.
The count.
|
get |
Gets a value indicating whether this instance is read only.
true
if this instance is read only; otherwise, false
.