What happens when i set a variable to nothing in VB.NET?
Is it true that nothing equals to default, or am i missing something here?
What happens when i set a variable to nothing in VB.NET? Is it true
Share
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.
If it’s a value type (like Integer, Double, etc.) setting the variable to Nothing will set it to the default value.
If it’s a reference type, it will really be set to Nothing (null value).
In Microsoft’s words: