3 instantiations of MetadataLoadContext
Microsoft.Build (1)
TypeLoader.cs (1)
206_context = new(new PathAssemblyResolver(assembliesDictionary.Values));
MSBuild (1)
TypeLoader.cs (1)
206_context = new(new PathAssemblyResolver(assembliesDictionary.Values));
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
63_metadataLoadContext = new MetadataLoadContext(new PathAssemblyResolver(assemblyPaths), MscorlibReflectionAssemblyName);
42 references to MetadataLoadContext
Microsoft.Build (1)
TypeLoader.cs (1)
46private static MetadataLoadContext _context;
MSBuild (1)
TypeLoader.cs (1)
46private static MetadataLoadContext _context;
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
49private static MetadataLoadContext _metadataLoadContext = null;
System.Reflection.MetadataLoadContext (39)
System\Reflection\DefaultBinder.cs (2)
13private readonly MetadataLoadContext _loader; 16internal DefaultBinder(MetadataLoadContext loader)
System\Reflection\MetadataAssemblyResolver.cs (2)
7/// The base class for binding algorithms used by <see cref="System.Reflection.MetadataLoadContext"/>. 35public abstract Assembly? Resolve(MetadataLoadContext context, AssemblyName assemblyName);
System\Reflection\MetadataLoadContext.Apis.cs (7)
134throw new ObjectDisposedException(nameof(MetadataLoadContext)); 149throw new ObjectDisposedException(nameof(MetadataLoadContext)); 167throw new ObjectDisposedException(nameof(MetadataLoadContext)); 185throw new ObjectDisposedException(nameof(MetadataLoadContext)); 204throw new ObjectDisposedException(nameof(MetadataLoadContext)); 254throw new ObjectDisposedException(nameof(MetadataLoadContext)); 266throw new ObjectDisposedException(nameof(MetadataLoadContext));
System\Reflection\PathAssemblyResolver.cs (1)
55public override Assembly? Resolve(MetadataLoadContext context, AssemblyName assemblyName)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
19internal EcmaAssembly(MetadataLoadContext loader, PEReader peReader, MetadataReader reader, string location)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (2)
21protected RoAssembly(MetadataLoadContext loader, int assemblyFileCount) 218internal MetadataLoadContext Loader { get; }
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
86public MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
86public static CustomAttributeData? TryComputeMarshalAsCustomAttributeData(Func<MarshalAsAttribute> marshalAsAttributeComputer, MetadataLoadContext loader)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
101private MetadataLoadContext Loader => _module.Loader;
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
98private MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
84private MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\Fields\Ecma\EcmaField.cs (1)
83private MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\Fields\RoField.cs (1)
151private MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\General\CoreTypes.cs (1)
14internal CoreTypes(MetadataLoadContext loader, string? coreAssemblyName)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
59public static PrimitiveTypeCode GetEnumUnderlyingPrimitiveTypeCode(this Type enumType, MetadataLoadContext loader)
System\Reflection\TypeLoading\General\Ecma\GuardedPEReader.cs (2)
21private readonly MetadataLoadContext _loader; 27public GuardedPEReader(MetadataLoadContext loader, PEReader peReader, MetadataReader reader)
System\Reflection\TypeLoading\General\Helpers.cs (2)
306MetadataLoadContext loader = defaultAssembly.Loader; 391public static string? GetDisposedString(this MetadataLoadContext loader) => loader.IsDisposed ? SR.MetadataLoadContextDisposed : null;
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (1)
87private MetadataLoadContext Loader => GetEcmaModule().Loader;
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
154private MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\MethodBase\IRoMethodBase.cs (1)
11MetadataLoadContext Loader { get; }
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
130public MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
142internal MetadataLoadContext Loader => GetRoAssembly().Loader;
System\Reflection\TypeLoading\Parameters\Ecma\EcmaFatMethodParameter.cs (1)
69private MetadataLoadContext Loader => GetEcmaModule().Loader;
System\Reflection\TypeLoading\Parameters\RoFatMethodParameter.cs (1)
76private MetadataLoadContext Loader => GetRoMethodBase().Loader;
System\Reflection\TypeLoading\Parameters\RoMethodParameter.cs (1)
55private MetadataLoadContext Loader => GetRoMethodBase().Loader;
System\Reflection\TypeLoading\Properties\Ecma\EcmaProperty.cs (1)
102private MetadataLoadContext Loader => GetRoModule().Loader;
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
141private new MetadataLoadContext Loader => _module.Loader;
System\Reflection\TypeLoading\Types\RoType.cs (1)
394internal MetadataLoadContext Loader => GetRoModule().Loader;