Mid Collections

How do you reverse the elements of a List<T>?

Use the Reverse() method.

Example:

list.Reverse();

Follow:

Use case: Reversing order of recent messages or results.

More from C# Programming Tutorial

All questions for this course