Ok, im sure im mis-wording the concept but here it is anyways.
I know in CSharp you can do
el.AppendChild(new UISize(file, "TSize") { CX = 95, CY = 20 });
which declares a temporary bucket variable and then assigns the associate property values to the variable. Which then sends it to the XMLElement
AppendChild
method.
- What is this design concept called?
- What is the conversion to VB.Net?
I have tried using my own online utility that does a 90-95% conversion rate from C# <-> VB.Net. It has failed in this instance, and so need a hand-up on what i am looking to do to convert this from C# to VB.Net.
I would really like to not have to do a long-declaration of a variable with assignments, if at all possible.