Take method : Take : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Take »

 

Take method








    
 

using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
    public static void Main() {
        string[] presidents = {"A", "A", "B", "Bu", "Car", "land"};

        IEnumerable<string> items = presidents.Take(5);

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

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» Take