I have
Dictionary d = new Dictionary();
How I can get an Guid
which has MAX
Guid implements IComparable, so:
d.Keys.Max()
Also it is not clear why one would want to do so...
The accepted answer didn't work for me. The following code (using MoreLinq) did the job though:
var fooDict = new Dictionary<string, int>();
var keyForBiggest = fooDict.MaxBy(kvp => kvp.Value).Key;
var biggestInt = fooDict[keyForBiggest];