Reverse
In this chapter you will learn:
Get to know Reverse operator
using System;//j ava 2 s . co m
using System.Linq;
public class MainClass {
public static void Main() {
int[] numbers = { 10, 9, 8, 7, 6 };
IEnumerable<int> reversed = numbers.Reverse();
}
}
The code above generates the following result.
Reverse a string array
using System; using System.Linq; public class MainClass { public static void Main() { string[] presidents = {"lore", "Truman", "Tailer", "Van", "java2s.com", "Wilson"}; IEnumerableNext chapter...
What you will learn in the next chapter:
Home » C# Tutorial » Linq Operators