SortedDictionary<int, int> result = new SortedDictionary<int, int>();

int max=result.OrderByDescending(t => t.Value).FirstOrDefault().Key;