K
/kim/birkelund/aka/sekhmet
Hi
I have an abstract base class from which I would be able to reflect on the
members declared by an inheriting type.
Fx. if I have a class CBase which is a an abstract class with a static
constructor and I have a class C that extends CBase.
If I do something like:
typeof(C).GetProperty(...).GetValue(...)
It of course calls my static constructor in CBase. What I would like to be
able to is from that static constructor to get the members defined in C
(i.e. not only the abstract members declared in CBase).
If this is done from an instance member there's no problem, I just class
this.GetType() and I get the Type object for my inherited type. So what I'm
actually looking for is a static equivalent to this.GetType().
Hope someone can help me (and that I'm posting in the right group )
/kim/birkelund/aka/sekhmet
I have an abstract base class from which I would be able to reflect on the
members declared by an inheriting type.
Fx. if I have a class CBase which is a an abstract class with a static
constructor and I have a class C that extends CBase.
If I do something like:
typeof(C).GetProperty(...).GetValue(...)
It of course calls my static constructor in CBase. What I would like to be
able to is from that static constructor to get the members defined in C
(i.e. not only the abstract members declared in CBase).
If this is done from an instance member there's no problem, I just class
this.GetType() and I get the Type object for my inherited type. So what I'm
actually looking for is a static equivalent to this.GetType().
Hope someone can help me (and that I'm posting in the right group )
/kim/birkelund/aka/sekhmet