System.Runtime.Loader 命名空间

提供接口和类,使开发人员能够影响运行时加载行为。 Provides interfaces and classes to allow developers the opportunity to influence runtime loading behavior.

AssemblyDependencyResolver

允许程序根据给定程序集的依赖关系将程序集和本机库解析为路径。Allows a program to resolve assemblies and native libraries to paths based on the dependencies of a given assembly.

AssemblyLoadContext

表示程序集加载范围的运行时概念。Represents the runtime's concept of a scope for assembly loading.

结构

AssemblyLoadContext.ContextualReflectionScope

提供专用于 EnterContextualReflection() 的返回类型。Provides a return type used exclusively for EnterContextualReflection(). 它将作为 IDisposableusing 块中使用。It is intended to be used as an IDisposable in a using block.