Yes, I've already looked at that:
Type myType = typeof(MyClass);
MemberInfo myMemInfo = myType.getMethod("MyFunc",
...etc.
Which gets me a method and I could create method accessors for all the
object I want, but the problem is that it is still not able to get the
current instance that I'm actually working in.
"bruce barker (sqlwork.com)" wrote:
yes, look at getmethod and invokemethod
-- bruce (sqlwork.com)
"JoshZ" <Jo***@discussions.microsoft.comwrote in message
news:B1**********************************@microsof t.com...
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