I have properties called reel1, reel2, reel3 and reel4. How can I dynamically refer to these properties by simply passing an integer (1-4) to my method?
In particular, I am looking for how to get a link to an object without knowing the name of the object.
In Javascript, I would do:
temp = eval("reel" + tempInt);
and temp will be equal to reel1, the object.
It may not seem like this simple concept in C #.
javascript reflection c #
Jeff blankenburg
source share