95 references to ExplicitInterfaceImplementation
Microsoft.CodeAnalysis.CSharp (27)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
490case MethodKind.ExplicitInterfaceImplementation:
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
815_packedFlags.MethodKind == MethodKind.ExplicitInterfaceImplementation); 1284return MethodKind.ExplicitInterfaceImplementation;
Symbols\MethodSymbol.cs (1)
607case MethodKind.ExplicitInterfaceImplementation:
Symbols\MethodSymbolExtensions.cs (1)
221method.MethodKind is (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet) &&
Symbols\PublicModel\MethodSymbol.cs (2)
53case MethodKind.ExplicitInterfaceImplementation: 54return MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
97if (method.MethodKind != MethodKind.ExplicitInterfaceImplementation)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4066case MethodKind.ExplicitInterfaceImplementation:
Symbols\Source\SourceMemberMethodSymbol.cs (1)
340if (this.DeclaredAccessibility <= Accessibility.Private || MethodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
61if (MethodKind == MethodKind.ExplicitInterfaceImplementation) 92if (MethodKind != MethodKind.ExplicitInterfaceImplementation) 198return MethodKind == MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (7)
38: MethodKind.ExplicitInterfaceImplementation; 76ModifierUtils.CheckAccessibility(this.DeclarationModifiers, this, isExplicitInterfaceImplementation: methodKind == MethodKind.ExplicitInterfaceImplementation, diagnostics, location); 105isExplicitInterfaceImplementation: methodKind == MethodKind.ExplicitInterfaceImplementation, 680CheckModifiers(MethodKind == MethodKind.ExplicitInterfaceImplementation, _location, diagnostics); 690bool isExplicitInterfaceImplementation = methodKind == MethodKind.ExplicitInterfaceImplementation; 775methodKind == MethodKind.ExplicitInterfaceImplementation); 777else if (methodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
44: MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
49: MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (3)
47isExplicitInterfaceImplementation: methodKind == MethodKind.ExplicitInterfaceImplementation, 127bool isExplicitInterfaceImplementation = methodKind == MethodKind.ExplicitInterfaceImplementation; 344if (MethodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Synthesized\SynthesizedExplicitImplementationForwardingMethod.cs (1)
44MethodKind.ExplicitInterfaceImplementation;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
142return MethodKind.ExplicitInterfaceImplementation;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
176if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\IndexerTests.cs (2)
162Assert.Equal(MethodKind.ExplicitInterfaceImplementation, getMethod.MethodKind); //since CallMethodsDirectly 167Assert.Equal(MethodKind.ExplicitInterfaceImplementation, setMethod.MethodKind); //since CallMethodsDirectly
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
176if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (56)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
2854Assert.Equal(MethodKind.ExplicitInterfaceImplementation, explicitMethodSymbol.MethodKind);
DocumentationComments\DocumentationCommentIDTests.cs (1)
351var method = type.GetMembersUnordered().OfType<MethodSymbol>().Single(m => m.MethodKind == MethodKind.ExplicitInterfaceImplementation);
Symbols\InterfaceImplementationTests.cs (7)
131Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classExplicitImplementationBase.MethodKind); 134Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classExplicitImplementation.MethodKind); 440Assert.Equal(MethodKind.ExplicitInterfaceImplementation, baseClassExplicitImplementationBase.MethodKind); 443Assert.Equal(MethodKind.ExplicitInterfaceImplementation, baseClassExplicitImplementation.MethodKind); 681Assert.Equal(MethodKind.ExplicitInterfaceImplementation, baseClassMethod.MethodKind); 2220Where(m => m.MethodKind == MethodKind.ExplicitInterfaceImplementation). 2296Single(m => m.MethodKind == MethodKind.ExplicitInterfaceImplementation);
Symbols\Metadata\PE\LoadingMethods.cs (4)
398Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind); 466Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind); 502Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind); 593Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (5)
87if (method.MethodKind == MethodKind.ExplicitInterfaceImplementation) 157Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod1.MethodKind); 168Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod2.MethodKind); 177Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod3.MethodKind); 186Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod4.MethodKind);
Symbols\Source\CustomModifierCopyTests.cs (2)
1486m => m.MethodKind == MethodKind.ExplicitInterfaceImplementation); 1530m => m.MethodKind == MethodKind.ExplicitInterfaceImplementation);
Symbols\Source\MethodTests.cs (4)
1676Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind); 1720Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind); 1766Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind); 1820Assert.Equal(MethodKind.ExplicitInterfaceImplementation, classMethod.MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (32)
16145Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM01.MethodKind); 16494Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 16579Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 16613Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 19589Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM01.MethodKind); 19672Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM01.MethodKind); 19764Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM01.MethodKind); 19853Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM01.MethodKind); 20285Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 20420Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 20811Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 20927Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 20961Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 21038Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 21072Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 21173Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 21206Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 24417Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01Get.MethodKind); 24423Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01Set.MethodKind); 24621Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01Set.MethodKind); 26945Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01Add.MethodKind); 26951Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01Remove.MethodKind); 27161Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01Add.MethodKind); 27173Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01Remove.MethodKind); 27272Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c3M02Add.MethodKind); 27284Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c3M02Remove.MethodKind); 28801Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM01.MethodKind); 28817Assert.Equal(MethodKind.ExplicitInterfaceImplementation, cM02.MethodKind); 29024Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 29270Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind); 29385Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c1M01.MethodKind); 29419Assert.Equal(MethodKind.ExplicitInterfaceImplementation, c2M01.MethodKind);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2495var method = type.GetMembers().Single(m => m is IMethodSymbol { MethodKind: MethodKind.ExplicitInterfaceImplementation });
Microsoft.CodeAnalysis.Features (1)
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
78MethodKind: MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.UserDefinedOperator or MethodKind.Conversion
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
125new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.ExplicitInterfaceImplementation, ReturnsVoid = true }, // C# only
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
BasicTrackingDiagnosticAnalyzer.vb (1)
17methodKind <> MethodKind.ExplicitInterfaceImplementation
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (1)
744case MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation:
FindSymbols\FindReferences\Finders\ExplicitInterfaceMethodReferenceFinder.cs (1)
16=> symbol.MethodKind == MethodKind.ExplicitInterfaceImplementation;
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
2191case MethodKind.ExplicitInterfaceImplementation:
Progression\CSharpProgressionLanguageService.cs (1)
127=> f.MethodKind is MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation;