76 references to RuntimeModule
System.Private.CoreLib (76)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\QCallHandles.cs (1)
87internal QCallModule(ref Reflection.RuntimeModule module)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
170internal RuntimeModule GetRuntimeModule() => RuntimeTypeHandle.GetModule(this);
src\System\Reflection\Emit\DynamicILGenerator.cs (2)
24internal void GetCallableMethod(RuntimeModule module, DynamicMethod dm) 862internal void GetCallableMethod(RuntimeModule module, DynamicMethod dm)
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (2)
74_dynamicILInfo.GetCallableMethod((RuntimeModule)_module, this); 80_ilGenerator.GetCallableMethod((RuntimeModule)_module, this);
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (1)
100_manifestModuleBuilder = new RuntimeModuleBuilder(this, (RuntimeModule)InternalAssembly.ManifestModule);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (7)
53internal readonly RuntimeModule _internalModule; 65internal RuntimeModuleBuilder(RuntimeAssemblyBuilder assemblyBuilder, RuntimeModule internalModule) 110RuntimeModule refedRuntimeModule = GetRuntimeModuleFromModule(refedModule); 220RuntimeModule refedRuntimeModule = GetRuntimeModuleFromModule(refedModule); 290internal RuntimeModule InternalModule => _internalModule; 294internal static RuntimeModule GetRuntimeModuleFromModule(Module? m) 301return (m as RuntimeModule)!;
src\System\Reflection\MdFieldInfo.cs (1)
45internal override RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\MdImport.cs (3)
244internal static unsafe MarshalAsAttribute GetMarshalAs(ConstArray nativeType, RuntimeModule scope) 305private static extern IntPtr GetMetadataImport(RuntimeModule module); 307internal MetadataImport(RuntimeModule module)
src\System\Reflection\RtFieldInfo.cs (1)
64internal override RuntimeModule GetRuntimeModule()
src\System\Reflection\RuntimeAssembly.cs (9)
439RuntimeModule? m = (RuntimeModule?)GetModule(name); 462fs[i] = new FileStream(((RuntimeModule)m[i]).GetFullyQualifiedName(), 687private RuntimeModule[] GetModulesInternal(bool loadIfNotFound, 690RuntimeModule[]? modules = null; 707private RuntimeModule GetManifestModule() 712static RuntimeModule GetManifestModuleWorker(RuntimeAssembly assembly) 714RuntimeModule? module = null; 721private static extern RuntimeModule? GetManifestModule(RuntimeAssembly assembly);
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
174internal RuntimeModule GetRuntimeModule() { return RuntimeTypeHandle.GetModule(m_declaringType); }
src\System\Reflection\RuntimeCustomAttributeData.cs (13)
69internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeModule target) 85return GetCustomAttributes((RuntimeModule)target.ManifestModule, RuntimeAssembly.GetToken(target)); 183private static IList<CustomAttributeData> GetCustomAttributes(RuntimeModule module, int tkTarget) 200internal static CustomAttributeRecord[] GetCustomAttributeRecords(RuntimeModule module, int targetToken) 238private readonly RuntimeModule m_scope = null!; 251private RuntimeCustomAttributeData(RuntimeModule scope, MetadataToken caCtorToken, in ConstArray blob) 543private static RuntimeType ResolveType(RuntimeModule scope, string typeName) 551internal CustomAttributeTypedArgument(RuntimeModule scope, CustomAttributeEncodedArgument encodedArg) 667RuntimeModule customAttributeModule) 707RuntimeModule module) 721RuntimeModule module) 809RuntimeModule module) 877private static CustomAttributeType ParseCustomAttributeType(ref CustomAttributeDataParser parser, RuntimeModule module)
src\System\Reflection\RuntimeEventInfo.cs (1)
131internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\RuntimeFieldInfo.cs (1)
36internal abstract RuntimeModule GetRuntimeModule();
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
234internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\RuntimeModule.cs (3)
410RuntimeModule thisAsLocal = this; 424RuntimeModule thisAsLocal = this; 487RuntimeModule thisAsLocal = this;
src\System\Reflection\RuntimeParameterInfo.cs (1)
417internal RuntimeModule? GetRuntimeModule()
src\System\Reflection\RuntimePropertyInfo.cs (2)
38RuntimeModule module = declaredType.GetRuntimeModule(); 182internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
108internal static RuntimeType GetTypeReferencedByCustomAttribute(string typeName, RuntimeModule scope)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
190RuntimeModule rm = module.GetRuntimeModule() ??
src\System\RuntimeHandles.cs (17)
394internal static RuntimeModule GetModule(RuntimeType type) 399static RuntimeModule GetModuleWorker(RuntimeType type) 401RuntimeModule? module = null; 408private static extern RuntimeModule? GetModuleIfExists(RuntimeType type); 1724private readonly RuntimeModule m_ptr; 1728internal ModuleHandle(RuntimeModule module) 1734internal RuntimeModule GetRuntimeModule() 1772internal static IRuntimeMethodInfo GetDynamicMethod(RuntimeModule module, string name, byte[] sig, Resolver resolver) 1789internal static int GetToken(RuntimeModule module) 1792private static void ValidateModulePointer(RuntimeModule module) 1814RuntimeModule module = GetRuntimeModule(); 1869RuntimeModule module = GetRuntimeModule(); 1884internal static RuntimeMethodHandleInternal ResolveMethodHandleInternal(RuntimeModule module, int methodToken, ReadOnlySpan<IntPtr> typeInstantiationContext, ReadOnlySpan<IntPtr> methodInstantiationContext) 1920RuntimeModule module = GetRuntimeModule(); 1970internal static RuntimeType GetModuleType(RuntimeModule module) 1981internal static void GetPEKind(RuntimeModule module, out PortableExecutableKinds peKind, out ImageFileMachine machine) 1993internal static int GetMDStreamVersion(RuntimeModule module)
src\System\RuntimeType.CoreCLR.cs (6)
913RuntimeModule module = declaringType.GetRuntimeModule(); 1154RuntimeModule module = declaringType.GetRuntimeModule(); 1261RuntimeModule module = declaringType.GetRuntimeModule(); 1546RuntimeModule module = ((RuntimeType)type).GetRuntimeModule(); 1772internal static MethodBase? GetMethodBase(RuntimeModule scope, int typeMetadataToken) 3540RuntimeModule module = GetRuntimeModule();