Returns the assemblies that have been loaded into the reflection-only context of the application domain.
using System;
using System.Reflection;
using System.Timers;
public class Example
{
public static void Main()
{
string displayName = typeof(Timer).Assembly.FullName;
Assembly.ReflectionOnlyLoad(displayName);
foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
{
Console.WriteLine("\t{0}", a.GetName());
}
foreach (Assembly a in AppDomain.CurrentDomain.ReflectionOnlyGetAssemblies())
{
Console.WriteLine("\t{0}", a.GetName());
}
}
}
Related examples in the same category