Class BidirectionalDictionary<T1, T2>
public class BidirectionalDictionary<T1, T2> : IEnumerable
Type Parameters
T1
T2
- Inheritance
-
BidirectionalDictionary<T1, T2>
- Implements
- Inherited Members
- Extension Methods
Constructors
BidirectionalDictionary(int)
public BidirectionalDictionary(int capacity)
Parameters
capacity
int
Properties
Count
public int Count { get; }
Property Value
FirstTypes
public IEnumerable<T1> FirstTypes { get; }
Property Value
- IEnumerable<T1>
SecondTypes
public IEnumerable<T2> SecondTypes { get; }
Property Value
- IEnumerable<T2>
Methods
Add(T1, T2)
public void Add(T1 key, T2 value)
Parameters
key
T1value
T2
Clear()
public void Clear()
Contains(T2)
public bool Contains(T2 key)
Parameters
key
T2
Returns
ContainsKey(T1)
public bool ContainsKey(T1 key)
Parameters
key
T1
Returns
Get(T2)
public T1 Get(T2 key)
Parameters
key
T2
Returns
- T1
GetEnumerator()
Returns an enumerator that iterates through a collection.
public IEnumerator GetEnumerator()
Returns
- IEnumerator
An IEnumerator object that can be used to iterate through the collection.
GetFromKey(T1)
public T2 GetFromKey(T1 key)
Parameters
key
T1
Returns
- T2
GetKeys()
public IEnumerable<T1> GetKeys()
Returns
- IEnumerable<T1>
GetValues()
public IEnumerable<T2> GetValues()
Returns
- IEnumerable<T2>
RemoveFromKey(T1)
public void RemoveFromKey(T1 key)
Parameters
key
T1
RemoveFromValue(T2)
public T1 RemoveFromValue(T2 key)
Parameters
key
T2
Returns
- T1
TryGetValue(T1, out T2)
public bool TryGetValue(T1 key, out T2 value)
Parameters
key
T1value
T2
Returns
TryGetValue(T2, out T1)
public bool TryGetValue(T2 key, out T1 value)
Parameters
key
T2value
T1