How to iterate through an assembly?

  • Thread starter Thread starter Lau Lei Cheong
  • Start date Start date
L

Lau Lei Cheong

Hello,

After a meeting, our management have an idea that each objects should
have a bool const value "isTested". Then we should have a utility to iterate
through each objects in the EXEs/DLLs to see if all the values are changed
to true, and report the names of objects that aren't changed.

I know there's an utility called NUnit that'll do much better job by
providing a testsuite, but I'm also interested to know how to iterate
through the objects(much like what is shown in the object browser). Anyone
can tell me?

Regards,
Lau Lei Cheong
 
So, your management decided that, after an object has been tested, someone
needs to change a constant to true, and then recompile it again!?

See the System.Reflection namespace.
 
Back
Top