Pop3MessageCollection.Sort Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9119)
Sort()
Sorts the messages in the entire Pop3MessageCollection by sequence number ascending.
Declaration
public void Sort()
Sort(IComparer)
Sorts the elements in the entire Pop3MessageCollection using the specified comparer.
Declaration
public void Sort(IComparer comparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer | comparer | The IComparer implementation to use when comparing elements, or a null reference to sort by sequence number ascending. |
Remarks
This method uses Sort(IComparer), which uses QuickSort algorithm. See its description for more information.
Sort(Int32, Int32, IComparer)
Sorts the elements in a section of Pop3MessageCollection using the specified comparer.
Declaration
public void Sort(int index, int count, IComparer comparer)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The zero-based starting index of the range to sort. |
Int32 | count | The length of the range to sort. |
IComparer | comparer | The IComparer implementation to use when comparing elements, or a null reference to sort by sequence number ascending. |
Remarks
This method uses Sort(Int32, Int32, IComparer), which uses QuickSort algorithm. See its description for more information.