94 references to RuntimeModule
System.Private.CoreLib (94)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\QCallHandles.cs (1)
84internal QCallModule(ref Reflection.RuntimeModule module)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
189internal RuntimeModule GetRuntimeModule() => RuntimeTypeHandle.GetModule(this);
src\System\Reflection\Emit\DynamicILGenerator.cs (2)
24internal void GetCallableMethod(RuntimeModule module, DynamicMethod dm) 884internal 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)
248internal static unsafe MarshalAsAttribute GetMarshalAs(ConstArray nativeType, RuntimeModule scope) 323private static extern IntPtr GetMetadataImport(RuntimeModule module); 325internal MetadataImport(RuntimeModule module)
src\System\Reflection\Metadata\RuntimeTypeMetadataUpdateHandler.cs (1)
20internal static bool IsMetadataUpdateDeleted(RuntimeModule module, int memberToken)
src\System\Reflection\RtFieldInfo.cs (1)
64internal override RuntimeModule GetRuntimeModule()
src\System\Reflection\RuntimeAssembly.cs (9)
431RuntimeModule? m = (RuntimeModule?)GetModule(name); 454fs[i] = new FileStream(((RuntimeModule)m[i]).GetFullyQualifiedName(), 679private RuntimeModule[] GetModulesInternal(bool loadIfNotFound, 682RuntimeModule[]? modules = null; 699private RuntimeModule GetManifestModule() 704static RuntimeModule GetManifestModuleWorker(RuntimeAssembly assembly) 706RuntimeModule? module = null; 713private 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 (30)
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) 1230return IsCustomAttributeDefined((assembly.ManifestModule as RuntimeModule)!, RuntimeAssembly.GetToken(assembly), caType); 1233internal static bool IsDefined(RuntimeModule module, RuntimeType caType) 1392return GetCustomAttributes((assembly.ManifestModule as RuntimeModule)!, assemblyToken, 0, caType); 1395internal static object[] GetCustomAttributes(RuntimeModule module, RuntimeType caType) 1405internal static bool IsAttributeDefined(RuntimeModule decoratedModule, int decoratedMetadataToken, int attributeCtorToken) 1411RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType? attributeFilterType) 1417RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType? attributeFilterType, int attributeCtorToken, bool mustBeInheritable) 1470RuntimeModule decoratedModule, int decoratedMetadataToken, int pcaCount, RuntimeType attributeFilterType) 1490RuntimeModule decoratedModule, int decoratedMetadataToken, 1621RuntimeModule decoratedModule, 1767RuntimeModule decoratedModule = decoratedAttribute.GetRuntimeModule(); 1871private static object CreateCustomAttributeInstance(RuntimeModule module, RuntimeType type, IRuntimeMethodInfo ctor, ref IntPtr blob, IntPtr blobEnd, out int namedArgs) 1901RuntimeModule module, ref IntPtr blobStart, IntPtr blobEnd, out string name, out bool isProperty, out RuntimeType? type, out object? value) 2183RuntimeModule module = method.Module.ModuleHandle.GetRuntimeModule(); 2240private static MarshalAsAttribute? GetMarshalAsCustomAttribute(int token, RuntimeModule scope) 2254RuntimeModule module = field.GetRuntimeModule(); 2287RuntimeModule module = type.GetRuntimeModule();
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)
236internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\RuntimeModule.cs (3)
410RuntimeModule thisAsLocal = this; 425RuntimeModule thisAsLocal = this; 492RuntimeModule 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)
112internal static RuntimeType GetTypeReferencedByCustomAttribute(string typeName, RuntimeModule scope)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
191RuntimeModule rm = module.GetRuntimeModule() ??
src\System\RuntimeHandles.cs (17)
403internal static RuntimeModule GetModule(RuntimeType type) 408static RuntimeModule GetModuleWorker(RuntimeType type) 410RuntimeModule? module = null; 417private static extern RuntimeModule? GetModuleIfExists(RuntimeType type); 1756private readonly RuntimeModule m_ptr; 1760internal ModuleHandle(RuntimeModule module) 1766internal RuntimeModule GetRuntimeModule() 1804internal static IRuntimeMethodInfo GetDynamicMethod(RuntimeModule module, string name, byte[] sig, Resolver resolver) 1821internal static int GetToken(RuntimeModule module) 1824private static void ValidateModulePointer(RuntimeModule module) 1846RuntimeModule module = GetRuntimeModule(); 1901RuntimeModule module = GetRuntimeModule(); 1916internal static RuntimeMethodHandleInternal ResolveMethodHandleInternal(RuntimeModule module, int methodToken, ReadOnlySpan<IntPtr> typeInstantiationContext, ReadOnlySpan<IntPtr> methodInstantiationContext) 1952RuntimeModule module = GetRuntimeModule(); 2002internal static RuntimeType GetModuleType(RuntimeModule module) 2013internal static void GetPEKind(RuntimeModule module, out PortableExecutableKinds peKind, out ImageFileMachine machine) 2025internal static int GetMDStreamVersion(RuntimeModule module)
src\System\RuntimeType.CoreCLR.cs (6)
936RuntimeModule declaringModule = declaringType.GetRuntimeModule(); 1184RuntimeModule declaringModule = declaringType.GetRuntimeModule(); 1296RuntimeModule declaringModule = declaringType.GetRuntimeModule(); 1573RuntimeModule module = ((RuntimeType)type).GetRuntimeModule(); 1799internal static MethodBase? GetMethodBase(RuntimeModule scope, int typeMetadataToken) 3573RuntimeModule module = GetRuntimeModule();