Extending C# objects with our own custom methods
Let’s see how we can use extension methods to boost the behaviour of our C# objects without creating new derived types!
In my latest C# article, I offered a (quick) intro to the C# Linq implementation and how so useful I think it is. One reason I find it particularly user-friendly is because as soon as you’ve added the
using System.Linq; import statement at the top of your file, all your arrays, lists and other enumerables just "magically" have new methods available…