T4MVC: Strong Typing vs Magic Strings

added by kouphax
10/20/2010 8:01:41 AM

2 Kicks, 245 Views

Magic strings are everywhere in ASP.NET MVC 2. Less so than in version 1 and some of the Beta and RC releases but there are still some kicking around. The problem with literals is that they don’t give you any compile time error checking or refactoring ability.