Enumerable.Empty : Enumerable « System.Linq « C# / C Sharp by API






Enumerable.Empty

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

public class MainClass {
    public static void Main() {
        IEnumerable<string> strings = Enumerable.Empty<string>();
        foreach (string s in strings)
            Console.WriteLine(s); Console.WriteLine(strings.Count());
    }
}

   
  








Related examples in the same category

1.Enumerable.Aggregate
2.Enumerable.Average()
3.Enumerable.Cast
4.Enumerable.Count()
5.Enumerable.DefaultIfEmpty
6.Enumerable.Distinct()
7.Enumerable.ElementAt
8.Enumerable.ElementAtOrDefault
9.Enumerable.ElementsAfterSelf
10.Enumerable.First
11.Enumerable.OrderBy
12.Enumerable.Range
13.Enumerable.Repeat
14.Enumerable.Where