I have a Dictionary where the key and value are both strings. It’s possible to get the value of a key by using []. But the [] expects a string. Is it possible to get the value of a key by using a number instead of the String key?
Dictionary<String, String> m_GermanEnglish = new Dictionary<String, String>();
m_GermanEnglish.Add("der", "the");
You can use LINQ
But you are relying on implementation that you don’t know or is guaranteed. Dictionary does not guarantee the elements to be in a certain order.