Click or drag to resize

BiDictionaryTFirst, TSecond Class

A 1-to-1 dictionary that can be used to lookup with either item as key.
Inheritance Hierarchy
SystemObject
  Kit.ContainersBiDictionaryTFirst, TSecond

Namespace:  Kit.Containers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class BiDictionary<TFirst, TSecond>
Request Example View Source

Type Parameters

TFirst
First type.
TSecond
Second type.

The BiDictionaryTFirst, TSecond type exposes the following members.

Constructors
  NameDescription
Public methodBiDictionaryTFirst, TSecond
Initializes a new instance of the BiDictionaryTFirst, TSecond class
Top
Properties
Methods
  NameDescription
Public methodAdd
Tries to add a pair to the dictionary.
Public methodClear
Removes all items from the dictionary.
Public methodGet(TFirst)
Find the TSecond corresponding to a TFirst.
Public methodGet(TSecond)
Find the TFirst corresponding to a TSecond.
Public methodRemove(TFirst)
Remove the pair corresponding to a TFirst.
Public methodRemove(TSecond)
Remove the pair corresponding to a TSecond.
Public methodTryAdd
Tries to add the pair to the dictionary.
Public methodTryGet(TFirst, TSecond)
Find the TSecond corresponding to the TFirst.
Public methodTryGet(TSecond, TFirst)
Find the TFirst corresponding to the TSecond.
Public methodTryRemove(TFirst)
Remove the pair containing a TFirst, if there is one.
Public methodTryRemove(TSecond)
Remove the pair containing a TSecond, if there is one.
Top
See Also