public static void Main()
Type examType = typeof(Example);
Example exam = new Example();
PropertyInfo piInstance = examType.GetProperty("StringProperty");
piInstance.SetValue(exam, "potato");
piInstance = examType.GetProperty("IntProperty");
piInstance.SetValue(exam, "37");
private string _stringProperty = "initialValue";
private int _intProperty = 1;
public string StringProperty