







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Reverses a list or array in place.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public static void ReverseInPlace<T>( IList<T> list ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub ReverseInPlace(Of T) ( _ list As IList(Of T) _ ) |
| Visual C++ |
|---|
public: generic<typename T> static void ReverseInPlace ( IList<T>^ list ) |
Parameters
- list
- IList<(Of <T>)>
The list or array to reverse.
Type Parameters
- T
Remarks
Although arrays cast to IList<T> are normally read-only, this method
will work correctly and modify an array passed as list.
Exceptions
| Exception | Condition |
|---|---|
| System..::ArgumentNullException | list is null. |
| System..::ArgumentException | list is read only. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace
