23 overrides of ExplicitInterfaceImplementations
Microsoft.CodeAnalysis.CSharp (23)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
169public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
123public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\ErrorMethodSymbol.cs (1)
131public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
74public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
824public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1339public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\NativeIntegerTypeSymbol.cs (1)
371public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty;
Symbols\ReducedExtensionMethodSymbol.cs (1)
543public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
300public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\SignatureOnlyMethodSymbol.cs (1)
89public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations { get { return _explicitInterfaceImplementations; } }
Symbols\Source\LambdaSymbol.cs (1)
178public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Source\LocalFunctionSymbol.cs (1)
340public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
856public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\SubstitutedMethodSymbol.cs (1)
269public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
183public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
220public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
332public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
133public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
263public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
64public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
263public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
230public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
283public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
377 references to ExplicitInterfaceImplementations
Microsoft.CodeAnalysis.CSharp (14)
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
331var explicitImplementations = method.ExplicitInterfaceImplementations; 336foreach (var implemented in method.ExplicitInterfaceImplementations) 412foreach (var implemented in method.ExplicitInterfaceImplementations)
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
21Debug.Assert(originalMethod.ExplicitInterfaceImplementations.IsEmpty);
Symbols\MemberSymbolExtensions.cs (1)
866return ((MethodSymbol)member).ExplicitInterfaceImplementations.Cast<MethodSymbol, Symbol>();
Symbols\MethodSymbol.cs (1)
350get { return ExplicitInterfaceImplementations.Any(); }
Symbols\PropertyOrEventSymbolExtensions.cs (1)
40ImmutableArray<MethodSymbol> implementedAccessors = accessor.ExplicitInterfaceImplementations;
Symbols\PublicModel\MethodSymbol.cs (1)
214return _underlying.ExplicitInterfaceImplementations.GetPublicSymbols();
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
317var impls = _underlyingMethod.ExplicitInterfaceImplementations;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1834if (implementingMethod.ExplicitInterfaceImplementations.Contains(interfaceMethod, ExplicitInterfaceImplementationTargetMemberEqualityComparer.Instance))
Symbols\SubstitutedMethodSymbol.cs (1)
282ExplicitInterfaceHelpers.SubstituteExplicitInterfaceImplementations(this.OriginalDefinition.ExplicitInterfaceImplementations, Map),
Symbols\TypeSymbol.cs (3)
1629interfaceMethod.ExplicitInterfaceImplementations); 2319/// <see cref="MethodSymbol.ExplicitInterfaceImplementations"/> API, this method returns the "Body" part 2362/// <see cref="MethodSymbol.ExplicitInterfaceImplementations"/> API. The "Body" is the method that
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenTupleTest.cs (7)
12858Assert.True(m1ToString.ExplicitInterfaceImplementations.IsEmpty); 13253Assert.Equal("void I1.M1()", m10I1M1.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 13263Assert.Equal("System.Int32 I1.P1.get", m10I1P1.GetMethod.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 13265Assert.Equal("void I1.P1.set", m10I1P1.SetMethod.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 13275Assert.Equal("void I1.E1.add", m10I1E1.AddMethod.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 13277Assert.Equal("void I1.E1.remove", m10I1E1.RemoveMethod.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 20570var m2Implementations = m2.ExplicitInterfaceImplementations;
Emit\InAttributeModifierTests.cs (2)
2627Assert.Equal("void Parent.M(in modreq(System.Runtime.InteropServices.InAttribute) System.Int32 p)", explicitImplementation.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 3327Assert.Equal("void Parent.this[in modreq(System.Runtime.InteropServices.InAttribute) System.Int32 p].set", explicitImplementation.ExplicitInterfaceImplementations.Single().ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
RefReadonlyParameterTests.cs (2)
6697Assert.Equal("I.M(in int)", m1.ExplicitInterfaceImplementations.Single().ToDisplayString()); 6704Assert.Equal("I.M(ref readonly int)", m2.ExplicitInterfaceImplementations.Single().ToDisplayString());
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (10)
525Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 592Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 704Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 1024Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 1078Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 8620Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 8706Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 8838Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 9233Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 9297Assert.Equal(implements, m.ExplicitInterfaceImplementations.Single().ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (34)
Semantics\NullableReferenceTypesTests.cs (34)
16955var cMabImplementations = ((MethodSymbol)members[0]).ExplicitInterfaceImplementations; 16958var cMcdImplementations = ((MethodSymbol)members[1]).ExplicitInterfaceImplementations; 17025var m2Implementations = m2.ExplicitInterfaceImplementations; 17104var m2Implementations = m2.ExplicitInterfaceImplementations; 17321var cMabImplementations = ((MethodSymbol)members[0]).ExplicitInterfaceImplementations; 17324var cMcdImplementations = ((MethodSymbol)members[1]).ExplicitInterfaceImplementations; 17365var cMabImplementations = ((MethodSymbol)((TypeSymbol)c).GetMember("I1<T>.M")).ExplicitInterfaceImplementations; 17368var cMcdImplementations = ((MethodSymbol)((TypeSymbol)c).GetMember("I1<U>.M")).ExplicitInterfaceImplementations; 17427var mImplementations = method.ExplicitInterfaceImplementations; 17508var mImplementations = method.ExplicitInterfaceImplementations; 17592var mImplementations = method.ExplicitInterfaceImplementations; 17673var mImplementations = method.ExplicitInterfaceImplementations; 78874var implementations = method.ExplicitInterfaceImplementations; 78892var implementations = method.ExplicitInterfaceImplementations; 100724Assert.Equal("void I<System.Object!>.F1<TF1>(TF1 x) where TF1 : System.Object!", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100729var impl = af1.ExplicitInterfaceImplementations.Single(); 100753Assert.Equal("void I<System.Object?>.F1<TF1>(TF1 x)", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100760var impl = bf1.ExplicitInterfaceImplementations.Single(); 100819Assert.Equal("void I<A!>.F1<TF1>(TF1 x) where TF1 : A!", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100824Assert.Equal("void I<A>.F1<TF1>(TF1 x) where TF1 : A", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100846Assert.Equal("void I<A?>.F1<TF1>(TF1 x) where TF1 : A?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100851Assert.Equal("void I<A>.F1<TF1>(TF1 x) where TF1 : A", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100906Assert.Equal("void I<System.Object!>.F1<TF1>(TF1 x) where TF1 : class?, System.Object!", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100910Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : class?, System.Object", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100930Assert.Equal("void I<System.Object?>.F1<TF1>(TF1 x) where TF1 : class?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100934Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : class?, System.Object", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101092Assert.Equal("void I<System.Object!>.F1<TF1>(TF1 x) where TF1 : System.Object!, B?", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101096Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : System.Object, B?", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101116Assert.Equal("void I<System.Object?>.F1<TF1>(TF1 x) where TF1 : B?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101120Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : System.Object, B?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101174Assert.Equal("void I<System.Object!, B?>.F1<TF1>(TF1 x) where TF1 : System.Object!, B?", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101178Assert.Equal("void I<System.Object, B>.F1<TF1>(TF1 x) where TF1 : B", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101198Assert.Equal("void I<System.Object?, B?>.F1<TF1>(TF1 x) where TF1 : B?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101202Assert.Equal("void I<System.Object, B>.F1<TF1>(TF1 x) where TF1 : B", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (307)
Symbols\CustomModifiersTests.cs (1)
2335Assert.Equal("System.ValueType modopt(System.Runtime.CompilerServices.IsBoxed) modopt(T?) I1.Test<T>(System.ValueType modopt(System.Runtime.CompilerServices.IsBoxed) modopt(T?) x)", test.ExplicitInterfaceImplementations[0].ToTestDisplayString());
Symbols\DefaultInterfaceImplementationTests.cs (55)
18356if (implementingProperty.GetMethod?.ExplicitInterfaceImplementations.Length > 0 || 18357implementingProperty.SetMethod?.ExplicitInterfaceImplementations.Length > 0) 51100var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 51261var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 51988var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52053var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52111var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52176var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52231var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52285var i1m1 = c2m1.ExplicitInterfaceImplementations.Single(); 52360Assert.Empty(i2m1.ExplicitInterfaceImplementations); 52539Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 52545Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 52550Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 52556Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 53623Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 53631Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 53638Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 53646Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 53794Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 53800Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 53805Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 53811Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 53913Assert.Same(i1p1.GetMethod, c2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 53918Assert.Empty(c2p1.GetMethod.ExplicitInterfaceImplementations); 53923Assert.Same(i1p1.SetMethod, c2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 53928Assert.Empty(c2p1.SetMethod.ExplicitInterfaceImplementations); 54229Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 54235Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 54240Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 54246Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 57053Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 57058Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 57515Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single()); 57519Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 58511Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single()); 58519Assert.Empty(i2p1.AddMethod.ExplicitInterfaceImplementations); 58526Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 58534Assert.Empty(i2p1.RemoveMethod.ExplicitInterfaceImplementations); 58705Assert.Same(i1p1.AddMethod, c2p1Add.ExplicitInterfaceImplementations.Single()); 58720Assert.Same(i1p1.RemoveMethod, c2p1Remove.ExplicitInterfaceImplementations.Single()); 59279Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single()); 59283Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 59335Assert.Empty(i2p1.AddMethod.ExplicitInterfaceImplementations); 59336Assert.Empty(i2p1.RemoveMethod.ExplicitInterfaceImplementations); 67154Assert.Empty(i1.GetMembers().OfType<MethodSymbol>().Single().ExplicitInterfaceImplementations); 67220Assert.Same(i2.GetMembers().OfType<MethodSymbol>().Single(), i1.GetMembers().OfType<MethodSymbol>().Single().ExplicitInterfaceImplementations.Single()); 67338Assert.Empty(m.GetMethod.ExplicitInterfaceImplementations); 67407Assert.Same(m2.GetMethod, m1.GetMethod.ExplicitInterfaceImplementations.Single()); 67526Assert.Empty(m.AddMethod.ExplicitInterfaceImplementations); 67527Assert.Empty(m.RemoveMethod.ExplicitInterfaceImplementations); 67598Assert.Same(m2.AddMethod, m1.AddMethod.ExplicitInterfaceImplementations.Single()); 67599Assert.Same(m2.RemoveMethod, m1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 68892var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 68977var i1m1 = i2m1.ExplicitInterfaceImplementations.Single();
Symbols\InterfaceImplementationTests.cs (1)
2221Single(m => m.ExplicitInterfaceImplementations.Single().MethodKind == MethodKind.EventAdd);
Symbols\Metadata\PE\LoadingMethods.cs (13)
400var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 430var explicitImpls = classMethod.ExplicitInterfaceImplementations; 468var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 504var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 532var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 555var explicitImpls = classMethod.ExplicitInterfaceImplementations; 595var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 620Assert.Equal(0, derivedClassMethod.ExplicitInterfaceImplementations.Length); 645Assert.Equal(0, classMethod.ExplicitInterfaceImplementations.Length); 649Assert.Equal(0, classGenericMethod.ExplicitInterfaceImplementations.Length); 678Assert.Equal(0, classMethod.ExplicitInterfaceImplementations.Length); 682Assert.Equal(0, classGenericMethod.ExplicitInterfaceImplementations.Length); 740var innerClassImplementingMethod = innerClassMethod.ExplicitInterfaceImplementations.Single();
Symbols\Metadata\PE\LoadingProperties.cs (4)
269Assert.True(implementedByGetter1.SetEquals(classProperty1.GetMethod.ExplicitInterfaceImplementations, ReferenceEqualityComparer.Instance)); 272Assert.True(implementedBySetter1.SetEquals(classProperty1.SetMethod.ExplicitInterfaceImplementations, ReferenceEqualityComparer.Instance)); 275Assert.True(implementedByGetter2.SetEquals(classProperty2.GetMethod.ExplicitInterfaceImplementations, ReferenceEqualityComparer.Instance)); 278Assert.True(implementedBySetter2.SetEquals(classProperty2.SetMethod.ExplicitInterfaceImplementations, ReferenceEqualityComparer.Instance));
Symbols\Metadata\PE\NoPia.cs (1)
1419Assert.Same(i1F1, baseI1F1.ExplicitInterfaceImplementations.Single());
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (1)
350MethodSymbol explicitImpl = methodSymbol.ExplicitInterfaceImplementations.Single();
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
195Assert.True(!m1.ExplicitInterfaceImplementations.IsDefault); 196Assert.Equal(0, m1.ExplicitInterfaceImplementations.Length);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (9)
89Assert.Equal(interfaceV1, method.ExplicitInterfaceImplementations.Single().ContainingType); 159var retargetedClassCMethod1Impl = retargetedClassCMethod1.ExplicitInterfaceImplementations.Single(); 171Assert.False(retargetedClassCMethod2.ExplicitInterfaceImplementations.Any()); 180Assert.False(retargetedClassCMethod3.ExplicitInterfaceImplementations.Any()); 188var retargetedClassCMethod4Impl = retargetedClassCMethod4.ExplicitInterfaceImplementations.Single(); 402var retargetedClassC1Method1Impl = retargetedClassC1Method1.ExplicitInterfaceImplementations.Single(); 406var retargetedClassC2Method1Impl = retargetedClassC2Method1.ExplicitInterfaceImplementations.Single(); 410var retargetedClassC3Method1Impl = retargetedClassC3Method1.ExplicitInterfaceImplementations.Single(); 470Assert.Equal(c2.Interfaces().Single().GetMethod("M"), m.ExplicitInterfaceImplementations.Single());
Symbols\Retargeting\RetargetingTests.cs (4)
273implemented_m = m.ExplicitInterfaceImplementations[0]; 283implemented_n = n.ExplicitInterfaceImplementations[0]; 301implemented_m = c.GetMethod("I<CT>.M").ExplicitInterfaceImplementations[0]; 308implemented_n = c.GetMethod("I<CT>.N").ExplicitInterfaceImplementations[0];
Symbols\Source\MethodTests.cs (6)
1469var em1 = m1.ExplicitInterfaceImplementations.First() as MethodSymbol; 1634MethodSymbol mvoidreturn = (MethodSymbol)mreturn.ExplicitInterfaceImplementations.Single(); 1679var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 1723var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 1770var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single(); 1823var explicitImpl = classMethod.ExplicitInterfaceImplementations.Single();
Symbols\Source\PropertyTests.cs (3)
2502Assert.Equal(interfacePropertyGetter, classPropertyGetter.ExplicitInterfaceImplementations.Single()); 2503Assert.Equal(interfacePropertySetter, classPropertySetter.ExplicitInterfaceImplementations.Single()); 2541Assert.Equal(interfacePropertyGetter, classPropertyGetter.ExplicitInterfaceImplementations.Single());
Symbols\StaticAbstractMembersInInterfacesTests.cs (207)
16071Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 16075Assert.Empty(cM01.ExplicitInterfaceImplementations); 16130Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 16193Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 16287Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16427Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single()); 16478Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single()); 16489Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16495Assert.Empty(c2M01.ExplicitInterfaceImplementations); 16563Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16576Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16582Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16598Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single()); 16682Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16688Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single()); 16775Assert.Empty(c2M01.ExplicitInterfaceImplementations); 16781Assert.Same(m01, c3M01.ExplicitInterfaceImplementations.Single()); 16863Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16867Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16945Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16949Assert.Empty(c1M01.ExplicitInterfaceImplementations); 17019Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17090Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17173Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17177Assert.Empty(c1M01.ExplicitInterfaceImplementations); 17260Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17264Assert.Empty(c1M01.ExplicitInterfaceImplementations); 17357Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17370Assert.Empty(method.ExplicitInterfaceImplementations); 17459Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17472Assert.Empty(method.ExplicitInterfaceImplementations); 19864Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 19868Assert.Empty(cM01.ExplicitInterfaceImplementations); 19945Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 19949Assert.Empty(cM01.ExplicitInterfaceImplementations); 20037Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 20041Assert.Empty(cM01.ExplicitInterfaceImplementations); 20132Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20215Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20307Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20396Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 20477Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20551Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20634Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20714Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 20824Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 20959Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21207Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single()); 21272Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single()); 21354Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21367Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21376Assert.Empty(c2M01.ExplicitInterfaceImplementations); 21467Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21480Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21486Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21502Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21578Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21591Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21597Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21613Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21713Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21726Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21732Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21747Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 22013Assert.Empty(c1M01.ExplicitInterfaceImplementations); 22019Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 22140Assert.Empty(c2M01.ExplicitInterfaceImplementations); 22146Assert.Equal(m01, c3M01.ExplicitInterfaceImplementations.Single()); 22257Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 22261Assert.Empty(c1M01.ExplicitInterfaceImplementations); 22359Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 22469Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 22473Assert.Empty(c1M01.ExplicitInterfaceImplementations); 23519Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 23520Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 23525Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 23526Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 23610Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 23615Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 23618Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 23703Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 23704Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 23773Assert.Same(m01.GetMethod, cM01.GetMethod.ExplicitInterfaceImplementations.Single()); 23774Assert.Same(m01.SetMethod, cM01.SetMethod.ExplicitInterfaceImplementations.Single()); 23928Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 23929Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24222Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24294Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24295Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24300Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 24301Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 24332Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24333Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24385Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24389Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 24458Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24574Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24646Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24647Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24652Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 24653Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 24684Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24685Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24737Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24741Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 24810Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24896Assert.Same(m01.GetMethod, i2M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24897Assert.Same(m01.SetMethod, i2M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24959Assert.Same(m01.GetMethod, c2M01Get.ExplicitInterfaceImplementations.Single()); 24965Assert.Same(m01.SetMethod, c2M01Set.ExplicitInterfaceImplementations.Single()); 24988Assert.Empty(c1M01Get.ExplicitInterfaceImplementations); 24999Assert.Empty(c1M01Set.ExplicitInterfaceImplementations); 25014Assert.Empty(c2M01Get.ExplicitInterfaceImplementations); 25020Assert.Empty(c2M01Set.ExplicitInterfaceImplementations); 25146Assert.Empty(c1M01Set.ExplicitInterfaceImplementations); 25156Assert.Same(m01.GetMethod, c1M01Get.ExplicitInterfaceImplementations.Single()); 25161Assert.Same(m01.SetMethod, c1M01Set.ExplicitInterfaceImplementations.Single()); 25172Assert.Empty(c1M01Get.ExplicitInterfaceImplementations); 25197Assert.Same(m01.GetMethod, c2M01Get.ExplicitInterfaceImplementations.Single()); 25209Assert.Same(m01.SetMethod, c2M01Set.ExplicitInterfaceImplementations.Single()); 25237Assert.Same(m01.GetMethod, c3M01Get.ExplicitInterfaceImplementations.Single()); 25249Assert.Same(m01.SetMethod, c3M01Set.ExplicitInterfaceImplementations.Single()); 25344Assert.Empty(c1M01Get.ExplicitInterfaceImplementations); 25354Assert.Empty(c1M01Set.ExplicitInterfaceImplementations); 25473Assert.Empty(c2M01Get.ExplicitInterfaceImplementations); 25481Assert.Empty(c2M01Set.ExplicitInterfaceImplementations); 25491Assert.Same(m01.GetMethod, c3M01Get.ExplicitInterfaceImplementations.Single()); 25495Assert.Same(m01.SetMethod, c3M01Set.ExplicitInterfaceImplementations.Single()); 26297Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single()); 26298Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single()); 26303Assert.Empty(cM01Add.ExplicitInterfaceImplementations); 26304Assert.Empty(cM01Remove.ExplicitInterfaceImplementations); 26390Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single()); 26391Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single()); 26460Assert.Same(m01.AddMethod, cM01.AddMethod.ExplicitInterfaceImplementations.Single()); 26461Assert.Same(m01.RemoveMethod, cM01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 26620Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 26621Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 26873Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 26936Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single()); 26938Assert.Same(m01.RemoveMethod, cM01Remove.ExplicitInterfaceImplementations.Single()); 26942Assert.Empty(cM01Add.ExplicitInterfaceImplementations); 26944Assert.Empty(cM01Remove.ExplicitInterfaceImplementations); 26971Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 26972Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27061Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27147Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27210Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single()); 27212Assert.Same(m01.AddMethod, cM01Add.ExplicitInterfaceImplementations.Single()); 27216Assert.Empty(cM01Remove.ExplicitInterfaceImplementations); 27218Assert.Empty(cM01Add.ExplicitInterfaceImplementations); 27245Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27246Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 27335Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 27424Assert.Same(m01.AddMethod, i2M01.AddMethod.ExplicitInterfaceImplementations.Single()); 27425Assert.Same(m01.RemoveMethod, i2M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27487Assert.Same(m01.AddMethod, c2M01Add.ExplicitInterfaceImplementations.Single()); 27493Assert.Same(m01.RemoveMethod, c2M01Remove.ExplicitInterfaceImplementations.Single()); 27516Assert.Empty(c1M01Add.ExplicitInterfaceImplementations); 27527Assert.Empty(c1M01Remove.ExplicitInterfaceImplementations); 27542Assert.Empty(c2M01Add.ExplicitInterfaceImplementations); 27548Assert.Empty(c2M01Remove.ExplicitInterfaceImplementations); 27677Assert.Empty(c1M01Add.ExplicitInterfaceImplementations); 27688Assert.Empty(c1M01Remove.ExplicitInterfaceImplementations); 27701Assert.Same(m01.AddMethod, c1M01Add.ExplicitInterfaceImplementations.Single()); 27713Assert.Same(m01.RemoveMethod, c1M01Remove.ExplicitInterfaceImplementations.Single()); 27754Assert.Same(m01.AddMethod, c2M01Add.ExplicitInterfaceImplementations.Single()); 27766Assert.Same(m01.RemoveMethod, c2M01Remove.ExplicitInterfaceImplementations.Single()); 27788Assert.Empty(c3M02Add.ExplicitInterfaceImplementations); 27799Assert.Empty(c3M02Remove.ExplicitInterfaceImplementations); 27812Assert.Same(m02.AddMethod, c3M02Add.ExplicitInterfaceImplementations.Single()); 27824Assert.Same(m02.RemoveMethod, c3M02Remove.ExplicitInterfaceImplementations.Single()); 27868Assert.Same(m02.AddMethod, c4M02Add.ExplicitInterfaceImplementations.Single()); 27881Assert.Same(m02.RemoveMethod, c4M02Remove.ExplicitInterfaceImplementations.Single()); 28009Assert.Empty(c1M01Add.ExplicitInterfaceImplementations); 28019Assert.Empty(c1M01Remove.ExplicitInterfaceImplementations); 28139Assert.Empty(c2M01Add.ExplicitInterfaceImplementations); 28147Assert.Empty(c2M01Remove.ExplicitInterfaceImplementations); 28157Assert.Same(m01.AddMethod, c3M01Add.ExplicitInterfaceImplementations.Single()); 28161Assert.Same(m01.RemoveMethod, c3M01Remove.ExplicitInterfaceImplementations.Single()); 29221Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 29225Assert.Empty(cM01.ExplicitInterfaceImplementations); 29246Assert.Equal(m02, cM02.ExplicitInterfaceImplementations.Single()); 29250Assert.Empty(cM02.ExplicitInterfaceImplementations); 29344Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 29360Assert.Equal(m02, cM02.ExplicitInterfaceImplementations.Single()); 29441Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 29563Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 29736Assert.Equal(m01, i2M01.ExplicitInterfaceImplementations.Single()); 29813Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 29826Assert.Empty(c1M01.ExplicitInterfaceImplementations); 29835Assert.Empty(c2M01.ExplicitInterfaceImplementations); 29925Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 29938Assert.Empty(c1M01.ExplicitInterfaceImplementations); 29944Assert.Empty(c1M01.ExplicitInterfaceImplementations); 29960Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 30074Assert.Empty(c1M01.ExplicitInterfaceImplementations); 30080Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 30192Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 30196Assert.Empty(c1M01.ExplicitInterfaceImplementations); 30291Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 32178var bM1Impl = ((MethodSymbol)bM1).ExplicitInterfaceImplementations; 32179var bM2Impl = ((MethodSymbol)bM2).ExplicitInterfaceImplementations; 32276var dM1Impl = ((MethodSymbol)dM1).ExplicitInterfaceImplementations; 32277var dM2Impl = ((MethodSymbol)dM2).ExplicitInterfaceImplementations; 32347var dM1Impl = ((MethodSymbol)dM1).ExplicitInterfaceImplementations; 32348var dM2Impl = ((MethodSymbol)dM2).ExplicitInterfaceImplementations;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
95Assert.Empty(symbol.ExplicitInterfaceImplementations);