BiDictionaryTFirst, TSecond Class |
Namespace: Kit.Containers
public class BiDictionary<TFirst, TSecond>
The BiDictionaryTFirst, TSecond type exposes the following members.
| Name | Description | |
|---|---|---|
| BiDictionaryTFirst, TSecond | Initializes a new instance of the BiDictionaryTFirst, TSecond class |
| Name | Description | |
|---|---|---|
| Count | The number of pairs stored in the dictionary. | |
| ItemTFirst | Gets or sets the value of second item. | |
| ItemTSecond | Gets or sets the value of first item. |
| Name | Description | |
|---|---|---|
| Add | Tries to add a pair to the dictionary. | |
| Clear | Removes all items from the dictionary. | |
| Get(TFirst) | Find the TSecond corresponding to a TFirst. | |
| Get(TSecond) | Find the TFirst corresponding to a TSecond. | |
| Remove(TFirst) | Remove the pair corresponding to a TFirst. | |
| Remove(TSecond) | Remove the pair corresponding to a TSecond. | |
| TryAdd | Tries to add the pair to the dictionary. | |
| TryGet(TFirst, TSecond) | Find the TSecond corresponding to the TFirst. | |
| TryGet(TSecond, TFirst) | Find the TFirst corresponding to the TSecond. | |
| TryRemove(TFirst) | Remove the pair containing a TFirst, if there is one. | |
| TryRemove(TSecond) | Remove the pair containing a TSecond, if there is one. |