Get current Process Name : Process : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Process »

 

Get current Process Name








    
 

using System;
using System.Reflection;
using System.Diagnostics;

class AssemType
{

  public static void Main(string[] args)
  {
    Process p = Process.GetCurrentProcess();
    string assemblyName = p.ProcessName + ".exe";
    Console.WriteLine("Examining : {0}", assemblyName);
    Assembly a = Assembly.LoadFrom(assemblyName);

    Type[] types = a.GetTypes();
    foreach(Type t in types)
    {
      Console.WriteLine("\nType : {0}",t.FullName);
      Console.WriteLine("\tBase class : {0}",t.BaseType.FullName);
    }
  }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Process