I have this example class:public class Carrots{    private string name;    public void SetName(string pName)    {        name = pName;    }    public string GetName()    {        return name;    }}I have the member of the class set as private and to set and get this member, I have made get and set methods. Is there a way I can make this code shorter and easier to read at a glance?
Is there a better way of using getters and setters on private members of a class?
c#;class design;class