Does anyone know of a sorted collection class in Silverlight 4? SortedSet<T>, SortedList<T>, and SortedDictionary<T> all seem to be missing.
Of course I can use List<T>.Sort(), or the IEnumerable<T>.OrderBy() extension method. But I’d rather not have to do an O(n log n) sort every time an element is added or removed.
Thanks for your help,
Richard
Here you go. You can find a lot of Mono source code for missing framework classes just by searching for the name of the class + “.cs” on Google.
http://www.koders.com/csharp/fid77AAA5D3D43E8EA58F8D9EFE52B8798463A68472.aspx
Sometimes you have to work out some compiler errors first but it should get you on your way.