System::Collections::Generic::List::Sort méthode

List::Sort() method

Trie les éléments de la liste en utilisant le comparateur par défaut.

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

Voir aussi

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

Trie les éléments de la liste.

void System::Collections::Generic::List<T>::Sort(Comparison<T> comparison, bool)
ParamètreTypeDescription
comparisonComparison<T>Comparison à utiliser.

Voir aussi

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

Trie les éléments de la liste.

void System::Collections::Generic::List<T>::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
ParamètreTypeDescription
comparateurconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparateur à utiliser.

Voir aussi

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

Trie les éléments de la tranche de la liste.

void System::Collections::Generic::List<T>::Sort(int index, int count, SharedPtr<System::Collections::Generic::IComparer<T>> comparator)
ParamètreTypeDescription
indiceintIndice de début de la tranche.
countintTaille de la tranche.
comparateurSharedPtr<System::Collections::Generic::IComparer<T>>Comparateur à utiliser.

Voir aussi