VB.NET/ASP.NET With and New keyword muddle -


Can anyone explain that new works with with this code examples from the MVC framework.

  routes {.controller = "home", .action = "index", .id = ""}} with new "MapRoute" ("default", "{controller} / {action} / {id}",  

Use this syntax to create an anonymous type in VB.Net

It allows you to define a type on the fly with the set of name / value pairs, to change in properties of all kinds of names. If you open the reflected assembly in the mirror then you will be able to see these types.

Do not fool you with the syntax part, with this feature nothing to do with reference feature of "V". other than the "." Prefix at the name of the value


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -