Snippet: Ruby-like Hashes in C#
Posted on June 12th, 2008 by Paul Stovell
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 […]
Filed under: C# | 9 Comments »
