Extension Methods in VS 2008

by Rob Teegarden 13. April 2008 18:28

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...

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my wife's view in anyway, unless she wrote it.

© Copyright 2017 Teegarden.net