Reflection enables retrieving information on programs, including modules, types, and type members defined within an assembly. For example you might want to enumerate all types and type members defined in the People.dll assembly. Take a look at the following code:
You still get the instance of the desired assembly; then you can iterate types (or modules if preferred). The
Assembly.GetTypes method returns an array of
System.Type objects defined in the assembly that you can iterate for detailed information. The
System.Type class exposes several
GetX methods, in which
X can stand for
Fields, and ...