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






Module.ToString

 

using System;
using System.Reflection;

class MyMainClass
{
    static void Main()
    {
        Module[] moduleArray;

        moduleArray = Assembly.GetExecutingAssembly().GetModules(false);

        Module myModule = moduleArray[0];

        Console.WriteLine("myModule.ToString returns: {0}", myModule.ToString());
    }
}

   
  








Related examples in the same category

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