If you write code in a class that inherits from a base class and you want to call a protected or public method in this base class, it is better (right or wrong or otherwise) to call base.MyProtectedMethod() or this.MyProtectedMethod() (in C #) ? What is the difference? Both seem to work.
For instance:
public class MyBase() { .... protected void DoStuff() {
Is it the same thing twice in MyNewMethod ?
source share