Base:
property
ContainingAssembly
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingAssembly
4 overrides of ContainingAssembly
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
226public override AssemblySymbol ContainingAssembly
Symbols\MissingModuleSymbol.cs (1)
82public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
168public override AssemblySymbol ContainingAssembly
Symbols\Source\SourceModuleSymbol.cs (1)
448public override AssemblySymbol ContainingAssembly
574 references to ContainingAssembly
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Symbols.cs (1)
2227Debug.Assert(arg2.ContainingAssembly == Compilation.Assembly);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
196var otherAssembly = (AssemblySymbol?)Visit(module.ContainingAssembly);
Emitter\Model\ModuleReference.cs (2)
69ReferenceEquals(_moduleBeingBuilt.SourceModule.ContainingAssembly, _underlyingModule.ContainingAssembly)) 74return _moduleBeingBuilt.Translate(_underlyingModule.ContainingAssembly, context.Diagnostics);
Emitter\Model\PEModuleBuilder.cs (1)
1082AssemblySymbol container = module.ContainingAssembly;
Symbols\MergedNamespaceSymbol.cs (1)
262return _extent.Module.ContainingAssembly;
Symbols\MissingMetadataTypeSymbol.cs (2)
232return _containingModule.ContainingAssembly; 292AssemblySymbol containingAssembly = _containingModule.ContainingAssembly;
Symbols\ModuleSymbol.cs (1)
253var assembly = ContainingAssembly;
Symbols\NonMissingModuleSymbol.cs (1)
82var ownerAssembly = ownerModule.ContainingAssembly;
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (1)
69return new CSDiagnosticInfo(ErrorCode.ERR_GenericsUsedAcrossAssemblies, _underlyingSymbol, _exposingModule.ContainingAssembly);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
830public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
81public override AssemblySymbol ContainingAssembly => _module.ContainingAssembly;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
78public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (127)
CodeGen\CodeGenAsyncTests.cs (10)
319var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 384var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 447var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 505var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 631var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 772var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 898var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 1037var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 1155var test = module.ContainingAssembly.GetTypeByMetadataName("Test"); 1270var test = module.ContainingAssembly.GetTypeByMetadataName("Test");
CodeGen\CodeGenConstructorInitTests.cs (5)
697var type = module.ContainingAssembly.GetTypeByMetadataName("C"); 761var type = module.ContainingAssembly.GetTypeByMetadataName("C"); 783var type = module.ContainingAssembly.GetTypeByMetadataName("C"); 850var type = module.ContainingAssembly.GetTypeByMetadataName("C"); 929var type = module.ContainingAssembly.GetTypeByMetadataName("C");
CodeGen\CodeGenFieldInitTests.cs (1)
576var type = module.ContainingAssembly.GetTypeByMetadataName("C`1");
CodeGen\CodeGenReadonlyStructTests.cs (5)
835var test = module.ContainingAssembly.GetTypeByMetadataName("Program+S1"); 1343var type = module.ContainingAssembly.GetTypeByMetadataName("S"); 1415var type = module.ContainingAssembly.GetTypeByMetadataName("S"); 1481var type = module.ContainingAssembly.GetTypeByMetadataName("S"); 2599var testStruct = module.ContainingAssembly.GetTypeByMetadataName("S");
CodeGen\CodeGenTests.cs (2)
936var type = module.ContainingAssembly.GetTypeByMetadataName("H"); 14814var type = module.ContainingAssembly.GetTypeByMetadataName("Test");
CodeGen\DestructorTests.cs (1)
586var mscorlib = module.ContainingAssembly.CorLibrary;
CodeGen\SwitchTests.cs (1)
10250var type = module.ContainingAssembly.GetTypeByMetadataName("Program");
Emit\DeterministicTests.cs (1)
337var assembly = module.ContainingAssembly;
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1028var type = module.ContainingAssembly.GetTypeByMetadataName("C");
Emit\EmitMetadataTests.cs (3)
2601var parameters = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters; 2611var delegateParameters = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters; 2827var childParameters = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").GetParameters();
Emit\InAttributeModifierTests.cs (97)
1656var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 1676var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 1697var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 1717var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 1738var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 2646var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 2667var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 2687var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 2708var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 2729var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 2749var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 2769var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 2790var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 2810var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 2832var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 2848var type = module.ContainingAssembly.GetTypeByMetadataName("D"); 2873var type = module.ContainingAssembly.GetTypeByMetadataName("D"); 2898var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 2918var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 2938var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 2958var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_LogicalNot").Parameters.Single(); 2978var parameters = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_Addition").Parameters; 3002var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod(".ctor").Parameters.Single(); 3388var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3414var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3436var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3461var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3483var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3509var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3538var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3564var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3586var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3611var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3633var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3656var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3678var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3701var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3723var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3746var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3768var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3791var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3813var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3836var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3858var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3881var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3903var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3927var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3949var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3973var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3995var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4019var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4041var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4065var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4087var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4113var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4135var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4161var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4183var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4209var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4238var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4264var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4286var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4312var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4334var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4358var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4380var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4404var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4426var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4450var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4472var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4496var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4518var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 4542var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4560var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters.Single(); 4593var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 4632var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters.Single(); 4674var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 5061var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 5085var childModifier = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").RefCustomModifiers.Single().Modifier; 5108var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 5132var childModifier = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").RefCustomModifiers.Single().Modifier; 5155var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 5179var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 5204var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 5228var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 5231Assert.Equal(module.ContainingAssembly.Name, implicitModifier.ContainingAssembly.Name); 5256var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 5281var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 5284Assert.Equal(module.ContainingAssembly.Name, implicitModifier.ContainingAssembly.Name); 5390var parentMethod = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M"); 5395var childMethod = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M"); 5400var interfaceMethod = module.ContainingAssembly.GetTypeByMetadataName("IM").GetMethod("M"); 5405var proxyMethod = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("IM.M"); 5433var parentMethod = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M"); 5438Assert.DoesNotContain("M", module.ContainingAssembly.GetTypeByMetadataName("Child").MemberNames); 5441var interfaceMethod = module.ContainingAssembly.GetTypeByMetadataName("IM").GetMethod("M"); 5446var proxyMethod = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("IM.M");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (48)
Emit\UnmanagedTypeModifierTests.cs (48)
639var parentTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 643AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 645var childTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 649AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 674var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 678AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 687var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 691AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 720var parentTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 724AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 726var childTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 730AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 752var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 756AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 765var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 769AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 795var parentTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 799AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 801var childTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 805AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 827var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 831AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 840var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 844AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 870var parentTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 874AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 876var childTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 880AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 902var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 906AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 915var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").TypeParameters.Single(); 919AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 945var parentTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 949AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, parentTypeParameter, module.ContainingAssembly.Name); 951var childTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("Parent.M").TypeParameters.Single(); 955AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, childTypeParameter, module.ContainingAssembly.Name); 978var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").TypeParameters.Single(); 982AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 991var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("Parent.M").TypeParameters.Single(); 995AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 1037var delegateTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("D`1").TypeParameters.Single(); 1041AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, delegateTypeParameter, module.ContainingAssembly.Name); 1043var lambdaTypeParameter = module.ContainingAssembly.GetTypeByMetadataName("Program").GetTypeMember("<>c__DisplayClass0_0").TypeParameters.Single(); 1047AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, lambdaTypeParameter, module.ContainingAssembly.Name); 1064var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("D`1").TypeParameters.Single(); 1069AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 1090var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Program").GetTypeMember("<>c__DisplayClass0_0").TypeParameters.Single(); 1095AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (278)
Attributes\AttributeTests.cs (15)
5494var typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(classW)); 5499typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(classW), rank: 2); 5504typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(classW)); 5505typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(typeArg), rank: 2); 5511typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(classYOfW), rank: 2); 5512typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(typeArg)); 5517NamedTypeSymbol classYOfInt = classY.ConstructIfGeneric(ImmutableArray.Create(TypeWithAnnotations.Create(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)))); 5519typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(substNestedF), rank: 3); 5520typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(typeArg)); 5521typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(typeArg), rank: 2); 5527typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(substNestedZ)); 5528typeArg = ArrayTypeSymbol.CreateCSharpArray(m.ContainingAssembly, TypeWithAnnotations.Create(typeArg), rank: 2); 10368var m = (MethodSymbol)module.ContainingAssembly.GlobalNamespace.GetMember("C.M"); 11296var attrs = module.ContainingAssembly.GetAttributes(); 11309var attrs = module.ContainingAssembly.GetAttributes();
Attributes\AttributeTests_Assembly.cs (14)
354Assert.Equal(utf8.GetString(utf8.GetBytes("\uD800")), m.ContainingAssembly.Identity.CultureName); 477var naturalRef = m.ContainingAssembly.Modules[1].GetReferencedAssemblySymbols()[1]; 1034var metadataAttributes = module.ContainingAssembly 1332foreach (var a in module.ContainingAssembly.GetAttributes()) 1618var metadataAttributes = module.ContainingAssembly 1894var attrs = moduleSymbol.ContainingAssembly.GetAttributes().Select(a => a.ToString()).ToArray(); 2176var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2208var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2238var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2270var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2295var attrs = m.ContainingAssembly.GetAttributes(); 2346var attrs = m.ContainingAssembly.GetAttributes(); 2402var attrs = m.ContainingAssembly.GetAttributes(); 2430var attrs = m.ContainingAssembly.GetAttributes();
Attributes\AttributeTests_Embedded.cs (11)
237var embeddedAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 264var embeddedAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 422var embeddedAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 448var embeddedAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 480var nonGenericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 484var genericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName + "`1"); 488var isReadonlyAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.IsReadOnlyAttribute.FullName); 522var nonGenericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 526var genericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName + "`1"); 530var isReadonlyAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.IsReadOnlyAttribute.FullName); 734var generatedAttribute = module.ContainingAssembly.GetTypeByMetadataName(attributeName);
Attributes\AttributeTests_IsByRefLike.cs (31)
41var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 62var type = module.ContainingAssembly.GetTypeByMetadataName("S1"); 80var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 98var type = module.ContainingAssembly.GetTypeByMetadataName("Test+S1`1"); 122var type = module.ContainingAssembly.GetTypeByMetadataName("Test`1").GetTypeMember("S1"); 148var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 151AssertNoIsByRefLikeAttributeOrCompilerFeatureRequiredAttributeExists(module.ContainingAssembly, includeCompilerFeatureRequired); 374Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(isByRefLikeAttributeName)); 386AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 387AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsByRefLikeAttribute.FullName); 442var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 445AssertNoIsByRefLikeAttributeOrCompilerFeatureRequiredAttributeExists(module.ContainingAssembly, hasCompilerFeatureRequired: false); 463AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 464AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsByRefLikeAttribute.FullName); 475AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 476AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsByRefLikeAttribute.FullName); 496Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 590var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 617AssertNoIsByRefLikeAttributeOrCompilerFeatureRequiredAttributeExists(module.ContainingAssembly, hasCompilerFeatureRequired: false); 619var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 669var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 672var assemblyName = module.ContainingAssembly.Name; 713var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 756var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 807var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 872var type = module.ContainingAssembly.GetTypeByMetadataName("S"); 1003var type = module.ContainingAssembly.GetTypeByMetadataName("System.TypedReference"); 1006type = module.ContainingAssembly.GetTypeByMetadataName("System.ArgIterator"); 1009type = module.ContainingAssembly.GetTypeByMetadataName("System.RuntimeArgumentHandle"); 1013type = module.ContainingAssembly.GetTypeByMetadataName("System.NotTypedReference"); 1031var type = module.ContainingAssembly.GetTypeByMetadataName("System.TypedReference");
Attributes\AttributeTests_IsUnmanaged.cs (39)
40var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M").TypeParameters.Single(); 44Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 45AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name); 64var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test`1").TypeParameters.Single(); 68Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 69AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name); 94var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__N|0_0").TypeParameters.Single(); 98Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 99AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name); 120Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 121AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Public, typeParameter, module.ContainingAssembly.Name); 143var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M").TypeParameters.Single(); 148AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 169var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test`1").TypeParameters.Single(); 174AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 205var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__N|0_0").TypeParameters.Single(); 210AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 238AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 260var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M").TypeParameters.Single(); 265AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 286var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test`1").TypeParameters.Single(); 291AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 323var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__N|0_0").TypeParameters.Single(); 328AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 357AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 373var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M").TypeParameters.Single(); 377AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 392var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test`1").TypeParameters.Single(); 396AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 420var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__N|0_0").TypeParameters.Single(); 424AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 444AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 640AssertNoIsUnmanagedAttributeExists(module.ContainingAssembly); 649var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test2`1").TypeParameters.Single(); 653AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 732var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test1`1").TypeParameters.Single(); 736AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name); 746var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test2`1").TypeParameters.Single(); 750AttributeValidation.AssertReferencedIsUnmanagedAttribute(Accessibility.Internal, typeParameter, module.ContainingAssembly.Name);
Attributes\AttributeTests_NativeInteger.cs (6)
1086var method = module.ContainingAssembly.GetTypeByMetadataName("Program+<>c").GetMethod("<M>b__0_0"); 1110var method = module.ContainingAssembly.GetTypeByMetadataName("Program+<>c").GetMethod("<M>b__0_0"); 1133var method = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("<M>g__L|0_0"); 1157var method = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("<M>g__L|0_0"); 1292var assembly = module.ContainingAssembly; 1493var type = module.ContainingAssembly.GetTypeByMetadataName("Program");
Attributes\AttributeTests_Nullable.cs (18)
800var assembly = module.ContainingAssembly; 814var assembly = module.ContainingAssembly; 844var assembly = module.ContainingAssembly; 867var assembly = module.ContainingAssembly; 889var assembly = module.ContainingAssembly; 911var assembly = module.ContainingAssembly; 934var assembly = module.ContainingAssembly; 957var assembly = module.ContainingAssembly; 973var assembly = module.ContainingAssembly; 2169var method = module.ContainingAssembly.GetTypeByMetadataName("C+<>c").GetMethod("<Main>b__1_0"); 2196var method = module.ContainingAssembly.GetTypeByMetadataName("C+<>c").GetMethod("<G>b__1_0"); 2223var method = module.ContainingAssembly.GetTypeByMetadataName("C+<>c").GetMethod("<G>b__1_0"); 2276var method = module.ContainingAssembly.GetTypeByMetadataName("C").GetMethod("<M>g__L|0_0"); 2300var method = module.ContainingAssembly.GetTypeByMetadataName("C").GetMethod("<M>g__L|0_0"); 2509var method = module.ContainingAssembly.GetTypeByMetadataName("B").GetMethod("I.F"); 2534var property = module.ContainingAssembly.GetTypeByMetadataName("C").GetTypeMember("<F>d__0").GetProperty("System.Collections.Generic.IEnumerator<System.Object>.Current"); 2560var property = module.ContainingAssembly.GetTypeByMetadataName("C").GetTypeMember("<F>d__0").GetProperty("System.Collections.Generic.IEnumerator<System.Object[]>.Current"); 4994var type = module.ContainingAssembly.GetTypeByMetadataName("C");
Attributes\AttributeTests_ReadOnlyStruct.cs (20)
39var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 58var type = module.ContainingAssembly.GetTypeByMetadataName("S1"); 76var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 94var type = module.ContainingAssembly.GetTypeByMetadataName("Test+S1`1"); 112var type = module.ContainingAssembly.GetTypeByMetadataName("Test`1").GetTypeMember("S1"); 138var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 141AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 364Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(isReadOnlyAttributeName)); 376AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 377AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsReadOnlyAttribute.FullName); 434var type = module.ContainingAssembly.GetTypeByMetadataName("Test").GetTypeMember("S1"); 437AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 455AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 456AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsReadOnlyAttribute.FullName); 467AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 468AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsReadOnlyAttribute.FullName); 488Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 582var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 609AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 611var type = module.ContainingAssembly.GetTypeByMetadataName("Test");
Attributes\AttributeTests_RefReadOnly.cs (62)
37var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M"); 67var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M").GetParameters().Single(); 91var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M"); 119var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M"); 129AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 149var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_Addition"); 172var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_Addition"); 202var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_Addition"); 210AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 231var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod(".ctor").Parameters.Single(); 250var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod(".ctor").Parameters.Single(); 275var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod(".ctor").Parameters.Single(); 280AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 303var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 332var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 369var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 380AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 401var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 425var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").GetParameters().Single(); 445var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 473var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 483AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 500var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 521var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.GetParameters().Single(); 536var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 560var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 570AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 597var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__Inner|0_0"); 625var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__Inner|0_0").GetParameters().Single(); 651var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__Inner|1_0"); 685var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__Inner|0_0"); 695AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 828AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 1069Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(isReadOnlyAttributeName)); 1081AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 1082AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsReadOnlyAttribute.FullName); 1158AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 1160var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("M").GetParameters().Single(); 1180AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 1181AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsReadOnlyAttribute.FullName); 1192AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 1193AssertGeneratedEmbeddedAttribute(module.ContainingAssembly, AttributeDescription.IsReadOnlyAttribute.FullName); 1213Assert.Null(module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName)); 1301var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 1336AssertNoIsReadOnlyAttributeExists(module.ContainingAssembly); 1338var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 1589var type = module.ContainingAssembly.GetTypeByMetadataName(isReadOnlyAttributeName); 1631var type = module.ContainingAssembly.GetTypeByMetadataName(isReadOnlyAttributeName); 1675var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 1724var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 1771var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 1815var type = module.ContainingAssembly.GetTypeByMetadataName(typeName); 1864var type = module.ContainingAssembly.GetTypeByMetadataName(typeName); 1904var type = module.ContainingAssembly.GetTypeByMetadataName(isReadOnlyAttributeName); 1973var type = module.ContainingAssembly.GetTypeByMetadataName(typeName); 2022var type = module.ContainingAssembly.GetTypeByMetadataName(typeName); 2062var type = module.ContainingAssembly.GetTypeByMetadataName("TestImpl"); 2104var type = module.ContainingAssembly.GetTypeByMetadataName("TestImpl"); 2345var method = module.ContainingAssembly.GetTypeByMetadataName("Program+<>c").GetMethod("<Main>b__0_0"); 2369var method = module.ContainingAssembly.GetTypeByMetadataName("Program+<>c").GetMethod("<Main>b__0_0"); 2392var method = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("<Main>g__L|0_0"); 2416var method = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("<Main>g__L|0_0");
Attributes\AttributeTests_Security.cs (1)
38var assembly = module.ContainingAssembly;
Attributes\AttributeTests_Synthesized.cs (19)
292var anon = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousType0`2"); 375var assembly = m.ContainingAssembly; 430var iter = module.ContainingAssembly.GetTypeByMetadataName("C+<Iterator>d__0"); 984var attributes = module.ContainingAssembly.GetAttributes(); 1019var attributes = module.ContainingAssembly.GetAttributes(); 1054var attributes = module.ContainingAssembly.GetAttributes(); 1089var attributes = module.ContainingAssembly.GetAttributes(); 1128var attributes = module.ContainingAssembly.GetAttributes(); 1164var attributes = module.ContainingAssembly.GetAttributes(); 1202var assemblyAttributes = module.ContainingAssembly.GetAttributes(); 1240var assemblyAttributes = module.ContainingAssembly.GetAttributes(); 1280var assemblyAttributes = module.ContainingAssembly.GetAttributes(); 1310var attributes = module.ContainingAssembly.GetAttributes(); 1359var attributes = module.ContainingAssembly.GetAttributes(); 1406var attributes = module.ContainingAssembly.GetAttributes(); 1450var attributes = module.ContainingAssembly.GetAttributes(); 1495var assemblyAttributes = module.ContainingAssembly.GetAttributes(); 1535var attributes = module.ContainingAssembly.GetAttributes(); 1576var attributes = module.ContainingAssembly.GetAttributes();
Attributes\AttributeTests_WellKnownAttributes.cs (2)
13541var attribute = module.ContainingAssembly.GetTypeByMetadataName("Program").GetMethod("Test").Parameters.Single().GetAttributes().Single(); 13545Assert.Equal(module.ContainingAssembly, attribute.AttributeClass.ContainingAssembly);
Attributes\InternalsVisibleToAndStrongNameTests.cs (4)
117foreach (var attrData in m.ContainingAssembly.GetAttributes()) 263foreach (var attrData in m.ContainingAssembly.GetAttributes()) 1853Assert.StartsWith("0024000004", ((SourceAssemblySymbol)comp.Assembly.Modules[1].ContainingAssembly).SignatureKey); 2802var assembly = module.ContainingAssembly;
OverloadResolutionPriorityTests.cs (2)
1101m.ContainingAssembly.GetTypeByMetadataName("C")!.GetAttributes().Single().AttributeConstructor.ToTestDisplayString()); 1144m.ContainingAssembly.GetTypeByMetadataName("C")!.GetAttributes().Single().AttributeConstructor.ToTestDisplayString());
RefStructInterfacesTests.cs (4)
22877foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>A`2").TypeParameters) 22933foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>F`2").TypeParameters) 23080foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0`1").TypeParameters) 23129foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0`1").TypeParameters)
Semantics\ExtensionTests.cs (13)
5358NamedTypeSymbol extensions = m.ContainingAssembly.GetTypeByMetadataName("Extensions"); 6163MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 6578MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 7709MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 8112MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 8429MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 9550MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 9929MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 34027var implementations = m.ContainingAssembly.GetTypeByMetadataName("E1").GetMembers().OfType<MethodSymbol>().ToArray(); 34259var implementations = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().ToArray(); 34427var implementations = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().ToArray(); 34473var implementations = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().ToArray(); 34559var implementation = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().Single();
Semantics\InlineArrayTests.cs (1)
192var bufferOfInt = buffer.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32));
Semantics\ParamsCollectionTests.cs (16)
4454MethodSymbol delegateInvokeMethod1 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod; 4458MethodSymbol delegateInvokeMethod2 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1`1").DelegateInvokeMethod; 4516MethodSymbol delegateInvokeMethod1 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod; 4520MethodSymbol delegateInvokeMethod2 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1`1").DelegateInvokeMethod; 4611AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod.ToTestDisplayString()); 4612AssertEx.Equal("void <>f__AnonymousDelegate1.Invoke(params System.Collections.Generic.List<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1").DelegateInvokeMethod.ToTestDisplayString()); 4613AssertEx.Equal("void <>f__AnonymousDelegate2<T1>.Invoke(params T1[] arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate2`1").DelegateInvokeMethod.ToTestDisplayString()); 4667MethodSymbol delegateInvokeMethod1 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod; 4671MethodSymbol delegateInvokeMethod2 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1`1").DelegateInvokeMethod; 4798var delegateType = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0`1"); 13124var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13155var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13184var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13215var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13247var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13278var type = module.ContainingAssembly.GetTypeByMetadataName("Test");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\ConditionalOperatorTests.cs (1)
720var type = module.ContainingAssembly.GetTypeByMetadataName("Program");
Semantics\GenericConstraintsTests.cs (4)
2194var typeParameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("<M>g__N|0_0").TypeParameters.Single(); 3083Assert.True(module.ContainingAssembly.GetTypeByMetadataName("D`1").TypeParameters.Single().HasUnmanagedTypeConstraint); 3084Assert.True(module.ContainingAssembly.GetTypeByMetadataName("Test`1").TypeParameters.Single().HasUnmanagedTypeConstraint); 3085Assert.True(module.ContainingAssembly.GetTypeByMetadataName("Test`1").GetTypeMember("<>c__DisplayClass2_0").TypeParameters.Single().HasUnmanagedTypeConstraint);
Semantics\NullableReferenceTypesTests.cs (2)
20870var c = module.ContainingAssembly.GetTypeByMetadataName("C"); 20892var c = module.ContainingAssembly.GetTypeByMetadataName("C");
Semantics\RefFieldTests.cs (4)
27230Assert.Equal(assemblyIdentity, module.ContainingAssembly.CorLibrary.Identity); 27297Assert.Equal(assemblyIdentityHigherVersion, module.ContainingAssembly.CorLibrary.Identity); 27300module = module.ContainingAssembly.CorLibrary.Modules[0]; 27361Assert.Equal(assemblyIdentity, module.ContainingAssembly.CorLibrary.Identity);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (94)
Compilation\ReferenceManagerTests.cs (2)
1774Assert.Equal(comp1.Assembly, moduleSymbol1.ContainingAssembly); 1787Assert.Equal(comp2.Assembly, moduleSymbol2.ContainingAssembly);
Symbols\AssemblyAndNamespaceTests.cs (1)
71Assert.Equal("Test", sym.ContainingAssembly.Name);
Symbols\CompilationCreationTests.cs (1)
2992var addedModuleAssembly = addedModule.ContainingAssembly;
Symbols\DefaultInterfaceImplementationTests.cs (36)
592var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 690var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 792var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 894var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 3775var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 4010var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 4162var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 5438var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 5621var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 5766var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 6987var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 7163var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 7270var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 16843var i3 = m.ContainingAssembly.GetTypeByMetadataName("I3"); 30187var i3 = m.ContainingAssembly.GetTypeByMetadataName("I3"); 34853var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 34854var test1i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M1"); 34855var test1i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M2"); 34857var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 34858var test2i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("M1"); 34859var test2i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("M2"); 34860var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 34861var test2i2m1 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M1"); 34862var test2i2m2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M2"); 39150var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 39151var test1i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 39153var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 39154var test2i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 39155var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 39156var test2i2m1 = GetSingleProperty(i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 41826var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 41827var test1i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 41829var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 41830var test2i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 41831var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 41832var test2i2m1 = GetSingleEvent(i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)));
Symbols\ExtendedPartialMethodsTests.cs (4)
1154var type = module.ContainingAssembly.GetTypeByMetadataName("C"); 1232var type = module.ContainingAssembly.GetTypeByMetadataName("C"); 2316var method = module.ContainingAssembly 2888var cType = module.ContainingAssembly.GetTypeByMetadataName("C");
Symbols\ExtensionMethodTests.cs (1)
2495var assembly = module.ContainingAssembly;
Symbols\Metadata\PE\LoadInAttributeModifier.cs (16)
387var method = module.ContainingAssembly.BoundReferences() 388.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 540var method = module.ContainingAssembly.BoundReferences() 541.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 1400var indexer = module.ContainingAssembly.BoundReferences() 1401.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 1656var indexer = module.ContainingAssembly.BoundReferences() 1657.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 1868var indexer = module.ContainingAssembly.BoundReferences() 1869.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 2111var indexer = module.ContainingAssembly.BoundReferences() 2112.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 2367var indexer = module.ContainingAssembly.BoundReferences() 2368.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity)) 2579var indexer = module.ContainingAssembly.BoundReferences() 2580.Single(assembly => !assembly.Identity.Equals(module.ContainingAssembly.CorLibrary.Identity))
Symbols\Metadata\PE\MissingTypeReferences.cs (8)
136Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 151Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 166Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 183Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 200Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 219Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 237Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly); 259Assert.Same(@base.ContainingAssembly, module2.ContainingAssembly);
Symbols\Metadata\PE\TypeForwarders.cs (4)
1493var assembly = module.ContainingAssembly; 1688Assert.Equal(0, m.ContainingAssembly.GetAttributes(AttributeDescription.TypeForwardedToAttribute).Count()); 1740Assert.Equal(0, m.ContainingAssembly.GetAttributes(AttributeDescription.TypeForwardedToAttribute).Count()); 1779var assembly = module.ContainingAssembly;
Symbols\ModuleInitializers\ModuleInitializersTests.cs (14)
223var rootModuleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 509var cType = module.ContainingAssembly.GetTypeByMetadataName("C"); 513var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 559var cType = module.ContainingAssembly.GetTypeByMetadataName("C"); 562var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 605var c2Type = module.ContainingAssembly.GetTypeByMetadataName("C2"); 609var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 658var c2Type = module.ContainingAssembly.GetTypeByMetadataName("C2"); 661var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 782var rootModuleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 966var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 973var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 1079var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>"); 1086var moduleType = module.ContainingAssembly.GetTypeByMetadataName("<Module>");
Symbols\RequiredMembersTests.cs (2)
7154var c = module.ContainingAssembly.GetTypeByMetadataName("C"); 7158var d = module.ContainingAssembly.GetTypeByMetadataName("D");
Symbols\Retargeting\RetargetingTests.cs (5)
40var sourceAssembly = (SourceAssemblySymbol)sourceModule.ContainingAssembly; 111var sourceAssembly = (SourceAssemblySymbol)sourceModule.ContainingAssembly; 144var sourceAssembly = (SourceAssemblySymbol)sourceModule.ContainingAssembly; 178var sourceAssembly = (SourceAssemblySymbol)sourceModule.ContainingAssembly; 214var sourceAssembly = (SourceAssemblySymbol)sourceModule.ContainingAssembly;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
MetadataTestHelpers.cs (2)
18return module.ContainingAssembly.GetSpecialType(typeId); 23return module.ContainingAssembly.CorLibrary;