is possible to make this code shorter? Is there any shortcut for get/set method? Down below is a class that i created..
private string name;
private string lastname;
private string city;
public string GetName()
{
return name;
}
public void SetName(string name)
{
this.name = name;
}
public string GetLastName()
{
return lastname;
}
public void SetLastName(string lastname)
{
this.lastname = lastname;
}
public string GetCity()
{
return city;
}
public void SetCity(string city)
{
this.city = city;
}