Reputation: 10226
In VB I can write this:
Dim x As MyObj = New MyObj()
x.First = 1
x.Run
like this:
With New MyObj()
.First = 1
.Run
End
which I find much cleaner. one problem I have is that whilst debugging, the first form allows me to inspect the object whereas the second does not. Or does it? how do I do it?
thanks - ekkis
Upvotes: 1
Views: 67
Reputation: 35260
You can use the "Autos" window, available under the "Debug > Windows" menu.
Upvotes: 1