using System;
using System.Reflection;
publicclass Example
{
publicstaticvoid Main()
{
Assembly mainAssembly = Assembly.GetExecutingAssembly();
Console.WriteLine("The executing assembly is {0}.", mainAssembly);
Module[] mods = mainAssembly.GetModules();
Console.WriteLine("\tModules in the assembly:");
foreach (Module m in mods)
Console.WriteLine("\t{0}", m);
}
}