I have
Dictionary d = new Dictionary();
How I can get an Guid which has MAX
Guid
MAX
The accepted answer didn't work for me. The following code (using MoreLinq) did the job though:
var fooDict = new Dictionary(); var keyForBiggest = fooDict.MaxBy(kvp => kvp.Value).Key; var biggestInt = fooDict[keyForBiggest];