What is the difference between "Me" and "this" in C#?

R

Ray

Hello,

Please help a VB newbie :) I'm a bit confused, reading all the
MyClass, Me, My keywords of VB. I think I get MyClass and My, but
Me... Can you just tell me if I get this correctly?

"Me" in VB (6, 7, 2005) is exactly like "this" in C# or C++. Its
meaning hasn't changed since VB 6. True or False?

Many thanks,
Ray
 
H

Herfried K. Wagner [MVP]

Ray said:
Please help a VB newbie :) I'm a bit confused, reading all the
MyClass, Me, My keywords of VB. I think I get MyClass and My, but
Me... Can you just tell me if I get this correctly?

"Me" in VB (6, 7, 2005) is exactly like "this" in C# or C++. Its
meaning hasn't changed since VB 6. True or False?

True.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top