Browse by Tags

All Tags » Extension Methods (RSS)

Handy Extension Methods for ASP.NET MVC's UrlHelper

Mickael Chambaud posted three extension methods he created for UrlHelper: Image(), Stylesheet() and Script().  They make it pretty easy to keep your images, stylesheets and scripts organized in a single location – without the need for you to remember where they are placed.  And if you need to move things around for some reason, you only have to change the extension methods. Technorati Tags: ASP.NET MVC , Extension Methods

Extension Method Guidelines

I'm spending some time this morning getting caught up on RSS reading.  A great post from last week from Brad Abrams on when you should use extension methods – i.e. when they are a good choice.  As Brad Abrams points out: "While this a very powerful new feature, it does come with some new responsibility." Technorati Tags: .NET , Extension Methods