24 instantiations of CustomAttributeHandleCollection
System.Reflection.Metadata (24)
System\Reflection\Metadata\MetadataReader.cs (2)
1033public CustomAttributeHandleCollection CustomAttributes => new CustomAttributeHandleCollection(this); 1176return new CustomAttributeHandleCollection(this, handle);
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
68return new CustomAttributeHandleCollection(_reader, EntityHandle.AssemblyDefinition);
System\Reflection\Metadata\TypeSystem\AssemblyFile.cs (1)
64return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (2)
131return new CustomAttributeHandleCollection(_reader, AssemblyReferenceHandle.FromRowId(RowId)); 208return new CustomAttributeHandleCollection(_reader, AssemblyReferenceHandle.FromRowId(_reader.WinMDMscorlibRef));
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (1)
57return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
91return new CustomAttributeHandleCollection(reader, Handle);
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (1)
145return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\GenericParameter.cs (1)
92return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\GenericParameterConstraint.cs (1)
55return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\InterfaceImplementation.cs (1)
41return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\ManifestResource.cs (1)
78return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\MemberReference.cs (1)
118return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\MethodDefinition.cs (1)
140return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\MethodImplementation.cs (1)
55return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
62return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\ModuleDefinition.cs (1)
60return new CustomAttributeHandleCollection(_reader, EntityHandle.ModuleDefinition);
System\Reflection\Metadata\TypeSystem\ModuleReference.cs (1)
36return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\Parameter.cs (1)
71return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
69return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
55return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
210return new CustomAttributeHandleCollection(_reader, Handle);
System\Reflection\Metadata\TypeSystem\TypeSpecification.cs (1)
44return new CustomAttributeHandleCollection(_reader, Handle);
47 references to CustomAttributeHandleCollection
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
895private static object GetCustomAttributeArgument(SRMetadataReader metadataReader, CustomAttributeHandleCollection customAttributeHandles, Func<SRMetadataReader, CustomAttribute, (bool, object)> argumentResolver)
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
3609public CustomAttributeHandleCollection GetCustomAttributesOrThrow(EntityHandle handle)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Emit\CompilationEmitTests.cs (3)
912var attributes = reader.GetAssemblyDefinition().GetCustomAttributes(); 933var attributes = reader.GetAssemblyDefinition().GetCustomAttributes(); 955var attributes = reader.GetAssemblyDefinition().GetCustomAttributes();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Attributes\AttributeTests_NativeInteger.cs (3)
1381var customAttributes = interfaceImpl.GetCustomAttributes(); 1607private static CustomAttribute GetAttributeByConstructorName(MetadataReader reader, CustomAttributeHandleCollection handles, string name) 1612private static void AssertAttributes(MetadataReader reader, CustomAttributeHandleCollection handles, params string[] expectedNames)
Attributes\AttributeTests_Nullable.cs (6)
4753var customAttributes = field.GetCustomAttributes(); 4882void checkAttributes(CustomAttributeHandleCollection customAttributes, byte? addOne = null) 4891void checkAttributesNoDynamic(CustomAttributeHandleCollection customAttributes, byte? addOne = null) 4899void checkNullableAttribute(CustomAttributeHandleCollection customAttributes, byte? addOne) 5416private static CustomAttribute GetAttributeByConstructorName(MetadataReader reader, CustomAttributeHandleCollection handles, string name) 5421private static void AssertAttributes(MetadataReader reader, CustomAttributeHandleCollection handles, params string[] expectedNames)
Attributes\AttributeTests_Tuples.cs (2)
876var attributes = constraint.GetCustomAttributes(); 973var attributes = interfaceImpl.GetCustomAttributes();
RunTests (1)
AssemblyScheduler.cs (1)
350var attributes = metadataReader.GetAssemblyDefinition().GetCustomAttributes();
System.Reflection.Metadata (24)
System\Reflection\Metadata\MetadataReader.cs (2)
1033public CustomAttributeHandleCollection CustomAttributes => new CustomAttributeHandleCollection(this); 1174public CustomAttributeHandleCollection GetCustomAttributes(EntityHandle handle)
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
66public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\AssemblyFile.cs (1)
62public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (2)
124public CustomAttributeHandleCollection GetCustomAttributes() 205private CustomAttributeHandleCollection GetVirtualCustomAttributes()
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (1)
55public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
89public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (1)
143public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\GenericParameter.cs (1)
90public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\GenericParameterConstraint.cs (1)
53public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\InterfaceImplementation.cs (1)
39public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\ManifestResource.cs (1)
76public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\MemberReference.cs (1)
116public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\MethodDefinition.cs (1)
138public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\MethodImplementation.cs (1)
53public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
60public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\ModuleDefinition.cs (1)
58public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\ModuleReference.cs (1)
34public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\Parameter.cs (1)
69public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
67public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\StandaloneSignature.cs (1)
53public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
208public CustomAttributeHandleCollection GetCustomAttributes()
System\Reflection\Metadata\TypeSystem\TypeSpecification.cs (1)
42public CustomAttributeHandleCollection GetCustomAttributes()
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (4)
20public static IEnumerable<CustomAttributeData> ToTrueCustomAttributes(this CustomAttributeHandleCollection handles, EcmaModule module) 30public static bool IsCustomAttributeDefined(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module) 35public static CustomAttributeData? TryFindCustomAttribute(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module) 43private static CustomAttributeHandle FindCustomAttributeByName(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
78public static bool TryFindRawDefaultValueFromCustomAttributes(this CustomAttributeHandleCollection handles, EcmaModule module, out object? rawDefaultValue)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
21public static CustomAttributeHandleCollection GetCustomAttributes(this EntityHandle handle, MetadataReader reader) => reader.GetCustomAttributes(handle);