I have see code like this
Dim s as something = new something Dim s as new something
what’s the difference? is there any?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A slight difference.
The first allows you to do:
The second doesn’t.
The ‘advantage’ of this is
scan be a number of different types related to ParentType without it exploding at runtime.