127 references to RuntimeAssembly
System.Private.CoreLib (127)
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)
106internal 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 (8)
24private RuntimeAssembly? _currAssembly; 29public RuntimeAssembly CurrentAssembly 192RuntimeAssembly? startingAssembly = (RuntimeAssembly?)Assembly.GetEntryAssembly(); 274private RuntimeAssembly _fallbackAssembly; 278public DelayedType(TypeNameUtf8 typeNameUtf8, RuntimeAssembly fallbackAssembly) 328public void Add(string key, TypeNameUtf8 targetType, RuntimeAssembly fallbackAssembly) 407RuntimeAssembly fallbackAssembly)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (21)
327return RuntimeAssembly.InternalLoad(assemblyName, ref stackMark, this); 607private static RuntimeAssembly? Resolve(IntPtr gchAssemblyLoadContext, AssemblyName assemblyName) 642private static RuntimeAssembly ValidateAssemblyNameWithSimpleName(Assembly assembly, string? requestedSimpleName) 649RuntimeAssembly? runtimeAssembly = GetRuntimeAssembly(assembly); 663private RuntimeAssembly? ResolveUsingLoad(AssemblyName assemblyName) 672private RuntimeAssembly? ResolveUsingEvent(AssemblyName assemblyName) 683private static void OnAssemblyLoad(RuntimeAssembly assembly) 689internal static RuntimeAssembly? OnResourceResolve(RuntimeAssembly assembly, string resourceName) 695internal static RuntimeAssembly? OnTypeResolve(RuntimeAssembly? assembly, string typeName) 701private static RuntimeAssembly? OnAssemblyResolve(RuntimeAssembly? assembly, string assemblyFullName) 713private static RuntimeAssembly? InvokeResolveEvent(ResolveEventHandler? eventHandler, RuntimeAssembly? assembly, string name) 733RuntimeAssembly? ret = GetRuntimeAssembly(asm); 746private RuntimeAssembly? ResolveSatelliteAssembly(AssemblyName assemblyName) 758RuntimeAssembly parentAssembly = (RuntimeAssembly)LoadFromAssemblyName(new AssemblyName(parentAssemblyName)); 781RuntimeAssembly? 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 (35)
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; 262RuntimeAssembly runtimeAssembly = this; 291RuntimeAssembly runtimeAssembly = this; 345internal static RuntimeAssembly InternalLoad(string assemblyName, ref StackCrawlMark stackMark, AssemblyLoadContext? assemblyLoadContext = null) 348internal static unsafe RuntimeAssembly InternalLoad(AssemblyName assemblyName, 351RuntimeAssembly? requestingAssembly = null, 354RuntimeAssembly? retAssembly = null; 414RuntimeAssembly runtimeAssembly = this; 469RuntimeAssembly runtimeAssembly = this; 482RuntimeAssembly runtimeAssembly = this; 495RuntimeAssembly? retAssembly = null; 497RuntimeAssembly runtimeAssembly = this; 518RuntimeAssembly runtimeAssembly = this; 533RuntimeAssembly runtimeAssembly = this; 553RuntimeAssembly runtimeAssembly = this; 565RuntimeAssembly runtimeAssembly = this; 592RuntimeAssembly runtimeAssembly = this; 603RuntimeAssembly runtimeAssembly = this; 612RuntimeAssembly runtimeAssembly = this; 622RuntimeAssembly runtimeAssembly = this; 647RuntimeAssembly runtimeAssembly = (RuntimeAssembly)assembly; 657RuntimeAssembly? retAssembly = InternalLoad(an, ref unused, requestingAssembly: runtimeAssembly, throwOnFileNotFound: throwOnFileNotFound); 682RuntimeAssembly runtimeAssembly = this; 703static RuntimeModule GetManifestModuleWorker(RuntimeAssembly assembly) 712private static extern RuntimeModule? GetManifestModule(RuntimeAssembly assembly); 718private static extern int GetTokenInternal(RuntimeAssembly assembly); 720internal static int GetToken(RuntimeAssembly assembly) 737RuntimeAssembly 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)
235internal 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 (9)
64private RuntimeAssembly InternalLoadFromPath(string? assemblyPath, string? nativeImagePath) 66RuntimeAssembly? loadedAssembly = null; 74RuntimeAssembly? loadedAssembly = null; 113private static RuntimeAssembly? ResolveSatelliteAssembly(IntPtr gchAssemblyLoadContext, AssemblyName assemblyName) 139private static RuntimeAssembly? ResolveUsingResolvingEvent(IntPtr gchAssemblyLoadContext, AssemblyName assemblyName) 154RuntimeAssembly? rtAsm = GetRuntimeAssembly(assembly); 160RuntimeAssembly runtimeAssembly = rtAsm; 189private static RuntimeAssembly? GetRuntimeAssembly(Assembly? asm) 193asm 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); 871internal static void RegisterCollectibleTypeDependency(RuntimeType type, RuntimeAssembly? assembly)