1 instantiation of CustomAttribute
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.cs (1)
1182return new CustomAttribute(this, GetCustomAttributeTreatmentAndRowId(handle));
34 references to CustomAttribute
BuildValidator (2)
Util.cs (2)
49var attribute = reader.GetCustomAttribute(attributeHandle); 59internal static string GetAttributeFullName(MetadataReader reader, CustomAttribute attribute)
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
206var attribute = reader.GetCustomAttribute(attr);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\AssemblyInformation.cs (2)
491var attr = metadataReader.GetCustomAttribute(attrHandle); 578private static List<string> GetFixedStringArguments(MetadataReader reader, CustomAttribute attribute)
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)
6188var attribute = reader.GetCustomAttribute(reader.CustomAttributes.Single());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_NativeInteger.cs (2)
1383var customAttribute = GetAttributeByConstructorName(reader, customAttributes, "MethodDefinition:Void System.Runtime.CompilerServices.NativeIntegerAttribute..ctor(Boolean[])"); 1607private 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)
210var attribute = reader.GetCustomAttribute(handle);
Microsoft.DotNet.SignTool (3)
src\Configuration.cs (3)
585var attribute = metadataReader.GetCustomAttribute(attributeHandle); 605private static bool QualifiedNameEquals(MetadataReader reader, CustomAttribute attribute, string namespaceName, string typeName) 651private static string GetTargetFrameworkAttributeValue(MetadataReader reader, CustomAttribute attribute)
RunTests (1)
AssemblyScheduler.cs (1)
353var attribute = metadataReader.GetCustomAttribute(attributeHandle);
System.Diagnostics.FileVersionInfo (3)
System\Diagnostics\FileVersionInfo.Unix.cs (3)
127CustomAttribute attr = metadataReader.GetCustomAttribute(attrHandle); 254private static bool TryGetAttributeName(MetadataReader reader, CustomAttribute attr, out StringHandle typeNamespaceHandle, out StringHandle typeNameHandle) 288private static void GetStringAttributeArgumentValue(MetadataReader reader, CustomAttribute attr, ref string? value)
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);