C# this keyword
Hi, I’m really confused about this keyword. The documentation is quite clear: it says that we’re talking about the current instance of the class when we use this, but on the other hand I’m told that this will always refer to the class field being manipulated, so ultimately always the same field, no matter which instance is used. Maybe I need to review my definition of an instance? Because from what I understand in the documentation, we’re not talking about the class field itself, but about the field of an object of that class.
Posted May 2, 2026, 2:00 PM UTC
17