You can find the largest value in a C# map (Dictionary) by using LINQ to query the map and return the item with the highest value. Here's an example:
main.cs214 chars9 lines
In this example, we define a Dictionary called "map" and add some key-value pairs to it. We then use the "Values" property of the map to get a collection of all the values in the map, and call the "Max" method on that collection to find the item with the highest value. Finally, we print out the result.
gistlibby LogSnag