LongCount with &&(and) operator : LongCount : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » LongCount »

 

LongCount with &&(and) operator








    
 

using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;

public class MainClass {
    public static void Main() {
        long count = Enumerable.Range(0, int.MaxValue).
        Concat(Enumerable.Range(0, int.MaxValue)).LongCount(n => n > 1 && n < 4);
        Console.WriteLine(count);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» LongCount