IList<T>.Reverse Method

Overloads

Reverse

Reverses the order of the elements in the entire list.

Reverse(Integer, Integer)

Reverses the order of the elements in the specified range.

Reverse

Reverses the order of the elements in the entire list.

Delphi
procedure Reverse

Reverse(Integer, Integer)

Reverses the order of the elements in the specified range.

Delphi
procedure Reverse(index: Integer; count: Integer)

Parameters

index
Integer

The zero-based starting index of the range to reverse.

count
Integer

The number of elements in the range to reverse.

Exceptions

index is less than 0.

-or-

count is less than 0.

-or-

index and count do not denote a valid range of elements in the list.