System.Collections.ArrayList.ArrayListAdapter.Sort C# (CSharp) Method

Sort() public method

public Sort ( int index, int count, IComparer comparer ) : void
index int
count int
comparer IComparer
return void
			public override void Sort(int index, int count, IComparer comparer) 
			{
				CheckRange(index, count, m_Adaptee.Count);

				if (comparer == null) 
				{
					comparer = Comparer.Default;
				}

				// Doing a direct sort on the adaptee will perform poorly if the adaptee is a linked-list.
				// Alternatives include copying the adaptee into a temporary array first.

				QuickSort(m_Adaptee, index, index + count - 1, comparer);
			}

Same methods

ArrayList.ArrayListAdapter::Sort ( ) : void
ArrayList.ArrayListAdapter::Sort ( IComparer comparer ) : void