C# Language Public Get


Example

Getters are used to expose values from classes.

string name;
public string Name
{
    get { return this.name; }
}