I have a dictionary with keys that are ints. I would like to get the largest key. I don\'t keep track of keys so they might be consecutive (e.g. 1,2,3,4,5,6) but might skip
If you have LINQ available, you should be able to do:
myDictionary.Keys.Max();