I have code like this
Dim s as something = new something Dim s as new something
who cares? whether there is a?
Slight difference.
The first allows you to:
Dim s as ParentType = new InheritedType
The second does not.
The “advantage” of this scan be several different types associated with ParentType without exploding at runtime.
s
There is no difference. These signatures are identical with respect to VB. One has less text :)
.
,
Dim s as something = new something
Dim s as new something
, Vb6 (as new VB6 , ). , "" Vb.Net
as new
, Vb.Net , IL.
I believe that everything you do is exactly what you do.