79 references to EventRemove
Microsoft.CodeAnalysis (1)
Symbols\IMethodSymbol.cs (1)
235/// If this method has <see cref="MethodKind"/> of <see cref="MethodKind.EventAdd"/> or <see cref="MethodKind.EventRemove"/>,
Microsoft.CodeAnalysis.CodeStyle (1)
ISymbolExtensions.cs (1)
552=> symbol is IMethodSymbol { MethodKind: MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.EventRemove };
Microsoft.CodeAnalysis.CSharp (13)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
456case MethodKind.EventRemove:
Symbols\Metadata\PE\PEEventSymbol.cs (1)
126_removeMethod.SetAssociatedEvent(this, MethodKind.EventRemove);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
768Debug.Assert((methodKind == MethodKind.EventAdd) || (methodKind == MethodKind.EventRemove));
Symbols\MethodSymbol.cs (1)
610case MethodKind.EventRemove:
Symbols\MethodSymbolExtensions.cs (1)
136case MethodKind.EventRemove:
Symbols\PublicModel\MethodSymbol.cs (2)
50case MethodKind.EventRemove: 51return MethodKind.EventRemove;
Symbols\Source\SourceEventAccessorSymbol.cs (2)
56isAdder ? MethodKind.EventAdd : MethodKind.EventRemove, 127Debug.Assert(this.MethodKind == MethodKind.EventRemove);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3810case MethodKind.EventRemove:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
153case MethodKind.EventRemove: 1223case MethodKind.EventRemove:
Symbols\TypeSymbol.cs (1)
1570case MethodKind.EventRemove:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\EventTests.cs (1)
222Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\GetSemanticInfoTests.cs (1)
1201Assert.Equal(MethodKind.EventRemove, ((IMethodSymbol)parameterSymbol.ContainingSymbol).MethodKind);
Symbols\Metadata\PE\LoadingEvents.cs (1)
102case MethodKind.EventRemove:
Symbols\Source\EventTests.cs (4)
94Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind); 132Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind); 171Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind); 206Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (10)
25774Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 25869Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 26414Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 26676Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 27010Assert.Equal(MethodKind.EventRemove, c1M01Remove.MethodKind); 27030Assert.Equal(MethodKind.EventRemove, c2M01Remove.MethodKind); 27171Assert.Equal(MethodKind.EventRemove, c1M01Remove.MethodKind); 27249Assert.Equal(MethodKind.EventRemove, c2M01Remove.MethodKind); 27282Assert.Equal(MethodKind.EventRemove, c3M02Remove.MethodKind); 27363Assert.Equal(MethodKind.EventRemove, c4M02Remove.MethodKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
536case MethodKind.EventRemove:
Microsoft.CodeAnalysis.Features (5)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
147case MethodKind.EventRemove:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
364MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.EventRemove => FeaturesResources.event_accessor, 3457MethodKind.EventRemove or
RQName\RQNodeBuilder.cs (1)
203MethodKind.EventRemove or
Shared\Extensions\ISymbolExtensions_2.cs (1)
247case MethodKind.EventRemove:
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
123new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventRemove, ReturnsVoid = true },
Microsoft.CodeAnalysis.VisualBasic (23)
Binding\Binder_Utils.vb (2)
1532Case MethodKind.EventRemove 1653MethodKindEventRemove = CUInt(MethodKind.EventRemove) << MethodKindShift
Compilation\ClsComplianceChecker.vb (1)
232Case MethodKind.EventAdd, MethodKind.EventRemove
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
224MethodKind.EventRemove, 236symbol.MethodKind = MethodKind.EventRemove, 322MethodKind.EventRemove,
Symbols\Metadata\PE\PEEventSymbol.vb (1)
94Me._removeMethod.SetAssociatedEvent(Me, MethodKind.EventRemove)
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
961Debug.Assert((methodKind = MethodKind.EventAdd) OrElse (methodKind = MethodKind.EventRemove) OrElse (methodKind = MethodKind.EventRaise))
Symbols\MethodKindExtensions.vb (1)
22Case MethodKind.EventRemove
Symbols\Source\CustomEventAccessorSymbol.vb (1)
220Debug.Assert(Me.MethodKind = MethodKind.EventRemove)
Symbols\Source\OverrideHidingHelper.vb (1)
500MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.EventRemove,
Symbols\Source\SourceEventSymbol.vb (2)
110Case MethodKind.EventRemove 402Case MethodKind.EventRemove
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
970Case MethodKind.EventAdd, MethodKind.EventRemove, MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceMethodSymbol.vb (3)
1783Case MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.EventRemove 1963MethodKind.EventRemove, 2245MethodKind.EventRemove,
Symbols\Source\SourceParameterSymbol.vb (1)
211MethodKind.EventRemove
Symbols\Source\SynthesizedEventAccessorSymbol.vb (3)
54If Me.MethodKind = MethodKind.EventRemove AndAlso m_propertyOrEvent.IsWindowsRuntimeEvent Then 84useSiteInfo = If(Me.MethodKind = MethodKind.EventRemove, Binder.GetUseSiteInfoForSpecialType(type), Nothing) 558Return MethodKind.EventRemove
Symbols\SubstitutedNamedType.vb (1)
467Case MethodKind.EventRemove
Symbols\Symbol_Attributes.vb (1)
86MethodKind.EventRemove,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\PE\LoadingEvents.vb (1)
109Case MethodKind.EventRemove
SymbolsTests\Source\EventTests.vb (1)
1736Assert.Equal(MethodKind.EventRemove, DirectCast(mems(4), MethodSymbol).MethodKind)
Microsoft.CodeAnalysis.Workspaces (3)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (1)
552=> symbol is IMethodSymbol { MethodKind: MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.EventRemove };
Recommendations\AbstractRecommendationService.cs (1)
90case MethodKind.EventRemove:
Shared\Extensions\ISymbolExtensions_2.cs (1)
18MethodKind.EventRemove or
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
1002MethodKind.EventRemove or 1500SyntaxKind.RemoveAccessorDeclaration => MethodKind.EventRemove, 1510MethodKind.EventRemove => SyntaxKind.RemoveAccessorDeclaration, 2210case MethodKind.EventRemove:
Microsoft.VisualStudio.LanguageServices.Implementation (4)
CodeModel\ExternalElements\ExternalCodeAccessorFunction.cs (2)
33MethodKind.EventRemove or 92case MethodKind.EventRemove:
CodeModel\InternalElements\CodeAccessorFunction.cs (1)
34MethodKind.EventRemove or
CodeModel\InternalElements\CodeEvent.cs (1)
110return CodeAccessorFunction.Create(this.State, this, MethodKind.EventRemove);
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (4)
1105Return MethodKind.EventRemove 1121Case MethodKind.EventRemove 1390methodSymbol.MethodKind = MethodKind.EventRemove OrElse 2562Case MethodKind.EventRemove