So I started my intermediate class on C# on Udemy a couple days ago and the instructor was talking about the 'This' keyword. I understand that it's used to reference variables or such in the class and not in the function but I feel like you could still do without it. Let me give you the examples:
public Customer(int id, string name)
: this(id)
{
this.Name = name;
}
I feel like the 'this.Name' part is absolutely not necessary because I can just type 'Name = name' The instructor was talking about how sometimes you'll have similar names and it's just to make sure you are referencing the correct variable so you don't accidentally type 'name = Name' or something along the lines of that, I'm sure there's got to be a bigger meaning to the 'this' keyword.