Click or drag to resize
ListTReverse Method (Int32, Int32)
Reverses the order of the elements in the specified range.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public void Reverse(
	int index,
	int count
)

Parameters

index
Type: SystemInt32
The zero-based starting index of the range to reverse.
count
Type: SystemInt32
The number of elements in the range to reverse.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0.-or-count is less than 0.
ArgumentExceptionindex and count do not denote a valid range of elements in the ListT.
See Also