Snippet: Ruby-like Hashes in C#

The ASP.NET MVC team developed a URL routing engine, similar to the engine in Rails, which has made it’s way into the rest of ASP.NET. ScottGu has covered it a few times in the past, and this post has some good examples of it. Here’s a quick example:

routes.MapRoute(”ShowProductByCategory”, “Products/Show/{Category}/{id}”,
new { controller […]