Given the following code and the suggestions given in this question, I\'ve decided to modify this original method and ask if there are any values in the IEnumarable return i
I think the simplest way would be
return new Friend[0];
The requirements of the return are merely that the method return an object which implements IEnumerable. The fact that under different circumstances you return two different kinds of objects is irrelevant, as long as both implement IEnumerable.