Show all assemblies loaded by C# program
using System;
using System.Text;
using System.Reflection;
namespace AssemblyListing
{
class Program
{
static void Main(string[] args)
{
AppDomain MyDomain = AppDomain.CurrentDomain;
Assembly[] AssembliesLoaded = MyDomain.GetAssemblies();
foreach (Assembly MyAssembly in AssembliesLoaded)
{
Console.WriteLine("Loaded: {0}", MyAssembly.FullName);
}
}
}
}
using System.Text;
using System.Reflection;
namespace AssemblyListing
{
class Program
{
static void Main(string[] args)
{
AppDomain MyDomain = AppDomain.CurrentDomain;
Assembly[] AssembliesLoaded = MyDomain.GetAssemblies();
foreach (Assembly MyAssembly in AssembliesLoaded)
{
Console.WriteLine("Loaded: {0}", MyAssembly.FullName);
}
}
}
}
Comments
Post a Comment