Start Line with (New... in VB.net
Posted
by
pedro_cesar
on Stack Overflow
See other posts from Stack Overflow
or by pedro_cesar
Published on 2010-12-24T19:30:48Z
Indexed on
2010/12/24
20:54 UTC
Read the original article
Hit count: 168
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.
© Stack Overflow or respective owner