System::Collections::Generic::List::Sort メソッド

List::Sort() method

デフォルトの比較子を使用してリスト内の要素をソートします。

void System::Collections::Generic::List<T>::Sort()

参照

List::Sort(Comparison<T>, bool) method

リスト内の要素をソートします。

void System::Collections::Generic::List<T>::Sort(Comparison<T> comparison, bool)
パラメーター説明
comparisonComparison<T>Comparison を使用します。

参照

List::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>>&) method

リスト内の要素をソートします。

void System::Collections::Generic::List<T>::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
パラメーター説明
比較子const SharedPtr<System::Collections::Generic::IComparer<T>>&使用する比較器。

参照

List::Sort(int, int, SharedPtr<System::Collections::Generic::IComparer<T>>) method

リストスライス内の要素をソートします。

void System::Collections::Generic::List<T>::Sort(int index, int count, SharedPtr<System::Collections::Generic::IComparer<T>> comparator)
パラメーター説明
インデックスintスライスの開始インデックス。
countintスライスのサイズ。
比較子SharedPtr<System::Collections::Generic::IComparer<T>>使用する比較器。

参照