Is there a library of common data collection algorithms for .NET? I would like to write something like this:
IList<T> items = GetItemsFromSomeWhere();
Algorithms<T>.Sort(items);
T item = GetItemSomwHow();
int i = Algorithms<T>.IndexOf(items, item);
Note that itemsnot List<T>, otherwise I could just use the List<T>.Sortand methods List<T>.BinarySearch.
Of course, I can implement them myself, I just do not want to reinvent the wheel.
I would also like the implementation to be effective.
PS
Please do not tell which collections to use. I perfectly understand the abilities Arrayor List<T>. I need a library of algorithms to work with any collection based on IList<T>.
EDIT:
Found what I needed - see my own answer.