Empty
In this chapter you will learn:
Get to know Empty operator
Empty
creates an empty sequence and requires just a type argument:
using System;/* j a v a2s . c o m*/
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
foreach (string s in Enumerable.Empty<string>())
{
Console.Write(s); // <nothing>
}
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » Linq Operators