Module.Assembly : Module « Reflection « C# / C Sharp






Module.Assembly

 
using System;
using System.Reflection;

class MyMainClass
{
    static void Main()
    {
        Module[] moduleArray;
        moduleArray = Assembly.GetExecutingAssembly().GetModules(false);
        Module myModule = moduleArray[0];

        Assembly myAssembly = myModule.Assembly;
        Console.WriteLine("myModule.Assembly = {0}.", myAssembly.FullName);
    }
}

   
  








Related examples in the same category

1.Load Assembly
2.Module Class Performs reflection on a module.
3.Module.FilterTypeName
4.Module.Filter Type Name
5.Module.Fully Qualified Name
6.Module.Is Defined
7.Module.Is Resource
8.Module.ToString