Image

I don't know if anyone else in this community will have got this far yet, but...

Can anyone point me in the right direction for enumerating the Classes within my Assembly, and then enumerating the Members of those Classes?

The plan is this:
I'm using a very lightweight database engine (SQLite - specifically, the System.Data.SQLite wrapper which is fantastic - you can also link it with your binary, Google for ILMerge)
What I want to do is to write a number of Classes which inherit from a generic Database Table Base Class. The Base Class has a Method called SelfCheck. This Method (called on all Classes which inherit from the Base Class at startup) checks the table in the database against the Members of the Class, and takes action if there is a mismatch. The action may be to CREATE TABLE, or to rebuild the table with any extra columns which were missing. This allows for a quick, simple & transparent upgrade path for the end user, and means I (or others in the future) won't have to keep messing about with table generation scripts.