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