Gets the assemblies that have been loaded into the execution context of this application domain.
using System;
using System.Reflection;
using System.Security.Policy;
class MainClass{
publicstaticvoid Main()
{
AppDomain currentDomain = AppDomain.CurrentDomain;
Evidence asEvidence = currentDomain.Evidence;
currentDomain.Load("CustomLibrary",asEvidence);
Assembly[] assems = currentDomain.GetAssemblies();
Console.WriteLine("List of assemblies loaded in current appdomain:");
foreach (Assembly assem in assems){
Console.WriteLine(assem.ToString());
}
}
}