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