c# get set syntax code example
Example: get set c#
private string name;
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}
private string name;
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}