c# dictionary int string get value by highest number code example Example: c# dictionary get highest key myDictionary.Keys.Max();