Does 'Me' in VB.NET refer only to an instantiation of the type? Just occurred to me that since I can reference properties in my VB.NET class without using 'Me', that I don't see a reason for using it for this purpose. Will referencing the variable either way always refer to the actual stored value for the property at runtime?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
From the Me documentation on MSDN:
The use case described is that of passing the current object to another one.
There are two main pursoses for the
You can use it to unambiguously refer to a member of this class. This allows local variables to use the same name, though this is poor practice.
And you can use it within the class to use this instance of the object as a parameter in a method call.
And to complete the example, here's the full implementation of the