RouteValueDictionary: abuse or elegance?

Published Sat, Oct 4 2008 23:02

Today I was reading an old post by Mike Tauty about the RouteValueDictionary and I remembered some old discussions on the RouteValueDictionary class. As many others, Mike sees the RouteValueDictionary as an abuse of the new anonymous type feature introduced by C# 3.0.

Me: well, I’m not so quick in saying that it’s an abuse. I mean, would you prefer to drop the anonymous type sugar syntax and use the object initializer syntax for passing values to that dictionary? I wouldn’t, but I’m interesting in knowing what others think about this…

Filed under: , ,

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above:  

Search

This Blog

Tags

Community

Archives

Syndication

Email Notifications

News




  • View Luis Abreu's profile on LinkedIn


    Follow me at Twitter

    My books

    Silverlight 4.0: Curso Completo

    ASP.NET 4.0: Curso Completo

    Portuguese LINQ book cover

    Portuguese ASP.NET 3.5 book cover

    Portuguese ASP.NET AJAX book cover

    Portuguese ASP.NET AJAX book cover