I have see code like this
Dim s as something = new something
Dim s as new something
what's the difference? is there any?
A slight difference.
The first allows you to do:
Dim s as ParentType = new InheritedType
The second doesn't.
The "advantage" of this is s
can be a number of different types related to ParentType without it exploding at runtime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With