I have a collection of an anonymous class and I want to return an empty list.
What is the best readable expression used?
I, however, come from the following, but I do not think they are readable enough:
var result = MyCollection.Take(0).ToList(); var result = MyCollection.Where(p => false).ToList();
Note. I do not want to clear the collection.
Any suggestion!
Homam source share