|
SortedList
The Sorted List data structure
public class SortedList<T> : IVisitableCollection<T>, IList<T>
{
// Methods
public override void Accept(IVisitor<T> visitor);
public override void Add(T item);
public override void Clear();
public override int CompareTo(object obj);
public override bool Contains(T item);
public override void CopyTo(T[] array, int arrayIndex);
public override IEnumerator<T> GetEnumerator();
public override bool Remove(T item);
public void RemoveAt(int index);
// ...
// Properties
public IComparer<T> Comparer { get; }
public T this[int i] { get; }
// ...
}The SortedList<T> class performs the same function as the default SortedList<TKey, TValue> class in the .NET framework, except that it removes two nuances we've found working with that class:
| |
► Sign in to add a comment