G
Guest
Is it possible if i have
class x {
object a1;
object b2;
object c3;
string names[] = {"a1", "b2", "c3"};
}
to iterate through the class members via Reflection or some other sort of
the current class, not just an instance of the class and acess these members
and manipulate their properties using their literal names i.e.
someMagicMethod.getMember(names[0]).mem = "4";
instead of
a1.mem = "1";
Thank you,
Josh
class x {
object a1;
object b2;
object c3;
string names[] = {"a1", "b2", "c3"};
}
to iterate through the class members via Reflection or some other sort of
the current class, not just an instance of the class and acess these members
and manipulate their properties using their literal names i.e.
someMagicMethod.getMember(names[0]).mem = "4";
instead of
a1.mem = "1";
Thank you,
Josh