...

/

The this Keyword and Extension Methods

The this Keyword and Extension Methods

Let's discuss this keyword and extension methods.

What is the this keyword?

The this keyword refers to the current instance of the class. It helps qualify members hidden by the same name. The this keyword can also be used to pass the entire instance of the current class to a parameter as an object.

Example

Access this course and 1400+ top-rated courses and projects.