132 references to RuntimeAssembly
System.Private.CoreLib (132)
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (2)
117
RuntimeAssembly
assembly;
125
assembly =
RuntimeAssembly
.InternalLoad(assemblyName, ref stackMark, AssemblyLoadContext.CurrentContextualReflectionContext);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
236
if (assembly is not
RuntimeAssembly
)
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
272
return
RuntimeAssembly
.InternalGetSatelliteAssembly(mainAssembly, culture, version, throwOnFileNotFound: false);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (2)
191
if (assembly is not
RuntimeAssembly
)
207
if (assembly is not
RuntimeAssembly
)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\QCallHandles.cs (1)
103
internal QCallAssembly(ref Reflection.
RuntimeAssembly
assembly)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (3)
89
if (assembly is not
RuntimeAssembly
)
124
if (assembly is not
RuntimeAssembly
)
206
if (assembly is not
RuntimeAssembly
)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (9)
24
private
RuntimeAssembly
? _currAssembly;
29
public
RuntimeAssembly
CurrentAssembly
192
RuntimeAssembly
? startingAssembly;
195
startingAssembly = (
RuntimeAssembly
?)Assembly.Load(entryAssemblyName);
199
startingAssembly = (
RuntimeAssembly
?)Assembly.GetEntryAssembly();
283
private
RuntimeAssembly
_fallbackAssembly;
287
public DelayedType(TypeNameUtf8 typeNameUtf8,
RuntimeAssembly
fallbackAssembly)
334
public void Add(string key, TypeNameUtf8 targetType,
RuntimeAssembly
fallbackAssembly)
412
RuntimeAssembly
fallbackAssembly)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (28)
328
return
RuntimeAssembly
.InternalLoad(assemblyName, ref stackMark, this);
608
private static
RuntimeAssembly
? Resolve(IntPtr gchAssemblyLoadContext, AssemblyName assemblyName)
643
private static
RuntimeAssembly
ValidateAssemblyNameWithSimpleName(Assembly assembly, string? requestedSimpleName)
650
RuntimeAssembly
? runtimeAssembly = GetRuntimeAssembly(assembly);
664
private
RuntimeAssembly
? ResolveUsingLoad(AssemblyName assemblyName)
673
private
RuntimeAssembly
? ResolveUsingEvent(AssemblyName assemblyName)
683
private static void OnAssemblyLoad(
RuntimeAssembly
assembly)
688
internal static
RuntimeAssembly
? OnResourceResolve(
RuntimeAssembly
? assembly, string resourceName)
693
internal static
RuntimeAssembly
? OnTypeResolve(
RuntimeAssembly
? assembly, string typeName)
698
private static
RuntimeAssembly
? OnAssemblyResolve(
RuntimeAssembly
? assembly, string assemblyFullName)
710
private static
RuntimeAssembly
? InvokeResolveEvent(ResolveEventHandler? eventHandler,
RuntimeAssembly
? assembly, string name)
730
RuntimeAssembly
? ret = GetRuntimeAssembly(asm);
743
private static unsafe void OnAssemblyLoad(
RuntimeAssembly
* pAssembly, Exception* pException)
756
private static unsafe void OnTypeResolve(
RuntimeAssembly
* pAssembly, byte* typeName,
RuntimeAssembly
* ppResult, Exception* pException)
770
private static unsafe void OnResourceResolve(
RuntimeAssembly
* pAssembly, byte* resourceName,
RuntimeAssembly
* ppResult, Exception* pException)
784
private static unsafe void OnAssemblyResolve(
RuntimeAssembly
* pAssembly, char* assemblyFullName,
RuntimeAssembly
* ppResult, Exception* pException)
844
private
RuntimeAssembly
? ResolveSatelliteAssembly(AssemblyName assemblyName)
856
RuntimeAssembly
parentAssembly = (
RuntimeAssembly
)LoadFromAssemblyName(new AssemblyName(parentAssemblyName));
879
RuntimeAssembly
? asm = exists ? (
RuntimeAssembly
?)parentALC.LoadFromAssemblyPath(assemblyPath) : null;
src\System\Reflection\Assembly.CoreCLR.cs (7)
22
return
RuntimeAssembly
.InternalLoad(assemblyString, ref stackMark, AssemblyLoadContext.CurrentContextualReflectionContext);
37
return
RuntimeAssembly
.InternalLoad(partialName, ref stackMark, AssemblyLoadContext.CurrentContextualReflectionContext);
53
return
RuntimeAssembly
.InternalLoad(assemblyRef, ref stackMark, AssemblyLoadContext.CurrentContextualReflectionContext);
59
internal static
RuntimeAssembly
GetExecutingAssembly(ref StackCrawlMark stackMark)
61
RuntimeAssembly
? retAssembly = null;
87
private static
RuntimeAssembly
? GetEntryAssemblyInternal()
89
RuntimeAssembly
? entryAssembly = null;
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (4)
69
private readonly
RuntimeAssembly
_internalAssembly;
78
internal
RuntimeAssembly
InternalAssembly => _internalAssembly;
122
private static unsafe
RuntimeAssembly
CreateDynamicAssembly(AssemblyLoadContext assemblyLoadContext, AssemblyName name, AssemblyBuilderAccess access)
124
RuntimeAssembly
? retAssembly = null;
src\System\Reflection\Metadata\AssemblyExtensions.cs (3)
38
var
runtimeAssembly = assembly as
RuntimeAssembly
;
44
RuntimeAssembly
rtAsm = runtimeAssembly;
src\System\Reflection\Metadata\MetadataUpdater.cs (2)
39
if (assembly is not
RuntimeAssembly
runtimeAssembly)
47
RuntimeAssembly
rtAsm = runtimeAssembly;
src\System\Reflection\RuntimeAssembly.cs (34)
42
private readonly
RuntimeAssembly
_manifestAssembly;
44
internal unsafe ManifestResourceStream(
RuntimeAssembly
manifestAssembly, byte* pointer, long length, long capacity, FileAccess access) : base(pointer, length, capacity, access)
78
RuntimeAssembly
runtimeAssembly = this;
152
RuntimeAssembly
runtimeAssembly = this;
169
RuntimeAssembly
runtimeAssembly = this;
196
RuntimeAssembly
runtimeAssembly = this;
244
RuntimeAssembly
runtimeAssembly = this;
292
RuntimeAssembly
runtimeAssembly = this;
346
internal static
RuntimeAssembly
InternalLoad(string assemblyName, ref StackCrawlMark stackMark, AssemblyLoadContext? assemblyLoadContext = null)
349
internal static unsafe
RuntimeAssembly
InternalLoad(AssemblyName assemblyName,
352
RuntimeAssembly
? requestingAssembly = null,
355
RuntimeAssembly
? retAssembly = null;
415
RuntimeAssembly
runtimeAssembly = this;
470
RuntimeAssembly
runtimeAssembly = this;
483
RuntimeAssembly
runtimeAssembly = this;
496
RuntimeAssembly
? retAssembly = null;
498
RuntimeAssembly
runtimeAssembly = this;
519
RuntimeAssembly
runtimeAssembly = this;
534
RuntimeAssembly
runtimeAssembly = this;
554
RuntimeAssembly
runtimeAssembly = this;
566
RuntimeAssembly
runtimeAssembly = this;
593
RuntimeAssembly
runtimeAssembly = this;
604
RuntimeAssembly
runtimeAssembly = this;
613
RuntimeAssembly
runtimeAssembly = this;
623
RuntimeAssembly
runtimeAssembly = this;
648
RuntimeAssembly
runtimeAssembly = (
RuntimeAssembly
)assembly;
658
RuntimeAssembly
? retAssembly = InternalLoad(an, ref unused, requestingAssembly: runtimeAssembly, throwOnFileNotFound: throwOnFileNotFound);
683
RuntimeAssembly
runtimeAssembly = this;
704
static RuntimeModule GetManifestModuleWorker(
RuntimeAssembly
assembly)
713
private static extern RuntimeModule? GetManifestModule(
RuntimeAssembly
assembly);
719
private static extern int GetTokenInternal(
RuntimeAssembly
assembly);
721
internal static int GetToken(
RuntimeAssembly
assembly)
738
RuntimeAssembly
runtimeAssembly = this;
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
175
internal
RuntimeAssembly
GetRuntimeAssembly() { return GetRuntimeModule().GetRuntimeAssembly(); }
src\System\Reflection\RuntimeCustomAttributeData.cs (6)
79
internal static IList<CustomAttributeData> GetCustomAttributesInternal(
RuntimeAssembly
target)
85
return GetCustomAttributes((RuntimeModule)target.ManifestModule,
RuntimeAssembly
.GetToken(target));
1224
internal static bool IsDefined(
RuntimeAssembly
assembly, RuntimeType caType)
1230
return IsCustomAttributeDefined((assembly.ManifestModule as RuntimeModule)!,
RuntimeAssembly
.GetToken(assembly), caType);
1384
internal static object[] GetCustomAttributes(
RuntimeAssembly
assembly, RuntimeType caType)
1391
int assemblyToken =
RuntimeAssembly
.GetToken(assembly);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
237
internal
RuntimeAssembly
GetRuntimeAssembly() { return GetRuntimeModule().GetRuntimeAssembly(); }
src\System\Reflection\RuntimeModule.cs (2)
19
private readonly
RuntimeAssembly
m_runtimeAssembly;
511
internal
RuntimeAssembly
GetRuntimeAssembly()
src\System\Reflection\TypeNameResolver.CoreCLR.cs (11)
116
RuntimeAssembly
requestingAssembly = scope.GetRuntimeAssembly();
134
internal static unsafe RuntimeType? GetTypeHelper(char* pTypeName,
RuntimeAssembly
? requestingAssembly,
141
internal static RuntimeType? GetTypeHelper(ReadOnlySpan<char> typeName,
RuntimeAssembly
? requestingAssembly,
187
assembly =
RuntimeAssembly
.InternalLoad(assemblyName, ref Unsafe.NullRef<StackCrawlMark>(),
189
requestingAssembly: (
RuntimeAssembly
?)_requestingAssembly, throwOnFileNotFound: _throwOnError);
286
if (assembly is
RuntimeAssembly
runtimeAssembly)
346
RuntimeAssembly
? requestingAssembly = (
RuntimeAssembly
?)_requestingAssembly;
354
RuntimeAssembly
coreLib = (
RuntimeAssembly
)typeof(object).Assembly;
362
RuntimeAssembly
? resolvedAssembly = AssemblyLoadContext.OnTypeResolve(requestingAssembly, parsedName.FullName);
src\System\Runtime\InteropServices\NativeLibrary.CoreCLR.cs (2)
13
RuntimeAssembly
rtAsm = (
RuntimeAssembly
)assembly;
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (7)
64
private
RuntimeAssembly
InternalLoadFromPath(string? assemblyPath, string? nativeImagePath)
66
RuntimeAssembly
? loadedAssembly = null;
74
RuntimeAssembly
? loadedAssembly = null;
135
RuntimeAssembly
? rtAsm = GetRuntimeAssembly(assembly);
141
RuntimeAssembly
runtimeAssembly = rtAsm;
170
private static
RuntimeAssembly
? GetRuntimeAssembly(Assembly? asm)
174
asm is
RuntimeAssembly
rtAssembly ? rtAssembly :
src\System\RuntimeHandles.cs (5)
384
internal static
RuntimeAssembly
GetAssembly(RuntimeType type)
389
static
RuntimeAssembly
GetAssemblyWorker(RuntimeType type)
391
RuntimeAssembly
? assembly = null;
398
private static extern
RuntimeAssembly
? GetAssemblyIfExists(RuntimeType type);
868
internal static void RegisterCollectibleTypeDependency(RuntimeType type,
RuntimeAssembly
? assembly)