My understanding of instantiating objects in vb.net is when you use the new keyword it allocates space for the object on the heap and assigns the address of the object into the variable on the left of the equals operator.
So does the reference variable have the same behaviour as a pointer in c? If I pass the variable by reference into a method does it pass a pointer to the reference variable on the stack which in turn points to the object or does it pass a pointer to the object? And if I pass by value does it create a local version of the reference or does it create a local version of the object?
I have been passing by reference because I'm not sure how the reference types work in vb.net....Please enlighten me.