Start Line with (New... in VB.net
- by pedro_cesar
Hello;
Why can't I start a line using a parenthesis followed by the keyword new?? For example:
(New <custom_obj>).foo(var)
In that case is obvious that I'm trying to avoid creating a named instance of the the <custom_obj> because I know that I'll only be using it at that sentence.
Note that actually creating a named instance is not a problem for me... I just wanna know the reason why this is not possible.