[Route Table 1][1] This image shows how to define the RouteTable in C#, using the Route Class. How to define it in VB.NET?
A:
I see you've asked a couple of questions about code conversion. There are free tools that help with this like:
It'll be quicker than waiting for others to help you translate. There are some language features that don't get handled well, but it works on most code.
Also, you image link is broken, so I can't see the code to help translate.
Tim Hoolihan
2009-06-03 13:13:11
This is how the code looks. Route myroute=new Route(); myroute.url="[controller]/[action]/[id]"; myroute.RouteHandle=typeof(MvcRouteHandler);myRoute.Defaults=new {action="Index", id=(string)null}; For the below line of Code, myRoute.Defaults=new {action="Index", id=(string)null}; Would it be like myroute.defaults=New With {action="Index",id=(string)null};ormyroute.defaults=New With {.action="Index",.id=(string)null}; Thanks in advance
2009-06-04 04:46:12