3 ms·
A field in the parent class is still a member of the current object, and I'm pretty sure there's no way "this." could make a difference there, right?
by brundolf 6y ago
A field in the parent class is still a member of the current object, and I'm pretty sure there's no way "this." could make a difference there, right?
- tjalfi 6y agoYou're correct that the presence or absence of a "this." shouldn't make a difference. Having said that, C# also permits you to have fields with the same name in both the parent class and the current object. This will give you a compiler warning suggesting you use the new keyword, though.