It’s easy to get the value of a key from a .NET generic Dictionary:
Dictionary<int, string> greek = new Dictionary<int, string>(); greek.Add(1, 'Alpha'); greek.Add(2, 'Beta'); string secondGreek = greek[2]; // Beta
But trying to get the keys given a value is not as straightforward because there could be multiple keys:
int[] betaKeys = greek.WhatDoIPutHere('Beta'); // expecting single 2
Okay, here’s the multiple bidirectional version: