30 references to GetCustomAttribute
BuildValidator (1)
Util.cs (1)
49var attribute = reader.GetCustomAttribute(attributeHandle);
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
442EntityHandle attributeCtor = mdReader.GetCustomAttribute(attributeHandle).Constructor;
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
206var attribute = reader.GetCustomAttribute(attr);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\AssemblyInformation.cs (1)
491var attr = metadataReader.GetCustomAttribute(attrHandle);
ManifestUtil\MetadataReader.cs (1)
91EntityHandle ctorHandle = _reader.GetCustomAttribute(handle).Constructor;
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
899CustomAttribute customAttribute = metadataReader.GetCustomAttribute(customAttributeHandle);
Microsoft.CodeAnalysis (4)
MetadataReader\PEModule.cs (4)
2697if (MetadataReader.GetCustomAttribute(customAttribute).Parent.Kind != HandleKind.TypeDefinition) 3054attributeCtor = metadataReader.GetCustomAttribute(customAttribute).Constructor; 3186var parent = (TypeDefinitionHandle)MetadataReader.GetCustomAttribute(attributeHandle).Parent; 3622return MetadataReader.GetCustomAttribute(handle).Value;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncMainTests.cs (1)
729.Select(a => metadataReader.Dump(metadataReader.GetCustomAttribute(a).Constructor));
Emit\CompilationEmitTests.cs (3)
919attributes.Select(a => MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor))); 934AssertEx.SetEqual(attributes.Select(a => MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor)), 962attributes.Select(a => MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor)));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
6188var attribute = reader.GetCustomAttribute(reader.CustomAttributes.Single());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_NativeInteger.cs (2)
1604return reader.Dump(reader.GetCustomAttribute(handle).Constructor); 1609return reader.GetCustomAttribute(handles.FirstOrDefault(h => GetAttributeConstructorName(reader, h) == name));
Attributes\AttributeTests_Nullable.cs (2)
5413return reader.Dump(reader.GetCustomAttribute(handle).Constructor); 5418return reader.GetCustomAttribute(handles.FirstOrDefault(h => GetAttributeConstructorName(reader, h) == name));
Attributes\AttributeTests_Tuples.cs (2)
878var attr = reader.GetCustomAttribute(attributes.Single()); 975var attr = reader.GetCustomAttribute(attributes.Single());
Attributes\AttributeTests_WellKnownAttributes.cs (1)
3336var ctor = peReader.GetCustomAttribute(ca).Constructor;
Microsoft.CodeAnalysis.Test.Utilities (3)
Metadata\MetadataReaderUtils.cs (2)
210var attribute = reader.GetCustomAttribute(handle); 474metadataReader.CustomAttributes.Select(a => metadataReader.GetCustomAttribute(a).Constructor)
Metadata\MetadataValidation.cs (1)
29var ctorHandle = metadataReader.GetCustomAttribute(customAttribute).Constructor;
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\FieldInitializerBindingTests.vb (1)
1352If reader.GetCustomAttribute(ca).Parent = parent Then
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
605var attribute = metadataReader.GetCustomAttribute(attributeHandle);
RunTests (1)
AssemblyScheduler.cs (1)
353var attribute = metadataReader.GetCustomAttribute(attributeHandle);
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);