class Person
{
private string name;
public string Name { get => name; set => name = value; }
}
public class Person
{
private Dictionary<string, string> prop = new Dictionary<string, string>();
public void SetProp(string key, string value)
{
prop[key] = value;
}
public string GetProp(string key)
{
return prop[key];
}
}
public void Test()
{
Person pers = new Person();
pers.SetProp("name", "Ivanov");
var name = pers.GetProp("name");
}