Extension Methods in VS 2008
If you ever wish you could add a method to an existing class without having to inherit, then you can rest easily knowing that this new feature in VS 2008 could save you some headaches.
Let’s say for example you have the need to strip HTML tags from strings all throughout your code. You could write a shared function and call it like so: More...