Empty

suggest change

To create an empty IEnumerable of int:

IEnumerable<int> emptyList = Enumerable.Empty<int>();

This empty IEnumerable is cached for each Type T, so that:

Enumerable.Empty<decimal>() == Enumerable.Empty<decimal>(); // This is True
Enumerable.Empty<int>() == Enumerable.Empty<decimal>();     // This is False

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


LINQ:
* LINQ
* Any
* Except
* Zip
* Concat
* Count
* Min
* Cast
* All
* Sum
* Take
* OfType
* Max
* Skip
* Last
* Union
* ToList
* Single
* Join
* Empty
* ThenBy
* Range
* Repeat

Table Of Contents