DateTimeCollectionSort Method (Int32, Int32, IComparer) |
Sorts the elements in the specified range
using the specified IComparer interface.
Namespace: Kettic.AspNet.Controls.Calendar.CollectionsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public virtual void Sort(
int startIndex,
int itemCount,
IComparer itemComparer
)
Public Overridable Sub Sort (
startIndex As Integer,
itemCount As Integer,
itemComparer As IComparer
)
public:
virtual void Sort(
int startIndex,
int itemCount,
IComparer^ itemComparer
)
abstract Sort :
startIndex : int *
itemCount : int *
itemComparer : IComparer -> unit
override Sort :
startIndex : int *
itemCount : int *
itemComparer : IComparer -> unit
Parameters
- startIndex
- Type: SystemInt32
The zero-based starting index of the range
of elements to sort. - itemCount
- Type: SystemInt32
The number of elements to sort. - itemComparer
- Type: System.CollectionsIComparer
The IComparer implementation to use when comparing elements.
-or-
A null reference to use the IComparable implementation
of each element.
Exceptions Exception | Condition |
---|
ArgumentException | startIndex and itemCount do not denote a
valid range of elements in the DateTimeCollection. |
ArgumentOutOfRangeException | startIndex is less than zero. -or- itemCount is less than zero. |
NotSupportedException | |
Remarks Please refer to Sort(IComparer) for details.
See Also