this
A reference to the current object inside its instance code.
What is this in C#?
this — A reference to the current object inside its instance code.
class Book
{
string title;
Book(string title)
{
this.title = title;
}
}
Level: Journeyman · More C# terms at this level
Updated