I have a C# class that looks like this:
public class Model
{
public string title;
public string name;
...
}
Somewhere I have a variable with the attribute I need to set "title"
for example.
My C# is rather rusty but basically what I want to do is:
var attrToBeSet = "title";
var model = new Model();
model[attrToBeSet] = "someValue";
Obviously that is psuedocode but ... Is this even possible with C#?