this-keyword

C# Properties and this-keyword

When should I use the this-keyword for properties in code? public class MyClass { public string MyString { get; private set; } public void MyMethod() { OtherClass.DoStuff(MyString); // Or this.MyString? } } I know that if the type and name of a property is the same you have to use this. to make it work. public str...