21 references to GetRuntimeModule
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
276_module = rtOwner.GetRuntimeModule();
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
25public override Module Module => GetRuntimeModule();
src\System\Reflection\MdFieldInfo.cs (1)
45internal override RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\RuntimeCustomAttributeData.cs (7)
22IList<CustomAttributeData> cad = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken); 1126if (IsCustomAttributeDefined(type.GetRuntimeModule(), type.MetadataToken, caType)) 1136if (IsCustomAttributeDefined(type.GetRuntimeModule(), type.MetadataToken, caType, 0, inherit)) 1262object[] attributes = GetCustomAttributes(type.GetRuntimeModule(), type.MetadataToken, pcas.Count, caType); 1275AddCustomAttributes(ref result, type.GetRuntimeModule(), type.MetadataToken, caType, mustBeInheritable, result); 1767RuntimeModule decoratedModule = decoratedAttribute.GetRuntimeModule(); 2286RuntimeModule module = type.GetRuntimeModule();
src\System\Reflection\RuntimeEventInfo.cs (2)
34MetadataImport scope = declaredType.GetRuntimeModule().MetadataImport; 131internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
234internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\Reflection\RuntimeParameterInfo.cs (1)
51MetadataImport scope = RuntimeMethodHandle.GetDeclaringType(methodHandle).GetRuntimeModule().MetadataImport;
src\System\Reflection\RuntimePropertyInfo.cs (2)
38RuntimeModule module = declaredType.GetRuntimeModule(); 182internal RuntimeModule GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
src\System\RuntimeType.CoreCLR.cs (5)
913RuntimeModule module = declaringType.GetRuntimeModule(); 1154RuntimeModule module = declaringType.GetRuntimeModule(); 1261RuntimeModule module = declaringType.GetRuntimeModule(); 1546RuntimeModule module = ((RuntimeType)type).GetRuntimeModule(); 3540RuntimeModule module = GetRuntimeModule();