An Example Calling the Reverse Operator : Reverse : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Reverse »

 

An Example Calling the Reverse Operator








    
 

using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
    public static void Main() {
        string[] presidents = {"lore", "Truman", "Tailer", "Van", "Washington", "Wilson"};

        IEnumerable<string> items = presidents.Reverse();

        foreach (string item in items)
            Console.WriteLine(item);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» Reverse