Functional programming with Linq – Enumerable.OfType
Of all the methods available on the Enumerable class, OfType<T> is arguably one of the most useful and yet under utilized method. For example, you have a list of Cat and Dog objects, all inheriting from a common Animal class, but occasionally you want to perform operations on only the dogs or cats, and that’s …
Functional programming with Linq – Enumerable.OfType Read More »