37 references to MetadataImport
System.Private.CoreLib (37)
src\System\Reflection\MdFieldInfo.cs (3)
42public override string Name => m_name ??= GetRuntimeModule().MetadataImport.GetName(m_tkField).ToString(); 94object? value = MdConstant.GetValue(GetRuntimeModule().MetadataImport, m_tkField, FieldType.TypeHandle, raw); 115ConstArray fieldMarshal = GetRuntimeModule().MetadataImport.GetSigOfFieldDef(m_tkField);
src\System\Reflection\RuntimeAssembly.cs (1)
747MetadataImport scope = GetManifestModule().MetadataImport;
src\System\Reflection\RuntimeCustomAttributeData.cs (2)
202MetadataImport scope = module.MetadataImport; 258MetadataImport metadataScope = m_scope.MetadataImport;
src\System\Reflection\RuntimeEventInfo.cs (1)
34MetadataImport scope = declaredType.GetRuntimeModule().MetadataImport;
src\System\Reflection\RuntimeModule.cs (17)
51if (!MetadataImport.IsValidToken(tk)) 61signature = MetadataImport.GetMemberRefProps(metadataToken); 63signature = MetadataImport.GetSignatureFromToken(metadataToken); 87ConstArray sig = MetadataImport.GetMemberRefProps(tk); 113MetadataToken tkDeclaringType = new MetadataToken(MetadataImport.GetParentToken(tk)); 116tkDeclaringType = new MetadataToken(MetadataImport.GetParentToken(tkDeclaringType)); 134if (!MetadataImport.IsValidToken(tk) || !tk.IsFieldDef) 139string fieldName = MetadataImport.GetName(tk).ToString(); 140tkDeclaringType = MetadataImport.GetParentToken(tk); 164if (!MetadataImport.IsValidToken(tk)) 188ConstArray sig = MetadataImport.GetMemberRefProps(tk); 202int tkDeclaringType = MetadataImport.GetParentToken(metadataToken); 272if (!MetadataImport.IsValidToken(tk)) 276ConstArray sig = MetadataImport.GetMemberRefProps(tk); 303if (!MetadataImport.IsValidToken(tk)) 307string str = MetadataImport.GetUserString(metadataToken) ?? 440MetadataImport.GetScopeProps(out Guid mvid);
src\System\Reflection\RuntimeParameterInfo.cs (1)
51MetadataImport scope = RuntimeMethodHandle.GetDeclaringType(methodHandle).GetRuntimeModule().MetadataImport;
src\System\Reflection\RuntimePropertyInfo.cs (3)
39MetadataImport scope = module.MetadataImport; 70GetRuntimeModule().MetadataImport.GetPropertyProps( 214object? defaultValue = MdConstant.GetValue(GetRuntimeModule().MetadataImport, m_token, PropertyType.TypeHandle, raw);
src\System\RuntimeHandles.cs (3)
1790if (!module.MetadataImport.IsValidToken(typeToken)) 1843if (!module.MetadataImport.IsValidToken(methodToken)) 1896if (!module.MetadataImport.IsValidToken(fieldToken))
src\System\RuntimeType.CoreCLR.cs (6)
925MetadataImport scope = module.MetadataImport; 1092MetadataImport scope = moduleHandle.GetRuntimeModule().MetadataImport; 1166MetadataImport scope = module.MetadataImport; 1281MetadataImport scope = module.MetadataImport; 1566m_namespace = module.MetadataImport.GetNamespace(type.MetadataToken).ToString(); 3559module.MetadataImport.GetGenericParamProps(MetadataToken, out GenericParameterAttributes attributes);