Is there a way for me to make a function call on a new instance of a variable without first declaring it?
So for example in Java you could do:
new foo().bar(parameters);
I've tried something similar in Visual Basic, but it's a syntax error. For the moment I'm creating a variable and then running the function.
dim instance as new foo()
instance.bar(parameters)
Is there something I can do similarly to the Java code above?
Sharedmethods in instead.