If yield return never occurs, is null returned?

Viewed 4936

The method returns IEnumerable via a yield return statement.

If the yield statement never occurs (it's inside conditional logic), will the method return null, or will it return an Enumerable with a count of 0?

3 Answers
Related