in C# I can use
var myUser = New User {FirstName = "John", LastName = "Carter"}
to instantiate a class and assign values to its members in one single statement.
Is there an equivalent in VB.Net?
The reason is WF 4.0 only allows VB expression in the designer and I want to quickly create a default value without using a few assignment activities..
Many thanks.
Yes