21
I have dictionary containing key value pairs.
SortedDictionary<int,int> dictionary=new SortedDictionary<int,int>();
dictionary.Add(1,33);
dictionary.Add(2,20);
dictionary.Add(4,35);
I want to get previous key value pair from a known key value. In the above case, if I have key 4, then how can I get <2,20>?