49 references to GetCustomAttribute
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
525EntityHandle attributeCtor = mdReader.GetCustomAttribute(attributeHandle).Constructor;
ILCompiler.Compiler (11)
Compiler\AssemblyExtensions.cs (1)
24CustomAttribute attr = reader.GetCustomAttribute(attrHandle);
Compiler\CustomAttributeExtensions.cs (5)
24return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(ecmaType.Module)); 37yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(ecmaType.Module)); 53return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(ecmaType.Module)); 66yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(ecmaType.Module)); 80yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(module));
Compiler\Dataflow\FlowAnnotations.cs (1)
314BlobReader blobReader = reader.GetBlobReader(reader.GetCustomAttribute(ca).Value);
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
108CustomAttribute attribute = reader.GetCustomAttribute(caHandle);
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (1)
149var attr = asm.MetadataReader.GetCustomAttribute(attrHandle);
Compiler\UnmanagedEntryPointsRootProvider.cs (1)
70CustomAttribute ca = reader.GetCustomAttribute(caHandle);
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
308CustomAttribute attr = currentAssembly.MetadataReader.GetCustomAttribute(attrHandle);
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.CustomAttribute.cs (1)
39Ecma.CustomAttribute attribute = reader.GetCustomAttribute(attributeHandle);
ILCompiler.ReadyToRun (4)
Compiler\AssemblyExtensions.cs (1)
28CustomAttribute attribute = reader.GetCustomAttribute(attributeHandle);
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (1)
49CustomAttribute customAttribute = reader.GetCustomAttribute(handle);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
623var customAttribute = metadataReader.GetCustomAttribute(attributeHandle);
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
308CustomAttribute attr = currentAssembly.MetadataReader.GetCustomAttribute(attrHandle);
ILCompiler.TypeSystem (14)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
532CustomAttribute attribute = reader.GetCustomAttribute(attributeHandle);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (1)
809var dec = reader.GetCustomAttribute(attr).DecodeValue(new CustomAttributeTypeProvider(this));
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (2)
547var attr = MetadataReader.GetCustomAttribute(MetadataReader.GetCustomAttributeHandle(_typeDefinition.GetCustomAttributes(), 574var attr = MetadataReader.GetCustomAttribute(attrHandle);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.TypeEquivalence.cs (1)
31guidAttribute = this.MetadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(this.Module));
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (8)
26return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This.Module)); 38yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This.Module)); 54return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This.Module)); 66yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This.Module)); 82return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This.Module)); 94yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This.Module)); 108yield return metadataReader.GetCustomAttribute(attributeHandle).DecodeValue(new CustomAttributeTypeProvider(This)); 155attributeCtor = metadataReader.GetCustomAttribute(attributeHandle).Constructor;
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
583SetTargetResult decodeResult = DecodeUnsafeAccessorType(method, reader.GetCustomAttribute(unsafeAccessorTypeAttributeHandle), out TypeDesc replacementType);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\AssemblyInformation.cs (1)
556var attr = metadataReader.GetCustomAttribute(attrHandle);
ManifestUtil\MetadataReader.cs (1)
93EntityHandle ctorHandle = _reader.GetCustomAttribute(handle).Constructor;
Microsoft.CodeAnalysis (4)
MetadataReader\PEModule.cs (4)
2734if (MetadataReader.GetCustomAttribute(customAttribute).Parent.Kind != HandleKind.TypeDefinition) 3091attributeCtor = metadataReader.GetCustomAttribute(customAttribute).Constructor; 3223var parent = (TypeDefinitionHandle)MetadataReader.GetCustomAttribute(attributeHandle).Parent; 3659return MetadataReader.GetCustomAttribute(handle).Value;
Microsoft.Diagnostics.DataContractReader.Legacy (1)
MetaDataImportImpl.cs (1)
968CustomAttribute ca = _reader.GetCustomAttribute(caHandle);
Microsoft.NET.Build.Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
552EntityHandle attributeCtor = mdReader.GetCustomAttribute(attributeHandle).Constructor;
Microsoft.NET.HostModel (5)
ComHost\ClsidMap.cs (5)
146CustomAttribute comVisibleAttribute = reader.GetCustomAttribute(handle); 162CustomAttribute comVisibleAttribute = metadataReader.GetCustomAttribute(handle); 179CustomAttribute attribute = reader.GetCustomAttribute(attr); 194CustomAttribute attribute = reader.GetCustomAttribute(attr); 208CustomAttribute attribute = reader.GetCustomAttribute(attr);
Microsoft.VisualStudio.TestPlatform.Common (1)
Utilities\MetadataReaderHelper.cs (1)
84var customAttribute = metadataReader.GetCustomAttribute(customAttributeHandle);
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
127CustomAttribute attr = metadataReader.GetCustomAttribute(attrHandle);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
20public static CustomAttribute GetCustomAttribute(this CustomAttributeHandle handle, MetadataReader reader) => reader.GetCustomAttribute(handle);
vstest.console (1)
CommandLine\AssemblyMetadataProvider.cs (1)
138var attr = metadataReader.GetCustomAttribute(customAttributeHandle);
vstest.console.arm64 (1)
src\vstest\src\vstest.console\CommandLine\AssemblyMetadataProvider.cs (1)
138var attr = metadataReader.GetCustomAttribute(customAttributeHandle);