RouteValueDictionary: abuse or elegance?
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…