I want to be able to determine which class property has been selected based on a string input by the user, where the string is the name of one of the class properties.
For example
string userInput = "PropertyName";
string newValue = "some value";
MyClass c = new MyClass();
c.PropertyName = newValue;
But I do not know how to locate Properties of a custom class by Name in this way.
Can anyone suggest the most concise way of achieving this please.