#readwise # AssemblyLoadContext Class ![rw-book-cover](https://readwise-assets.s3.amazonaws.com/static/images/article0.00998d930354.png) ## Metadata - Author: [[docs.microsoft.com]] - Full Title: AssemblyLoadContext Class - URL: https://docs.microsoft.com/en-us/dotnet/api/system.runtime.loader.assemblyloadcontext ## Highlights - The AssemblyLoadContext represents a load context. Conceptually, a load context creates a scope for loading, resolving, and potentially unloading a set of assemblies. The AssemblyLoadContext exists primarily to provide assembly loading isolation. It allows multiple versions of the same assembly to be loaded within a single process. It replaces the isolation mechanisms provided by multiple AppDomain instances in .NET Framework. - Usage in the runtime The runtime implements two assembly load contexts: AssemblyLoadContext.Default represents the runtime's default context, which is used for the application main assembly and its static dependencies. The Assembly.LoadFile(String) method isolates the assemblies it loads by instantiating the most basic AssemblyLoadContext. It has a simplistic isolation scheme that loads each assembly in its own AssemblyLoadContext with no dependency resolution.