1 instantiation of CustomAttribute
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.cs (1)
1182return new CustomAttribute(this, GetCustomAttributeTreatmentAndRowId(handle));
29 references to CustomAttribute
BuildValidator (2)
Util.cs (2)
48var attribute = reader.GetCustomAttribute(attributeHandle); 58internal static string GetAttributeFullName(MetadataReader reader, CustomAttribute attribute)
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
207var attribute = reader.GetCustomAttribute(attr);
Microsoft.Cci.Extensions (6)
Extensions\CSharp\CSharpCciExtensions.cs (6)
856public static object GetInterfaceImplementationAttributeConstructorArgument(this ITypeReference interfaceImplementation, uint typeDefinitionToken, string assemblyPath, SRMetadataPEReaderCache metadataReaderCache, Func<SRMetadataReader, CustomAttribute, (bool, object)> argumentResolver) 880public static object GetGenericParameterConstraintConstructorArgument(this IGenericParameter parameter, int constraintIndex, string assemblyPath, SRMetadataPEReaderCache metadataReaderCache, Func<SRMetadataReader, CustomAttribute, (bool, object)> argumentResolver) 895private static object GetCustomAttributeArgument(SRMetadataReader metadataReader, CustomAttributeHandleCollection customAttributeHandles, Func<SRMetadataReader, CustomAttribute, (bool, object)> argumentResolver) 899CustomAttribute customAttribute = metadataReader.GetCustomAttribute(customAttributeHandle); 938private static bool CustomAttributeTypeMatchesNameAndNamespace(this CustomAttribute attribute, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name, SRMetadataReader reader) 956internal static readonly Func<SRMetadataReader, CustomAttribute, (bool, object)> NullableConstructorArgumentParser = (reader, attribute) =>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
6421var attribute = reader.GetCustomAttribute(reader.CustomAttributes.Single());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_NativeInteger.cs (2)
1385var customAttribute = GetAttributeByConstructorName(reader, customAttributes, "MethodDefinition:Void System.Runtime.CompilerServices.NativeIntegerAttribute..ctor(Boolean[])"); 1609private static CustomAttribute GetAttributeByConstructorName(MetadataReader reader, CustomAttributeHandleCollection handles, string name)
Attributes\AttributeTests_Nullable.cs (3)
4757var customAttribute = GetAttributeByConstructorName(reader, customAttributes, "MethodDefinition:Void System.Runtime.CompilerServices.NullableAttribute..ctor(Byte[])"); 4901var customAttribute = GetAttributeByConstructorName(reader, customAttributes, "MethodDefinition:Void System.Runtime.CompilerServices.NullableAttribute..ctor(Byte[])"); 5416private static CustomAttribute GetAttributeByConstructorName(MetadataReader reader, CustomAttributeHandleCollection handles, string name)
Attributes\AttributeTests_Tuples.cs (2)
878var attr = reader.GetCustomAttribute(attributes.Single()); 975var attr = reader.GetCustomAttribute(attributes.Single());
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
211var attribute = reader.GetCustomAttribute(handle);
Microsoft.DotNet.SignTool (3)
src\Configuration.cs (3)
685var attribute = metadataReader.GetCustomAttribute(attributeHandle); 705private static bool QualifiedNameEquals(MetadataReader reader, CustomAttribute attribute, string namespaceName, string typeName) 751private static string GetTargetFrameworkAttributeValue(MetadataReader reader, CustomAttribute attribute)
RunTests (1)
AssemblyScheduler.cs (1)
294var attribute = metadataReader.GetCustomAttribute(attributeHandle);
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.cs (1)
1179public CustomAttribute GetCustomAttribute(CustomAttributeHandle handle)
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (2)
103private ref readonly CustomAttribute CustomAttribute { get { Loader.DisposeCheck(); return ref _neverAccessThisExceptThroughCustomAttributeProperty; } } 105private readonly CustomAttribute _neverAccessThisExceptThroughCustomAttributeProperty;
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (2)
48CustomAttribute ca = handle.GetCustomAttribute(reader); 80public static EntityHandle TryGetDeclaringTypeHandle(this in CustomAttribute ca, MetadataReader reader)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
85CustomAttribute ca = handle.GetCustomAttribute(reader);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
20public static CustomAttribute GetCustomAttribute(this CustomAttributeHandle handle, MetadataReader reader) => reader.GetCustomAttribute(handle);