Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BidirectionalDictionary.cs
Go to the documentation of this file.
2
4
5internal sealed class BidirectionalDictionary<T1, T2> : IEnumerable<KeyValuePair<T1, T2>>, IEnumerable
6{
7 private readonly Dictionary<T1, T2> _forward;
8
9 private readonly Dictionary<T2, T1> _backward;
10
16
17 public void Add(T1 item1, T2 item2)
18 {
21 }
22
23 public bool TryGetForward(T1 item1, [MaybeNullWhen(false)] out T2 item2)
24 {
26 }
27
28 public bool TryGetBackward(T2 item2, [MaybeNullWhen(false)] out T1 item1)
29 {
31 }
32
37
42
47}
bool TryGetForward(T1 item1, [MaybeNullWhen(false)] out T2 item2)
bool TryGetBackward(T2 item2, [MaybeNullWhen(false)] out T1 item1)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
new IEnumerator< T > GetEnumerator()