Empty
suggest changeTo 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents