Use reflection to get a list of static classes
Posted
by Christian
on Stack Overflow
See other posts from Stack Overflow
or by Christian
Published on 2010-04-14T17:06:21Z
Indexed on
2010/04/14
17:13 UTC
Read the original article
Hit count: 298
Hi,
many questions are close, but none answers my problem...
How do I use reflection in C# 3.5 to get all classes which are static from an assembly. I already get all Types defined, but there is no IsStatic property. Counting 0 constructors is really slow and did not work either.
Any tips or a line of code? :-)
Chris
© Stack Overflow or respective owner