Reverse does exactly as it says : Reverse : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Reverse »

 

Reverse does exactly as it says








    
 

using System;
using System.Collections.Generic;
using System.Linq;
public class MainClass {
    public static void Main() {

        int[] numbers = { 10, 9, 8, 7, 6 };

        IEnumerable<int> reversed = numbers.Reverse();    // { 6, 7, 8, 9, 10 }

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» Reverse