S
Sky
Hello:
I understand that I can query an class def to find if it has a specific
custom attribute -- but if i wanted to find all classes in an assembly that
have that attribute, is there a way?
How about methods? Without recursing through every class/every method --
which could get very time consuming?
(PS: To give context to the above question: I am thinking of trying to
find/list all WebMethods in an assembly...since I am trying to make an
IhttpHandler that would correctly direct incoming requests to the right
method...)
And while on the subject -- is there a way to find all classes that
implement a specific interface? Ie, can I find all classdefs in an assembly
that inherit from IMyInterface?
Thanks,
Sky
I understand that I can query an class def to find if it has a specific
custom attribute -- but if i wanted to find all classes in an assembly that
have that attribute, is there a way?
How about methods? Without recursing through every class/every method --
which could get very time consuming?
(PS: To give context to the above question: I am thinking of trying to
find/list all WebMethods in an assembly...since I am trying to make an
IhttpHandler that would correctly direct incoming requests to the right
method...)
And while on the subject -- is there a way to find all classes that
implement a specific interface? Ie, can I find all classdefs in an assembly
that inherit from IMyInterface?
Thanks,
Sky