21 references to GetCustomAttributes
ILCompiler.Compiler (4)
Compiler\Dataflow\FlowAnnotations.cs (3)
349DynamicallyAccessedMemberTypes typeAnnotation = GetMemberTypesForDynamicallyAccessedMembersAttribute(reader, typeDef.GetCustomAttributes()); 359typeAnnotation |= GetMemberTypesForDynamicallyAccessedMembersAttribute(ecmaBaseType.MetadataReader, baseTypeDef.GetCustomAttributes()); 368typeAnnotation |= GetMemberTypesForDynamicallyAccessedMembersAttribute(ecmaInterface.MetadataReader, interfaceTypeDef.GetCustomAttributes());
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
63AddDependenciesDueToCustomAttributes(ref dependencies, GetMetadataApiDependency(factory, "TypeDefinition"u8), factory, type.Module, typeDef.GetCustomAttributes(), type);
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.Type.cs (1)
351Ecma.CustomAttributeHandleCollection customAttributes = ecmaRecord.GetCustomAttributes();
ILCompiler.ReadyToRun (1)
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
453metadataReader.GetTypeDefinition((TypeDefinitionHandle)typeDefHandle).GetCustomAttributes(),
ILCompiler.TypeSystem (7)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
488MethodImportAttributes fromCA = GetImportAttributesFromBestFitMappingAttribute(declaringType.GetCustomAttributes());
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (4)
223foreach (CustomAttributeHandle attributeHandle in _typeDefinition.GetCustomAttributes()) 536return !MetadataReader.GetCustomAttributeHandle(_typeDefinition.GetCustomAttributes(), 547var attr = MetadataReader.GetCustomAttribute(MetadataReader.GetCustomAttributeHandle(_typeDefinition.GetCustomAttributes(), 566var attrHandle = MetadataReader.GetCustomAttributeHandle(_typeDefinition.GetCustomAttributes(),
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (2)
20var attributeHandle = metadataReader.GetCustomAttributeHandle(metadataReader.GetTypeDefinition(This.Handle).GetCustomAttributes(), 33var attributeHandles = metadataReader.GetTypeDefinition(This.Handle).GetCustomAttributes();
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
263foreach (CustomAttributeHandle customAttrHandle in typeDef.GetCustomAttributes())
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
603typeDefinition.GetCustomAttributes().Count == 0)
Microsoft.NET.HostModel (3)
ComHost\ClsidMap.cs (3)
156CustomAttributeHandle handle = GetComVisibleAttribute(metadataReader, typeDefinition.GetCustomAttributes()); 192foreach (CustomAttributeHandle attr in type.GetCustomAttributes()) 206foreach (CustomAttributeHandle attr in type.GetCustomAttributes())
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (3)
72protected sealed override IEnumerable<CustomAttributeData> GetTrueCustomAttributes() => TypeDefinition.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaModule()); 74internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().IsCustomAttributeDefined(ns, name, GetEcmaModule()); 75internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());