Let's say I have a C# class like this:
Class Test {
public string myProp;
public Test() {
}
}
//(...)
Test testObject = new Test();
I need to get a reference to that property and set it, in that kind a way:
testObject.GetProperty("myProp") = (...)
I Can't use PropertyInfo.SetValue
(and of course in my case I can't do testObject.myProp = (...)
, I really need to access it that way and be able to set it with the '=' sign. Is it possible?