I use SortedDictionaries to simulate a queue (due to some requirements that I have), and I call Last () on a sorted dictionary to get the item I need to delete.
I'm just curious about the performance of using custom mapping and calling First () or continue calling Last ().
After decompiling the .NET 3.5 assemblies, I found that the SortedDictionary class has the Count property, so I assume that the structure simply returns the element at position 0 when First is called, and the element at [count-1] when Last is called, am I right?
source share