70 references to RuntimeModule
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\QCallHandles.cs (1)
54internal 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) 880internal 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)
105_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); 293internal RuntimeModule InternalModule => _internalModule; 297internal static RuntimeModule GetRuntimeModuleFromModule(Module? m) 304return (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 unsafe IntPtr GetMetadataImport(RuntimeModule module); 307internal MetadataImport(RuntimeModule module)
src\System\Reflection\RtFieldInfo.cs (1)
64internal override RuntimeModule GetRuntimeModule()
src\System\Reflection\RuntimeAssembly.cs (6)
449RuntimeModule? m = (RuntimeModule?)GetModule(name); 472fs[i] = new FileStream(((RuntimeModule)m[i]).GetFullyQualifiedName(), 689private RuntimeModule[] GetModulesInternal(bool loadIfNotFound, 692RuntimeModule[]? modules = null; 710internal 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.GetNativeHandle())); 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) 544private static RuntimeType ResolveType(RuntimeModule scope, string typeName) 552internal CustomAttributeTypedArgument(RuntimeModule scope, CustomAttributeEncodedArgument encodedArg) 668RuntimeModule customAttributeModule) 708RuntimeModule module) 722RuntimeModule module) 810RuntimeModule module) 878private 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)
417RuntimeModule thisAsLocal = this; 431RuntimeModule thisAsLocal = this; 494RuntimeModule 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)
92RuntimeModule rm = module.GetRuntimeModule();
src\System\RuntimeHandles.cs (14)
325internal static extern RuntimeModule GetModule(RuntimeType type); 1236private readonly RuntimeModule m_ptr; 1240internal ModuleHandle(RuntimeModule module) 1246internal RuntimeModule GetRuntimeModule() 1277internal static extern IRuntimeMethodInfo GetDynamicMethod(Reflection.Emit.DynamicMethod method, RuntimeModule module, string name, byte[] sig, Resolver resolver); 1280internal static extern int GetToken(RuntimeModule module); 1282private static void ValidateModulePointer(RuntimeModule module) 1304RuntimeModule module = GetRuntimeModule(); 1359RuntimeModule module = GetRuntimeModule(); 1374internal static RuntimeMethodHandleInternal ResolveMethodHandleInternal(RuntimeModule module, int methodToken, ReadOnlySpan<IntPtr> typeInstantiationContext, ReadOnlySpan<IntPtr> methodInstantiationContext) 1410RuntimeModule module = GetRuntimeModule(); 1460internal static RuntimeType GetModuleType(RuntimeModule module) 1471internal static void GetPEKind(RuntimeModule module, out PortableExecutableKinds peKind, out ImageFileMachine machine) 1480internal static extern int GetMDStreamVersion(RuntimeModule module);
src\System\RuntimeType.CoreCLR.cs (6)
935RuntimeModule module = declaringType.GetRuntimeModule(); 1179RuntimeModule module = declaringType.GetRuntimeModule(); 1293RuntimeModule module = declaringType.GetRuntimeModule(); 1578RuntimeModule module = ((RuntimeType)type).GetRuntimeModule(); 1782internal static MethodBase? GetMethodBase(RuntimeModule scope, int typeMetadataToken) 3521RuntimeModule module = GetRuntimeModule();