24 overrides of ExplicitInterfaceImplementations
Microsoft.CodeAnalysis.CSharp (24)
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)
72public 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)
1345public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\NativeIntegerTypeSymbol.cs (1)
389public 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)
183public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Source\LocalFunctionSymbol.cs (1)
342public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => ImmutableArray<MethodSymbol>.Empty;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
852public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\SubstitutedMethodSymbol.cs (1)
269public sealed override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
188public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations
Symbols\Synthesized\SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs (1)
175public 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)
333var explicitImplementations = method.ExplicitInterfaceImplementations; 338foreach (var implemented in method.ExplicitInterfaceImplementations) 414foreach (var implemented in method.ExplicitInterfaceImplementations)
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
20Debug.Assert(originalMethod.ExplicitInterfaceImplementations.IsEmpty);
Symbols\MemberSymbolExtensions.cs (1)
872return ((MethodSymbol)member).ExplicitInterfaceImplementations.Cast<MethodSymbol, Symbol>();
Symbols\MethodSymbol.cs (1)
354get { return ExplicitInterfaceImplementations.Any(); }
Symbols\PropertyOrEventSymbolExtensions.cs (1)
40ImmutableArray<MethodSymbol> implementedAccessors = accessor.ExplicitInterfaceImplementations;
Symbols\PublicModel\MethodSymbol.cs (1)
228return _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)
1617interfaceMethod.ExplicitInterfaceImplementations); 2308/// <see cref="MethodSymbol.ExplicitInterfaceImplementations"/> API, this method returns the "Body" part 2351/// <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)
3516Assert.Equal("void Parent.M(in modreq(System.Runtime.InteropServices.InAttribute) System.Int32 p)", explicitImplementation.ExplicitInterfaceImplementations.Single().ToTestDisplayString()); 4216Assert.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)
6724Assert.Equal("I.M(in int)", m1.ExplicitInterfaceImplementations.Single().ToDisplayString()); 6731Assert.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)
16959var cMabImplementations = ((MethodSymbol)members[0]).ExplicitInterfaceImplementations; 16962var cMcdImplementations = ((MethodSymbol)members[1]).ExplicitInterfaceImplementations; 17029var m2Implementations = m2.ExplicitInterfaceImplementations; 17108var m2Implementations = m2.ExplicitInterfaceImplementations; 17325var cMabImplementations = ((MethodSymbol)members[0]).ExplicitInterfaceImplementations; 17328var cMcdImplementations = ((MethodSymbol)members[1]).ExplicitInterfaceImplementations; 17369var cMabImplementations = ((MethodSymbol)((TypeSymbol)c).GetMember("I1<T>.M")).ExplicitInterfaceImplementations; 17372var cMcdImplementations = ((MethodSymbol)((TypeSymbol)c).GetMember("I1<U>.M")).ExplicitInterfaceImplementations; 17431var mImplementations = method.ExplicitInterfaceImplementations; 17512var mImplementations = method.ExplicitInterfaceImplementations; 17596var mImplementations = method.ExplicitInterfaceImplementations; 17677var mImplementations = method.ExplicitInterfaceImplementations; 78933var implementations = method.ExplicitInterfaceImplementations; 78951var implementations = method.ExplicitInterfaceImplementations; 100805Assert.Equal("void I<System.Object!>.F1<TF1>(TF1 x) where TF1 : System.Object!", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100810var impl = af1.ExplicitInterfaceImplementations.Single(); 100834Assert.Equal("void I<System.Object?>.F1<TF1>(TF1 x)", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100841var impl = bf1.ExplicitInterfaceImplementations.Single(); 100900Assert.Equal("void I<A!>.F1<TF1>(TF1 x) where TF1 : A!", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100905Assert.Equal("void I<A>.F1<TF1>(TF1 x) where TF1 : A", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100927Assert.Equal("void I<A?>.F1<TF1>(TF1 x) where TF1 : A?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100932Assert.Equal("void I<A>.F1<TF1>(TF1 x) where TF1 : A", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100987Assert.Equal("void I<System.Object!>.F1<TF1>(TF1 x) where TF1 : class?, System.Object!", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 100991Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : class?, System.Object", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101011Assert.Equal("void I<System.Object?>.F1<TF1>(TF1 x) where TF1 : class?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101015Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : class?, System.Object", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101173Assert.Equal("void I<System.Object!>.F1<TF1>(TF1 x) where TF1 : System.Object!, B?", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101177Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : System.Object, B?", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101197Assert.Equal("void I<System.Object?>.F1<TF1>(TF1 x) where TF1 : B?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101201Assert.Equal("void I<System.Object>.F1<TF1>(TF1 x) where TF1 : System.Object, B?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101255Assert.Equal("void I<System.Object!, B?>.F1<TF1>(TF1 x) where TF1 : System.Object!, B?", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101259Assert.Equal("void I<System.Object, B>.F1<TF1>(TF1 x) where TF1 : B", af1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101279Assert.Equal("void I<System.Object?, B?>.F1<TF1>(TF1 x) where TF1 : B?", bf1.ExplicitInterfaceImplementations.Single().ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)); 101283Assert.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)
18367if (implementingProperty.GetMethod?.ExplicitInterfaceImplementations.Length > 0 || 18368implementingProperty.SetMethod?.ExplicitInterfaceImplementations.Length > 0) 51096var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 51257var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 51984var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52049var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52107var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52172var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52227var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 52281var i1m1 = c2m1.ExplicitInterfaceImplementations.Single(); 52356Assert.Empty(i2m1.ExplicitInterfaceImplementations); 52535Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 52541Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 52546Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 52552Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 53619Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 53627Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 53634Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 53642Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 53790Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 53796Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 53801Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 53807Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 53909Assert.Same(i1p1.GetMethod, c2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 53914Assert.Empty(c2p1.GetMethod.ExplicitInterfaceImplementations); 53919Assert.Same(i1p1.SetMethod, c2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 53924Assert.Empty(c2p1.SetMethod.ExplicitInterfaceImplementations); 54225Assert.Same(i1p1.GetMethod, i2p1.GetMethod.ExplicitInterfaceImplementations.Single()); 54231Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 54236Assert.Same(i1p1.SetMethod, i2p1.SetMethod.ExplicitInterfaceImplementations.Single()); 54242Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 57049Assert.Empty(i2p1.GetMethod.ExplicitInterfaceImplementations); 57054Assert.Empty(i2p1.SetMethod.ExplicitInterfaceImplementations); 57511Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single()); 57515Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 58507Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single()); 58515Assert.Empty(i2p1.AddMethod.ExplicitInterfaceImplementations); 58522Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 58530Assert.Empty(i2p1.RemoveMethod.ExplicitInterfaceImplementations); 58701Assert.Same(i1p1.AddMethod, c2p1Add.ExplicitInterfaceImplementations.Single()); 58716Assert.Same(i1p1.RemoveMethod, c2p1Remove.ExplicitInterfaceImplementations.Single()); 59275Assert.Same(i1p1.AddMethod, i2p1.AddMethod.ExplicitInterfaceImplementations.Single()); 59279Assert.Same(i1p1.RemoveMethod, i2p1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 59331Assert.Empty(i2p1.AddMethod.ExplicitInterfaceImplementations); 59332Assert.Empty(i2p1.RemoveMethod.ExplicitInterfaceImplementations); 67150Assert.Empty(i1.GetMembers().OfType<MethodSymbol>().Single().ExplicitInterfaceImplementations); 67216Assert.Same(i2.GetMembers().OfType<MethodSymbol>().Single(), i1.GetMembers().OfType<MethodSymbol>().Single().ExplicitInterfaceImplementations.Single()); 67334Assert.Empty(m.GetMethod.ExplicitInterfaceImplementations); 67403Assert.Same(m2.GetMethod, m1.GetMethod.ExplicitInterfaceImplementations.Single()); 67522Assert.Empty(m.AddMethod.ExplicitInterfaceImplementations); 67523Assert.Empty(m.RemoveMethod.ExplicitInterfaceImplementations); 67594Assert.Same(m2.AddMethod, m1.AddMethod.ExplicitInterfaceImplementations.Single()); 67595Assert.Same(m2.RemoveMethod, m1.RemoveMethod.ExplicitInterfaceImplementations.Single()); 68888var i1m1 = i2m1.ExplicitInterfaceImplementations.Single(); 68973var 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)
15993Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 15997Assert.Empty(cM01.ExplicitInterfaceImplementations); 16052Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 16115Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 16209Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16349Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single()); 16400Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single()); 16411Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16417Assert.Empty(c2M01.ExplicitInterfaceImplementations); 16485Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16498Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16504Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16520Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single()); 16604Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16610Assert.Same(m01, c2M01.ExplicitInterfaceImplementations.Single()); 16697Assert.Empty(c2M01.ExplicitInterfaceImplementations); 16703Assert.Same(m01, c3M01.ExplicitInterfaceImplementations.Single()); 16785Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16789Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16867Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 16871Assert.Empty(c1M01.ExplicitInterfaceImplementations); 16941Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17012Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17095Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17099Assert.Empty(c1M01.ExplicitInterfaceImplementations); 17182Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17186Assert.Empty(c1M01.ExplicitInterfaceImplementations); 17279Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17292Assert.Empty(method.ExplicitInterfaceImplementations); 17381Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 17394Assert.Empty(method.ExplicitInterfaceImplementations); 19786Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 19790Assert.Empty(cM01.ExplicitInterfaceImplementations); 19867Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 19871Assert.Empty(cM01.ExplicitInterfaceImplementations); 19959Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 19963Assert.Empty(cM01.ExplicitInterfaceImplementations); 20054Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20137Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20229Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20318Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 20399Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20473Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20556Assert.Same(m01, cM01.ExplicitInterfaceImplementations.Single()); 20636Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 20746Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 20881Assert.Same(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21129Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single()); 21194Assert.Same(m01, i2M01.ExplicitInterfaceImplementations.Single()); 21276Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21289Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21298Assert.Empty(c2M01.ExplicitInterfaceImplementations); 21389Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21402Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21408Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21424Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21500Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21513Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21519Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21535Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21635Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 21648Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21654Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21669Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 21935Assert.Empty(c1M01.ExplicitInterfaceImplementations); 21941Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 22062Assert.Empty(c2M01.ExplicitInterfaceImplementations); 22068Assert.Equal(m01, c3M01.ExplicitInterfaceImplementations.Single()); 22179Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 22183Assert.Empty(c1M01.ExplicitInterfaceImplementations); 22281Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 22391Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 22395Assert.Empty(c1M01.ExplicitInterfaceImplementations); 23441Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 23442Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 23447Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 23448Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 23532Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 23537Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 23540Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 23625Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 23626Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 23695Assert.Same(m01.GetMethod, cM01.GetMethod.ExplicitInterfaceImplementations.Single()); 23696Assert.Same(m01.SetMethod, cM01.SetMethod.ExplicitInterfaceImplementations.Single()); 23850Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 23851Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24144Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24216Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24217Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24222Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 24223Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 24254Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24255Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24307Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24311Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 24380Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24496Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24568Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24569Assert.Same(m01Get, cM01Get.ExplicitInterfaceImplementations.Single()); 24574Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 24575Assert.Empty(cM01Get.ExplicitInterfaceImplementations); 24606Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24607Assert.Same(m01.SetMethod, c1M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24659Assert.Same(m01Set, cM01Set.ExplicitInterfaceImplementations.Single()); 24663Assert.Empty(cM01Set.ExplicitInterfaceImplementations); 24732Assert.Same(m01.GetMethod, c1M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24818Assert.Same(m01.GetMethod, i2M01.GetMethod.ExplicitInterfaceImplementations.Single()); 24819Assert.Same(m01.SetMethod, i2M01.SetMethod.ExplicitInterfaceImplementations.Single()); 24881Assert.Same(m01.GetMethod, c2M01Get.ExplicitInterfaceImplementations.Single()); 24887Assert.Same(m01.SetMethod, c2M01Set.ExplicitInterfaceImplementations.Single()); 24910Assert.Empty(c1M01Get.ExplicitInterfaceImplementations); 24921Assert.Empty(c1M01Set.ExplicitInterfaceImplementations); 24936Assert.Empty(c2M01Get.ExplicitInterfaceImplementations); 24942Assert.Empty(c2M01Set.ExplicitInterfaceImplementations); 25068Assert.Empty(c1M01Set.ExplicitInterfaceImplementations); 25078Assert.Same(m01.GetMethod, c1M01Get.ExplicitInterfaceImplementations.Single()); 25083Assert.Same(m01.SetMethod, c1M01Set.ExplicitInterfaceImplementations.Single()); 25094Assert.Empty(c1M01Get.ExplicitInterfaceImplementations); 25119Assert.Same(m01.GetMethod, c2M01Get.ExplicitInterfaceImplementations.Single()); 25131Assert.Same(m01.SetMethod, c2M01Set.ExplicitInterfaceImplementations.Single()); 25159Assert.Same(m01.GetMethod, c3M01Get.ExplicitInterfaceImplementations.Single()); 25171Assert.Same(m01.SetMethod, c3M01Set.ExplicitInterfaceImplementations.Single()); 25266Assert.Empty(c1M01Get.ExplicitInterfaceImplementations); 25276Assert.Empty(c1M01Set.ExplicitInterfaceImplementations); 25395Assert.Empty(c2M01Get.ExplicitInterfaceImplementations); 25403Assert.Empty(c2M01Set.ExplicitInterfaceImplementations); 25413Assert.Same(m01.GetMethod, c3M01Get.ExplicitInterfaceImplementations.Single()); 25417Assert.Same(m01.SetMethod, c3M01Set.ExplicitInterfaceImplementations.Single()); 26219Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single()); 26220Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single()); 26225Assert.Empty(cM01Add.ExplicitInterfaceImplementations); 26226Assert.Empty(cM01Remove.ExplicitInterfaceImplementations); 26312Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single()); 26313Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single()); 26382Assert.Same(m01.AddMethod, cM01.AddMethod.ExplicitInterfaceImplementations.Single()); 26383Assert.Same(m01.RemoveMethod, cM01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 26542Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 26543Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 26795Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 26858Assert.Same(m01Add, cM01Add.ExplicitInterfaceImplementations.Single()); 26860Assert.Same(m01.RemoveMethod, cM01Remove.ExplicitInterfaceImplementations.Single()); 26864Assert.Empty(cM01Add.ExplicitInterfaceImplementations); 26866Assert.Empty(cM01Remove.ExplicitInterfaceImplementations); 26893Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 26894Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 26983Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27069Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27132Assert.Same(m01Remove, cM01Remove.ExplicitInterfaceImplementations.Single()); 27134Assert.Same(m01.AddMethod, cM01Add.ExplicitInterfaceImplementations.Single()); 27138Assert.Empty(cM01Remove.ExplicitInterfaceImplementations); 27140Assert.Empty(cM01Add.ExplicitInterfaceImplementations); 27167Assert.Same(m01.RemoveMethod, c1M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27168Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 27257Assert.Same(m01.AddMethod, c1M01.AddMethod.ExplicitInterfaceImplementations.Single()); 27346Assert.Same(m01.AddMethod, i2M01.AddMethod.ExplicitInterfaceImplementations.Single()); 27347Assert.Same(m01.RemoveMethod, i2M01.RemoveMethod.ExplicitInterfaceImplementations.Single()); 27409Assert.Same(m01.AddMethod, c2M01Add.ExplicitInterfaceImplementations.Single()); 27415Assert.Same(m01.RemoveMethod, c2M01Remove.ExplicitInterfaceImplementations.Single()); 27438Assert.Empty(c1M01Add.ExplicitInterfaceImplementations); 27449Assert.Empty(c1M01Remove.ExplicitInterfaceImplementations); 27464Assert.Empty(c2M01Add.ExplicitInterfaceImplementations); 27470Assert.Empty(c2M01Remove.ExplicitInterfaceImplementations); 27599Assert.Empty(c1M01Add.ExplicitInterfaceImplementations); 27610Assert.Empty(c1M01Remove.ExplicitInterfaceImplementations); 27623Assert.Same(m01.AddMethod, c1M01Add.ExplicitInterfaceImplementations.Single()); 27635Assert.Same(m01.RemoveMethod, c1M01Remove.ExplicitInterfaceImplementations.Single()); 27676Assert.Same(m01.AddMethod, c2M01Add.ExplicitInterfaceImplementations.Single()); 27688Assert.Same(m01.RemoveMethod, c2M01Remove.ExplicitInterfaceImplementations.Single()); 27710Assert.Empty(c3M02Add.ExplicitInterfaceImplementations); 27721Assert.Empty(c3M02Remove.ExplicitInterfaceImplementations); 27734Assert.Same(m02.AddMethod, c3M02Add.ExplicitInterfaceImplementations.Single()); 27746Assert.Same(m02.RemoveMethod, c3M02Remove.ExplicitInterfaceImplementations.Single()); 27790Assert.Same(m02.AddMethod, c4M02Add.ExplicitInterfaceImplementations.Single()); 27803Assert.Same(m02.RemoveMethod, c4M02Remove.ExplicitInterfaceImplementations.Single()); 27931Assert.Empty(c1M01Add.ExplicitInterfaceImplementations); 27941Assert.Empty(c1M01Remove.ExplicitInterfaceImplementations); 28061Assert.Empty(c2M01Add.ExplicitInterfaceImplementations); 28069Assert.Empty(c2M01Remove.ExplicitInterfaceImplementations); 28079Assert.Same(m01.AddMethod, c3M01Add.ExplicitInterfaceImplementations.Single()); 28083Assert.Same(m01.RemoveMethod, c3M01Remove.ExplicitInterfaceImplementations.Single()); 29143Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 29147Assert.Empty(cM01.ExplicitInterfaceImplementations); 29168Assert.Equal(m02, cM02.ExplicitInterfaceImplementations.Single()); 29172Assert.Empty(cM02.ExplicitInterfaceImplementations); 29266Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 29282Assert.Equal(m02, cM02.ExplicitInterfaceImplementations.Single()); 29363Assert.Equal(m01, cM01.ExplicitInterfaceImplementations.Single()); 29485Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 29658Assert.Equal(m01, i2M01.ExplicitInterfaceImplementations.Single()); 29735Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 29748Assert.Empty(c1M01.ExplicitInterfaceImplementations); 29757Assert.Empty(c2M01.ExplicitInterfaceImplementations); 29847Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 29860Assert.Empty(c1M01.ExplicitInterfaceImplementations); 29866Assert.Empty(c1M01.ExplicitInterfaceImplementations); 29882Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 29996Assert.Empty(c1M01.ExplicitInterfaceImplementations); 30002Assert.Equal(m01, c2M01.ExplicitInterfaceImplementations.Single()); 30114Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 30118Assert.Empty(c1M01.ExplicitInterfaceImplementations); 30213Assert.Equal(m01, c1M01.ExplicitInterfaceImplementations.Single()); 32100var bM1Impl = ((MethodSymbol)bM1).ExplicitInterfaceImplementations; 32101var bM2Impl = ((MethodSymbol)bM2).ExplicitInterfaceImplementations; 32198var dM1Impl = ((MethodSymbol)dM1).ExplicitInterfaceImplementations; 32199var dM2Impl = ((MethodSymbol)dM2).ExplicitInterfaceImplementations; 32269var dM1Impl = ((MethodSymbol)dM1).ExplicitInterfaceImplementations; 32270var dM2Impl = ((MethodSymbol)dM2).ExplicitInterfaceImplementations;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
95Assert.Empty(symbol.ExplicitInterfaceImplementations);