Tuesday, October 12, 2010

IEnumerable Empty

When creating an IEnumerables, I mostly returned a null value when there are no values for the collection. But it is in some situations better to return an empty collection. This can be done with the Enumerable.Empty method.

No comments:

Post a Comment