What good is a SortedList if GetKey doesn't work?

I first assumed “mySortedList[0]” would return the first list item, but that was wrong. The right way to say that is “mySortedList.GetKey(0),” but doing that gives me the error-
‘GetKey’ is not a member of ‘System.Collections.Generic.SortedList.<float,int>’.
What? The .net documentation says it is. So how else am I going to find out what the first (= largest) value is, which is the whole point of having a sorted list?

You can use Linq and do

  using System.Linq;


  var value = mySortedList.Values.First(); // The first value


  var key = mySortedList.Keys.First();