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
563 references to ContainingAssembly
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Symbols.cs (1)
2207Debug.Assert(arg2.ContainingAssembly == Compilation.Assembly);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
188var 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)
930AssemblySymbol container = module.ContainingAssembly;
Symbols\MergedNamespaceSymbol.cs (1)
261return _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)
829public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
81public override AssemblySymbol ContainingAssembly => _module.ContainingAssembly;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
77public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (117)
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)
1654var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 1674var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 1695var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 1715var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 1736var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 1757var method = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method"); 1778var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1798var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1819var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1840var property = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("Property"); 1860var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 1880var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 1901var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 1921var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 1943var indexer = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]"); 1959var type = module.ContainingAssembly.GetTypeByMetadataName("D"); 1984var type = module.ContainingAssembly.GetTypeByMetadataName("D"); 2009var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 2029var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("Method").Parameters.Single(); 2049var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetProperty("this[]").Parameters.Single(); 2069var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_LogicalNot").Parameters.Single(); 2089var parameters = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod("op_Addition").Parameters; 2113var parameter = module.ContainingAssembly.GetTypeByMetadataName("Test").GetMethod(".ctor").Parameters.Single(); 2499var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2525var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2547var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2572var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2594var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2620var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2649var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2675var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2697var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2722var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2744var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2767var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2789var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2812var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2834var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2857var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2879var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2902var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2924var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2947var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 2969var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 2992var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3014var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3038var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3060var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3084var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3106var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3130var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3152var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3176var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3198var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3224var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3246var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3272var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3294var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3320var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3349var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3375var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3397var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3423var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3445var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3469var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3491var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3515var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3537var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3561var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3583var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3607var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3629var type = module.ContainingAssembly.GetTypeByMetadataName("Parent"); 3653var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 3671var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters.Single(); 3704var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 3743var parameter = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod.Parameters.Single(); 3785var method = module.ContainingAssembly.GetTypeByMetadataName("D").DelegateInvokeMethod; 4172var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 4196var childModifier = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").RefCustomModifiers.Single().Modifier; 4219var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 4243var childModifier = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M").RefCustomModifiers.Single().Modifier; 4266var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 4290var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4315var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 4339var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4342Assert.Equal(module.ContainingAssembly.Name, implicitModifier.ContainingAssembly.Name); 4367var parentModifier = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M").RefCustomModifiers.Single().Modifier; 4392var type = module.ContainingAssembly.GetTypeByMetadataName("Child"); 4395Assert.Equal(module.ContainingAssembly.Name, implicitModifier.ContainingAssembly.Name); 4501var parentMethod = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M"); 4506var childMethod = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("M"); 4511var interfaceMethod = module.ContainingAssembly.GetTypeByMetadataName("IM").GetMethod("M"); 4516var proxyMethod = module.ContainingAssembly.GetTypeByMetadataName("Child").GetMethod("IM.M"); 4544var parentMethod = module.ContainingAssembly.GetTypeByMetadataName("Parent").GetMethod("M"); 4549Assert.DoesNotContain("M", module.ContainingAssembly.GetTypeByMetadataName("Child").MemberNames); 4552var interfaceMethod = module.ContainingAssembly.GetTypeByMetadataName("IM").GetMethod("M"); 4557var 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 (277)
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 (13)
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()) 1845var attrs = moduleSymbol.ContainingAssembly.GetAttributes().Select(a => a.ToString()).ToArray(); 2127var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2159var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2189var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2221var list = GetAssemblyDescriptionAttributes(m.ContainingAssembly).ToArray(); 2246var attrs = m.ContainingAssembly.GetAttributes(); 2297var attrs = m.ContainingAssembly.GetAttributes(); 2353var attrs = m.ContainingAssembly.GetAttributes(); 2381var 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); 434var embeddedAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 460var embeddedAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 492var nonGenericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 496var genericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName + "`1"); 500var isReadonlyAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.IsReadOnlyAttribute.FullName); 534var nonGenericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName); 538var genericAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.CodeAnalysisEmbeddedAttribute.FullName + "`1"); 542var isReadonlyAttribute = module.ContainingAssembly.GetTypeByMetadataName(AttributeDescription.IsReadOnlyAttribute.FullName); 746var 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)
22481foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>A`2").TypeParameters) 22537foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>F`2").TypeParameters) 22684foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0`1").TypeParameters) 22733foreach (var tp in m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0`1").TypeParameters)
Semantics\ExtensionTests.cs (13)
4986NamedTypeSymbol extensions = m.ContainingAssembly.GetTypeByMetadataName("Extensions"); 5749MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 6150MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 7225MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 7614MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 7917MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 8776MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 9141MethodSymbol implementation = m.ContainingAssembly.GetTypeByMetadataName("Extensions").GetMembers().OfType<MethodSymbol>().Single(); 32099var implementations = m.ContainingAssembly.GetTypeByMetadataName("E1").GetMembers().OfType<MethodSymbol>().ToArray(); 32331var implementations = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().ToArray(); 32499var implementations = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().ToArray(); 32545var implementations = m.ContainingAssembly.GetTypeByMetadataName("E").GetMembers().OfType<MethodSymbol>().ToArray(); 32631var 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)
4466MethodSymbol delegateInvokeMethod1 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod; 4470MethodSymbol delegateInvokeMethod2 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1`1").DelegateInvokeMethod; 4528MethodSymbol delegateInvokeMethod1 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod; 4532MethodSymbol delegateInvokeMethod2 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1`1").DelegateInvokeMethod; 4625AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod.ToTestDisplayString()); 4626AssertEx.Equal("void <>f__AnonymousDelegate1.Invoke(params System.Collections.Generic.List<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1").DelegateInvokeMethod.ToTestDisplayString()); 4627AssertEx.Equal("void <>f__AnonymousDelegate2<T1>.Invoke(params T1[] arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate2`1").DelegateInvokeMethod.ToTestDisplayString()); 4681MethodSymbol delegateInvokeMethod1 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod; 4685MethodSymbol delegateInvokeMethod2 = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1`1").DelegateInvokeMethod; 4814var delegateType = m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0`1"); 13140var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13171var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13200var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13231var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13263var type = module.ContainingAssembly.GetTypeByMetadataName("Test"); 13294var 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)
20866var c = module.ContainingAssembly.GetTypeByMetadataName("C"); 20888var 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)
589var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 687var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 789var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 891var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 3764var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 3999var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 4151var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 5427var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 5610var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 5755var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 6976var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 7152var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 7259var derived = m.ContainingAssembly.GetTypeByMetadataName("Derived"); 16832var i3 = m.ContainingAssembly.GetTypeByMetadataName("I3"); 30176var i3 = m.ContainingAssembly.GetTypeByMetadataName("I3"); 34842var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 34843var test1i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M1"); 34844var test1i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M2"); 34846var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 34847var test2i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("M1"); 34848var test2i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("M2"); 34849var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 34850var test2i2m1 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M1"); 34851var test2i2m2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M2"); 39139var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 39140var test1i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 39142var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 39143var test2i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 39144var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 39145var test2i2m1 = GetSingleProperty(i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 41815var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 41816var test1i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 41818var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 41819var test2i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 41820var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 41821var 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"); 2326var method = module.ContainingAssembly 2904var 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)
1470var assembly = module.ContainingAssembly; 1651Assert.Equal(0, m.ContainingAssembly.GetAttributes(AttributeDescription.TypeForwardedToAttribute).Count()); 1703Assert.Equal(0, m.ContainingAssembly.GetAttributes(AttributeDescription.TypeForwardedToAttribute).Count()); 1742var 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;