I have a bool named "AbsSet" in my class Section1 and I want to set it's value from another class by referencing the variable using a string. I have read through similar questions, which leads to using the GetProperty() function. However because this is a UWP, that function is not a part of the system library. Is there another way of setting this variables value by looking it up by string?
Asked
Active
Viewed 272 times
0
-
Sounds like a job for [reflection](http://stackoverflow.com/questions/619767/set-object-property-using-reflection)! – Draco18s no longer trusts SE Feb 04 '16 at 19:52
-
There isn't a call to InvokeMember() in System.Reflection. – Lotzi11 Feb 04 '16 at 20:00
-
Did you try [the second answer](http://stackoverflow.com/a/619788/1663383)? – Draco18s no longer trusts SE Feb 04 '16 at 20:03
-
GetProperty() is not in the library either. This is a Universal Windows app, so the library is different from the regular system library. – Lotzi11 Feb 04 '16 at 20:10