3rdparty/NRefactory/ICSharpCode.NRefactory.Cecil/CecilLoader.cs
/// <summary>
/// Given an assembly that was created by the CecilLoader with lazy-loading enabled,
/// this method will eagerly load all classes, and free any references to the source Cecil objects.
/// 
/// The intended usage pattern for this method is:
/// 1. use lazy-loading to improve the latency when new assemblies have to be loaded
/// 2. later, when the CPU is idle, call FinishLazyLoading() to free up the memory consumed by the Cecil objects
/// </summary>
Given an assembly that was created by the CecilLoader with lazy-loading enabled,
this method will eagerly load all classes, and free any references to the source Cecil objects.

The intended usage pattern for this method is:
1. use lazy-loading to improve the latency when new assemblies have to be loaded
2. later, when the CPU is idle, call FinishLazyLoading() to free up the memory consumed by the Cecil objects
Given an assembly that was created by the CecilLoader with lazy - loading enabled this method will eagerly load all classes and free any references to the source Cecil objects . The intended usage pattern for this method is : 1 . use lazy - loading to improve the latency when new assemblies have to be loaded 2 . later when the CPU is idle call FinishLazyLoading () to free up the memory consumed by the Cecil objects
public static void FinishLazyLoading(IUnresolvedAssembly assembly)
		{
			if (assembly == null)
				throw new ArgumentNullException("assembly");
			foreach (var type in assembly.TopLevelTypeDefinitions) {
				var lctd = type as LazyCecilTypeDefinition;
				if (lctd != null)
					lctd.InitAndReleaseReferences();
			}
		}
public static void FinishLazyLoading ( IUnresolvedAssembly assembly ) { if ( assembly == null ) throw new ArgumentNullException ( " " ) ; foreach ( var type in assembly . TopLevelTypeDefinitions ) { var lctd = type as LazyCecilTypeDefinition ; if ( lctd != null ) lctd . InitAndReleaseReferences ( ) ; } }
Given an assembly that was created by the CecilLoader with lazy-loading enabled,
this method will eagerly load all classes, and free any references to the source Cecil objects.
Given an assembly that was created by the CecilLoader with lazy - loading enabled this method will eagerly load all classes and free any references to the source Cecil objects .
assembly
IUnresolvedAssembly