This assembly loader loads assemblies externally for reflection only.

Namespace:  Gallio.Common.Reflection
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public class ReflectionOnlyAssemblyLoader
Visual Basic (Declaration)
Public Class ReflectionOnlyAssemblyLoader

Remarks

This implementation ensures that the assembly files do not remain locked on disk and are not cached in memory outside of the scope of the loader. Consequently the Garbage Collector will automatically reclaim the loader and its contents when they become unreferenced.

In contrast, that of the standard .Net reflection-only load context () does not allow assemblies to be reclaimed until the AppDomain is unloaded.

The loader considers all assemblies in the specified search path as well as any that can be located using the current AppDomain's assembly resolvers.

Inheritance Hierarchy

System..::.Object
  Gallio.Common.Reflection..::.ReflectionOnlyAssemblyLoader

See Also