tags:

views:

142

answers:

1

ASP.NET MVC - what is this in VB.NET?

Html.TextBox( "name", null, new { @class = "css-class" } );
+4  A: 

Almost exact duplicate: http://stackoverflow.com/questions/407586/what-is-the-vb-net-code-equivelant-for-c-anonymous-type-code

This is called Anonymous Types and the VB equivalent is :

New With {.Name = "value"}

MichaelGG
Thanks, I was missing the "." in my code - I couldn't for the life of me remember that.
EdenMachine