how to use set and get in c# 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;
}
}