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:



Table Of Contents