Ello, Working with Workflow Foundations 4 (in C#) and trying to write a VB expression Is there a way to do the following in VB.Net on one line?
SomeObj instance = new SomeObj()
{
SomeStringProp = "a",
SomeIntProp = 17
};
Ello, Working with Workflow Foundations 4 (in C#) and trying to write a VB expression Is there a way to do the following in VB.Net on one line?
SomeObj instance = new SomeObj()
{
SomeStringProp = "a",
SomeIntProp = 17
};
Here's an example
Dim instance = new SomeObj() With {.ISomeStringProp = "a", .SomeIntProp = 17}
if you want more info take a look at this