23 references to CustomAttributes
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
3192foreach (var attributeHandle in MetadataReader.CustomAttributes)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Emit\EditAndContinue\EditAndContinueTests.cs (8)
3101Assert.Equal(3, reader0.CustomAttributes.Count); 3123Assert.Equal(1, reader1.CustomAttributes.Count); 6733Assert.Equal(3, reader0.CustomAttributes.Count); 6750Assert.Equal(1, reader1.CustomAttributes.Count); 6771Assert.Equal(2, reader2.CustomAttributes.Count); 6867var baseAttributeCount = reader0.CustomAttributes.Count; 6920var attribute = reader.GetCustomAttribute(reader.CustomAttributes.Single()); 6986CheckBlobValue(readers, reader3.GetCustomAttribute(reader3.CustomAttributes.First()).Value, new byte[] { 0x01, 0x00, 0x00, 0x00 });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Attributes\AttributeTests_Assembly.cs (6)
1067Assert.Equal(18, metadataReader.CustomAttributes.Count); 1114Assert.Equal(6, metadataReader.CustomAttributes.Count); 1135Assert.Equal(0, metadataReader.CustomAttributes.Count); 1188Assert.Equal(4, metadataReader.CustomAttributes.Count); 1229Assert.Equal(2, metadataReader.CustomAttributes.Count); 1250Assert.Equal(0, metadataReader.CustomAttributes.Count);
Attributes\AttributeTests_WellKnownAttributes.cs (3)
3334foreach (var ca in peReader.CustomAttributes) 4707foreach (var ca in metadataReader.CustomAttributes) 4816foreach (var ca in metadataReader.CustomAttributes)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Metadata\PE\TypeForwarders.cs (1)
1717Assert.Equal(1, peReader.CustomAttributes.Count);
Microsoft.CodeAnalysis.Test.Utilities (4)
Metadata\MetadataReaderUtils.cs (2)
209foreach (var handle in reader.CustomAttributes) 494metadataReader.CustomAttributes.Select(a => metadataReader.GetCustomAttribute(a).Constructor)
Metadata\MetadataValidation.cs (2)
51foreach (var caHandle in metadataReader.CustomAttributes) 70foreach (var ca in metadataReader.CustomAttributes)