







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Reverses a list and returns the reversed list, without changing the source list.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public static IEnumerable<T> Reverse<T>( IList<T> source ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Reverse(Of T) ( _ source As IList(Of T) _ ) As IEnumerable(Of T) |
| Visual C++ |
|---|
public: generic<typename T> static IEnumerable<T>^ Reverse ( IList<T>^ source ) |
Parameters
- source
- IList<(Of <T>)>
The list to reverse.
Return Value
A collection that contains the items from source in reverse order.
Type Parameters
- T
Exceptions
| Exception | Condition |
|---|---|
| System..::ArgumentNullException | source is null. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace
