C# Language Public Set


Example

Setters are used to assign values to properties.

string name;
public string Name 
{
    set { this.name = value; }
}