IEnumerable without data

If I have a method or property that returns IEnumerable<SomeType>, which leads to lack of data, is it more efficient to return an empty array new SomeType[0]or is it better to return an empty list new List<SomeType>()or is there an even better solution (creating IMO of your own type using generics may be such a solution, but it seems to me that is it a little outwit)?

Array is my favorite, but what do you think of it?

+5
source share
1 answer
+15
source

All Articles