I have a method that creates a sorted dictionary of things
SortedDictionary<string, MyClass> sortedStuff = new SortedDictionary<string, MyClass>();
// add some items to sortedStuff
now all I want to do is retrieve the "maximum" value from the dictionary, where maximum is determined by the comparison of two strings keys such that
s1.CompareTo(s2) > 0
I am vaguely aware of predicates, IComparer interfaces and also First<> and Last<> but I can't figure out how to use them...
Thanks in advance,