using System;
using System.Reflection;
public class Example
{
public static void 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);
}
}
|