4 overrides of RemoveMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
339
public override MethodSymbol
RemoveMethod
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
67
public override MethodSymbol?
RemoveMethod
Symbols\Source\SourceEventSymbol.cs (1)
82
public abstract override MethodSymbol?
RemoveMethod
{ get; }
Symbols\SubstitutedEventSymbol.cs (1)
68
public override MethodSymbol?
RemoveMethod
349 references to RemoveMethod
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Lookup.cs (1)
1560
method2 = @event.
RemoveMethod
;
Binder\Binder_Operators.cs (1)
284
MethodSymbol method = isAddition ? eventSymbol.AddMethod : eventSymbol.
RemoveMethod
;
Compilation\CSharpSemanticModel.cs (1)
3492
var methodSymbol = eventAssignment.IsAddition ? eventSymbol.AddMethod : eventSymbol.
RemoveMethod
;
Emitter\Model\EventSymbolAdapter.cs (2)
35
var removeMethod = AdaptedEventSymbol.
RemoveMethod
?.GetCciAdapter();
59
var removeMethod = AdaptedEventSymbol.
RemoveMethod
?.GetCciAdapter();
Emitter\NoPia\EmbeddedTypesManager.cs (1)
557
var removeMethod = @event.AdaptedEventSymbol.
RemoveMethod
?.GetCciAdapter();
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
46
MethodSymbol? method = node.IsAddition ? node.Event.AddMethod : node.Event.
RemoveMethod
;
98
methodOpt: eventSymbol.
RemoveMethod
,
Symbols\EventSymbol.cs (1)
162
MethodSymbol? accessor = AddMethod ??
RemoveMethod
;
Symbols\MemberSymbolExtensions.cs (2)
139
return isImplementableAndNotPublic(eventSymbol.AddMethod) || isImplementableAndNotPublic(eventSymbol.
RemoveMethod
);
521
MethodSymbol removeMethod = @event.
RemoveMethod
;
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
352
MethodSymbol correspondingAccessor = accessorIsAdder ? eventHiddenByEvent.AddMethod : eventHiddenByEvent.
RemoveMethod
;
Symbols\PublicModel\EventSymbol.cs (1)
52
return _underlying.
RemoveMethod
.GetPublicSymbol();
Symbols\Retargeting\RetargetingEventSymbol.cs (2)
71
return (object?)_underlyingEvent.
RemoveMethod
== null
73
: this.RetargetingTranslator.Retarget(_underlyingEvent.
RemoveMethod
);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
325
checkAccessorIsAccessibleIfImplementable(eventSymbol.
RemoveMethod
);
Symbols\Source\SourceEventAccessorSymbol.cs (1)
46
MethodSymbol implementedAccessor = isAdder ? explicitlyImplementedEventOpt.AddMethod : explicitlyImplementedEventOpt.
RemoveMethod
;
Symbols\Source\SourceEventSymbol.cs (1)
764
CheckExplicitImplementationAccessor(RemoveMethod, explicitlyImplementedEvent.
RemoveMethod
, explicitlyImplementedEvent, diagnostics);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3663
var locationFrom = (Symbol?)(isAdder ? propertySymbol.AddMethod : propertySymbol.
RemoveMethod
) ?? propertySymbol;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
613
var removeMethod = @event.
RemoveMethod
;
Symbols\SubstitutedEventSymbol.cs (1)
72
MethodSymbol? originalRemoveMethod = OriginalDefinition.
RemoveMethod
;
Symbols\TypeSymbol.cs (1)
1412
interfaceAccessor2 = interfaceEvent.
RemoveMethod
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenReadonlyStructTests.cs (3)
1589
verifyReadOnly(s1.GetEvent("E").
RemoveMethod
, true, RefKind.RefReadOnly);
1603
verifyReadOnly(s2.GetEvent("E").
RemoveMethod
, true, RefKind.RefReadOnly);
2603
Assert.True(peModule.Module.HasIsReadOnlyAttribute(((PEMethodSymbol)testStruct.GetEvent("E").
RemoveMethod
).Handle));
CodeGen\CodeGenTupleTest.cs (5)
13282
Assert.True(m10I1E1.
RemoveMethod
.IsExplicitInterfaceImplementation);
13283
Assert.Equal("void I1.E1.remove", m10I1E1.
RemoveMethod
.ExplicitInterfaceImplementations.Single().ToTestDisplayString());
16068
Assert.True(m1E1Remove.Equals(m1E1.
RemoveMethod
, TypeCompareKind.ConsiderEverything));
16100
Assert.NotSame(m1E2Remove, m1E2.
RemoveMethod
);
16101
Assert.True(m1E2Remove.Equals(m1E2.
RemoveMethod
, TypeCompareKind.ConsiderEverything));
CodeGen\EventTests.cs (3)
221
var removeMethod = @event.
RemoveMethod
;
721
var removeMethod = @event.
RemoveMethod
;
793
var removeMethod = @event.
RemoveMethod
;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (12)
Attributes\AttributeTests.cs (10)
2598
AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event1.
RemoveMethod
.GetAttributes()));
2608
AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event2.
RemoveMethod
.GetAttributes()));
2617
AssertEx.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.
RemoveMethod
.GetAttributes()));
2626
AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event4.
RemoveMethod
.GetAttributes()));
2635
AssertNoAttributes(event5.
RemoveMethod
);
2639
AssertNoAttributes(event6.
RemoveMethod
);
2643
AssertNoAttributes(event7.
RemoveMethod
);
2647
AssertNoAttributes(event8.
RemoveMethod
);
2651
AssertNoAttributes(event9.
RemoveMethod
);
2656
AssertNoAttributes(event10.
RemoveMethod
);
Attributes\AttributeTests_Conditional.cs (1)
181
attributesArrayBuilder.Add(eventE.
RemoveMethod
.GetAttributes());
Attributes\AttributeTests_Synthesized.cs (1)
239
Assert.Equal("CompilerGeneratedAttribute", peModule.GetCustomAttributesForToken(((PEMethodSymbol)e.
RemoveMethod
).Handle).Single().AttributeClass.Name);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\InheritanceBindingTests.cs (3)
6651
Assert.Equal(classEvent.
RemoveMethod
, @class.FindImplementationForInterfaceMember(interfaceEvent.
RemoveMethod
));
6654
Assert.True(classEvent.
RemoveMethod
.IsMetadataVirtual());
Semantics\InitOnlyMemberTests.cs (1)
2449
Assert.False(eventSymbol.
RemoveMethod
.IsInitOnly);
Semantics\NullableReferenceTypesTests.cs (3)
12336
Assert.True(ev.TypeWithAnnotations.Equals(ev.
RemoveMethod
.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
12704
Assert.True(ev.TypeWithAnnotations.Equals(ev.
RemoveMethod
.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
12792
Assert.True(ev.TypeWithAnnotations.Equals(ev.
RemoveMethod
.Parameters.Last().TypeWithAnnotations, TypeCompareKind.ConsiderEverything));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (291)
DocumentationComments\EventDocumentationCommentTests.cs (2)
44
Assert.Equal("M:Acme.Widget.remove_E(System.Action)", eventSymbol.
RemoveMethod
.GetDocumentationCommentId());
53
Assert.Equal("M:Acme.Widget.remove_F(System.Action)", eventSymbol.
RemoveMethod
.GetDocumentationCommentId());
SymbolDisplay\SymbolDisplayTests.cs (1)
4595
eventSymbol.
RemoveMethod
.ToDisplayParts(format),
Symbols\CovariantReturnTests.cs (2)
334
if (eventSymbol.
RemoveMethod
is MethodSymbol removeMethod && overriddenEvent.
RemoveMethod
is MethodSymbol overriddenRemoveMethod)
Symbols\CSharpCompilerFeatureRequiredTests.cs (2)
193
Assert.False(onEventAdderEvent.
RemoveMethod
!.HasUnsupportedMetadata);
200
Assert.True(onEventRemoverEvent.
RemoveMethod
!.HasUnsupportedMetadata);
Symbols\DefaultInterfaceImplementationTests.cs (151)
6204
var rmvE1 = e1.
RemoveMethod
;
6296
var rmvP1 = e1.
RemoveMethod
;
6798
Assert.Same(e7.
RemoveMethod
, derived.FindImplementationForInterfaceMember(e7.
RemoveMethod
));
6799
Assert.Same(e8.
RemoveMethod
, derived.FindImplementationForInterfaceMember(e8.
RemoveMethod
));
6974
Assert.Equal("void Test.I1.E7.remove", derived.FindImplementationForInterfaceMember(e7.
RemoveMethod
).ToTestDisplayString());
6975
Assert.Equal("void Test.I1.E8.remove", derived.FindImplementationForInterfaceMember(e8.
RemoveMethod
).ToTestDisplayString());
7081
Assert.Equal("void Test.E7.remove", derived.FindImplementationForInterfaceMember(e7.
RemoveMethod
).ToTestDisplayString());
7082
Assert.Equal("void Test.E8.remove", derived.FindImplementationForInterfaceMember(e8.
RemoveMethod
).ToTestDisplayString());
7202
Assert.True(e7.
RemoveMethod
.IsVirtual);
7205
Assert.True(e7.
RemoveMethod
.IsMetadataVirtual());
7208
Assert.False(e7.
RemoveMethod
.IsAbstract);
7211
Assert.Same(e7.
RemoveMethod
, derived.FindImplementationForInterfaceMember(e7.
RemoveMethod
));
7324
Assert.Null(test2.FindImplementationForInterfaceMember(e7.
RemoveMethod
));
7599
Assert.False(e7.
RemoveMethod
.IsVirtual);
7602
Assert.False(e7.
RemoveMethod
.IsMetadataVirtual());
7605
Assert.False(e7.
RemoveMethod
.IsAbstract);
7608
Assert.True(e7.
RemoveMethod
.IsStatic);
7611
Assert.Null(derived.FindImplementationForInterfaceMember(e7.
RemoveMethod
));
26665
ValidateP01Accessor(p01.
RemoveMethod
);
26701
var p03set = p03.
RemoveMethod
;
26743
var p05set = p05.
RemoveMethod
;
26785
var p07set = p07.
RemoveMethod
;
26827
var p09set = p09.
RemoveMethod
;
26881
ValidateP11Accessor(p11.
RemoveMethod
);
26907
ValidateP14Accessor(p14.
RemoveMethod
);
27464
ValidateAccessor(p1.
RemoveMethod
, test1P1.
RemoveMethod
);
27537
ValidateAccessor(p1.
RemoveMethod
);
27638
ValidateAccessor(p1.
RemoveMethod
);
27806
ValidateAccessor1(p1.
RemoveMethod
);
27833
ValidateAccessor2(p2.
RemoveMethod
);
27860
ValidateAccessor3(p3.
RemoveMethod
);
27967
ValidateAccessor(p1.
RemoveMethod
);
28063
ValidateP1Accessor(p1.
RemoveMethod
);
28090
ValidateP2Accessor(p2.
RemoveMethod
);
28117
ValidateP3Accessor(p3.
RemoveMethod
);
28144
ValidateP4Accessor(p4.
RemoveMethod
);
28259
var p1remove = p1.
RemoveMethod
;
28266
Assert.Same(test1P1.
RemoveMethod
, test1.FindImplementationForInterfaceMember(p1remove));
28304
ValidateMethod(p1.
RemoveMethod
);
28360
Assert.Null(test2.FindImplementationForInterfaceMember(p1.
RemoveMethod
));
28502
var p1Remove = p1.
RemoveMethod
;
28507
Assert.Same(test1P1.
RemoveMethod
, test1.FindImplementationForInterfaceMember(p1Remove));
28510
Assert.True(test1P1.
RemoveMethod
.IsMetadataVirtual());
29329
Assert.Null(test1.FindImplementationForInterfaceMember(p1.
RemoveMethod
));
29416
ValidateAccessor(p1.
RemoveMethod
);
29532
Validate1(p1.
RemoveMethod
);
29562
Validate2(p2.
RemoveMethod
);
29592
Validate3(p3.
RemoveMethod
);
29838
ValidateAccessor(p2.
RemoveMethod
, test1P2.
RemoveMethod
);
29843
Assert.Null(p2.
RemoveMethod
);
29848
ValidateAccessor(p2.
RemoveMethod
, test1P2.
RemoveMethod
);
29945
ValidateP1Accessor(p1.
RemoveMethod
, test2P1.
RemoveMethod
);
29975
ValidateP2Accessor(p2.
RemoveMethod
, test2P2.
RemoveMethod
);
30005
ValidateP3Accessor(p3.
RemoveMethod
);
30034
ValidateP4Accessor(p4.
RemoveMethod
);
30063
ValidateP5Accessor(p5.
RemoveMethod
);
30275
ValidateP1Accessor(p1.
RemoveMethod
, test2P1.
RemoveMethod
);
30305
ValidateP2Accessor(p2.
RemoveMethod
, test2P2.
RemoveMethod
);
30335
ValidateP3Accessor(p3.
RemoveMethod
);
30364
ValidateP4Accessor(p4.
RemoveMethod
);
30496
ValidateP1Accessor(p1.
RemoveMethod
, test2P1.
RemoveMethod
);
30526
ValidateP2Accessor(p2.
RemoveMethod
, test2P2.
RemoveMethod
);
30556
ValidateP3Accessor(p3.
RemoveMethod
);
30586
ValidateP4Accessor(p4.
RemoveMethod
);
30615
ValidateP5Accessor(p5.
RemoveMethod
);
30696
var p1remove = p1.
RemoveMethod
;
30742
ValidateMethod(p1.
RemoveMethod
);
31057
ValidateAccessor(p1.
RemoveMethod
);
39933
ValidateAccessor(expected?.
RemoveMethod
, interfaceEvent.
RemoveMethod
);
39952
ValidateAccessor(expected?.
RemoveMethod
, interfaceEvent.
RemoveMethod
);
39978
ValidateAccessor(m1.
RemoveMethod
, isAbstract);
57328
Assert.Same(i1p1.
RemoveMethod
, i2p1.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
57329
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57330
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57349
if (reabstracting.
RemoveMethod
is object)
57351
ValidateReabstraction(reabstracting.
RemoveMethod
, isStatic);
57506
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57507
Assert.Same(test12p1.
RemoveMethod
, test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57654
Assert.Null(i3.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57655
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57814
Assert.Same(i3p1.
RemoveMethod
, i3.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57815
Assert.Same(i3p1.
RemoveMethod
, test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
57961
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58116
Assert.Null(i4.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58117
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58246
Assert.Same(i4p1.
RemoveMethod
, i4.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58247
Assert.Same(i4p1.
RemoveMethod
, test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58331
if (i1p1.
RemoveMethod
is object)
58333
if (i2p1.
RemoveMethod
is object)
58335
Assert.Same(i1p1.
RemoveMethod
, i2p1.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
58338
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58339
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58341
else if (i2p1.
RemoveMethod
is object)
58343
Assert.Empty(i2p1.
RemoveMethod
.ExplicitInterfaceImplementations);
58522
var c2p1Remove = c2p1.
RemoveMethod
;
58529
Assert.Same(i1p1.
RemoveMethod
, c2p1Remove.ExplicitInterfaceImplementations.Single());
58530
Assert.Same(c2p1Remove, c2.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
58534
Assert.Null(c2.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
59092
Assert.Same(i1p1.
RemoveMethod
, i2p1.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
59093
Assert.Null(i2.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
59094
Assert.Null(test1.FindImplementationForInterfaceMember(i1p1.
RemoveMethod
));
59145
Assert.Empty(i2p1.
RemoveMethod
.ExplicitInterfaceImplementations);
62546
Assert.Same(i1Normal.
RemoveMethod
, i1.FindImplementationForInterfaceMember(baseInterfaceNormal.
RemoveMethod
));
62549
Assert.Same(i1WinRT.
RemoveMethod
, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.
RemoveMethod
));
62553
Assert.Same(i1Normal.
RemoveMethod
, c1.FindImplementationForInterfaceMember(baseInterfaceNormal.
RemoveMethod
));
62556
Assert.Same(i1WinRT.
RemoveMethod
, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.
RemoveMethod
));
62559
Assert.Equal("void I1.Interface<System.Int32>.Normal.remove", i1Normal.
RemoveMethod
.ToTestDisplayString());
62561
Assert.Equal("void I1.Interface<System.Int32>.WinRT.remove", i1WinRT.
RemoveMethod
.ToTestDisplayString());
62608
Assert.Same(i1WinRT.
RemoveMethod
, c1.FindImplementationForInterfaceMember(i1WinRT.
RemoveMethod
));
62611
Assert.Equal("void I1.WinRT.remove", i1WinRT.
RemoveMethod
.ToTestDisplayString());
62668
Assert.Same(i1WinRT.
RemoveMethod
, i1.FindImplementationForInterfaceMember(baseInterfaceWinRT.
RemoveMethod
));
62672
Assert.Same(i1WinRT.
RemoveMethod
, c1.FindImplementationForInterfaceMember(baseInterfaceWinRT.
RemoveMethod
));
62675
Assert.Equal("void I1.Interface.WinRT.remove", i1WinRT.
RemoveMethod
.ToTestDisplayString());
62978
Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.
RemoveMethod
));
62989
Assert.Same(c1i1E1remove, test1.FindImplementationForInterfaceMember(i1E1.
RemoveMethod
));
63000
Assert.Same(c1i1E1remove, test4.FindImplementationForInterfaceMember(i1E1.
RemoveMethod
));
63011
Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.
RemoveMethod
));
63913
Assert.Same(i2i1E1remove, test2.FindImplementationForInterfaceMember(i1E1.
RemoveMethod
));
63924
Assert.Same(i2i1E1remove, test3.FindImplementationForInterfaceMember(i1E1.
RemoveMethod
));
67336
Assert.Empty(m.
RemoveMethod
.ExplicitInterfaceImplementations);
67408
Assert.Same(m2.
RemoveMethod
, m1.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
Symbols\Metadata\PE\LoadingEvents.cs (6)
81
CheckAccessorShape(instanceEvent.
RemoveMethod
, instanceEvent);
90
CheckAccessorShape(staticEvent.
RemoveMethod
, staticEvent);
103
Assert.Same(@event.
RemoveMethod
, accessor);
139
Assert.NotEqual(mismatchedRemoveEvent.Type, mismatchedRemoveEvent.
RemoveMethod
.Parameters.Single().Type);
162
Assert.Equal(0, noParamRemoveEvent.
RemoveMethod
.Parameters.Length);
448
var removeMethod = @event.
RemoveMethod
;
Symbols\Source\EventTests.cs (21)
93
var removeMethod = @event.
RemoveMethod
;
131
var removeMethod = @event.
RemoveMethod
;
170
var removeMethod = @event.
RemoveMethod
;
205
var removeMethod = @event.
RemoveMethod
;
329
Assert.True(fevent.
RemoveMethod
.IsImplicitlyDeclared, "FieldLikeEvent RemoveAccessor");
357
Assert.Equal(1, e1.
RemoveMethod
.ParameterTypesWithAnnotations.Length);
358
Assert.Equal("System.Action<dynamic>", e1.
RemoveMethod
.ParameterTypesWithAnnotations[0].ToTestDisplayString());
363
Assert.Equal(1, e2.
RemoveMethod
.ParameterTypesWithAnnotations.Length);
364
Assert.Equal("System.Action<dynamic>", e2.
RemoveMethod
.ParameterTypesWithAnnotations[0].ToTestDisplayString());
1869
Assert.NotNull(event1.
RemoveMethod
);
1870
Assert.Equal(Accessibility.Public, event1.
RemoveMethod
.DeclaredAccessibility);
1874
Assert.NotNull(event2.
RemoveMethod
);
1875
Assert.Equal(Accessibility.Public, event2.
RemoveMethod
.DeclaredAccessibility);
1879
Assert.NotNull(event3.
RemoveMethod
);
1880
Assert.Equal(Accessibility.Public, event3.
RemoveMethod
.DeclaredAccessibility);
2270
Assert.Equal(baseEventType, event1.
RemoveMethod
.ParameterTypesWithAnnotations.Single().Type);
2277
Assert.Equal(baseEventType, event2.
RemoveMethod
.ParameterTypesWithAnnotations.Single().Type);
2343
Assert.Equal("myRemove", event1.
RemoveMethod
.Name);
2348
Assert.Equal("myRemove", event2.
RemoveMethod
.Name);
2389
Assert.Equal("remove_E", event1.
RemoveMethod
.Name);
2394
Assert.Equal("remove_E", event2.
RemoveMethod
.Name);
Symbols\StaticAbstractMembersInInterfacesTests.cs (106)
2766
return addAccessor ? e.AddMethod : e.
RemoveMethod
;
25434
Assert.Same(i6m.
RemoveMethod
, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).
RemoveMethod
);
25523
Assert.Same(i6m.
RemoveMethod
, ((EventSymbol)i6.FindImplementationForInterfaceMember(m)).
RemoveMethod
);
25736
var m01Remove = m01.
RemoveMethod
;
25765
var cM01Remove = cM01.
RemoveMethod
;
25831
var m01Remove = m01.
RemoveMethod
;
25860
var cM01Remove = cM01.
RemoveMethod
;
25943
Assert.Same(cM01.
RemoveMethod
, c3.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
25947
Assert.Same(m01.
RemoveMethod
, cM01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26104
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26107
Assert.Same(m01.
RemoveMethod
, c1M01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26112
Assert.Same(c1M01.
RemoveMethod
, c2.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26117
Assert.Same(c1M01.
RemoveMethod
, c3.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26122
Assert.Same(c1M01.
RemoveMethod
, c4.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26129
Assert.Same(c2M01.
RemoveMethod
, c5.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26206
Assert.Same(m01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26207
Assert.Same(m01.
RemoveMethod
, i1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26245
Assert.Same(c1m01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26246
Assert.Same(m01.
RemoveMethod
, i1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26272
Assert.Same(c1m01.
RemoveMethod
, c.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26329
Assert.Same(m01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26330
Assert.Same(m01.
RemoveMethod
, i1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26357
Assert.Same(m01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26406
var cM01Remove = cM01.
RemoveMethod
;
26418
Assert.Same(cM01Remove, c.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26424
Assert.Same(m01.
RemoveMethod
, cM01Remove.ExplicitInterfaceImplementations.Single());
26455
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26458
Assert.Same(m01.
RemoveMethod
, c1M01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26485
Assert.Same(m01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26515
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26545
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26547
Assert.Same(m01.
RemoveMethod
, c1M01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26601
Assert.Null(c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26602
Assert.Null(i1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26630
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26633
Assert.Same(m01.
RemoveMethod
, c1M01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26654
var m01Remove = m01.
RemoveMethod
;
26667
var cM01Remove = cM01.
RemoveMethod
;
26728
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26731
Assert.Same(m01.
RemoveMethod
, c1M01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26758
Assert.Same(c1M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26789
Assert.Null(c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26819
Assert.Null(c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26906
Assert.Same(i2M01.
RemoveMethod
, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26907
Assert.Same(i2M01.
RemoveMethod
, i2.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
26911
Assert.Same(m01.
RemoveMethod
, i2M01.
RemoveMethod
.ExplicitInterfaceImplementations.Single());
26951
var c2M01Remove = (MethodSymbol)c2.FindImplementationForInterfaceMember(m01.
RemoveMethod
);
26979
Assert.Same(m01.
RemoveMethod
, c2M01Remove.ExplicitInterfaceImplementations.Single());
26986
var c1M01Remove = c1M01.
RemoveMethod
;
27033
Assert.Same(c2M01.
RemoveMethod
, c2M01Remove);
27152
var c1M01Remove = c1M01.
RemoveMethod
;
27196
c1M01Remove = (MethodSymbol)c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
);
27199
Assert.Same(m01.
RemoveMethod
, c1M01Remove.ExplicitInterfaceImplementations.Single());
27215
Assert.Same(c1M01Remove, c1.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
27222
var c2M01Remove = c2M01.
RemoveMethod
;
27252
Assert.Same(m01.
RemoveMethod
, c2M01Remove.ExplicitInterfaceImplementations.Single());
27253
Assert.Same(c2M01Remove, c2.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
27263
var c3M02Remove = c3M02.
RemoveMethod
;
27307
c3M02Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m02.
RemoveMethod
);
27310
Assert.Same(m02.
RemoveMethod
, c3M02Remove.ExplicitInterfaceImplementations.Single());
27326
Assert.Same(c3M02Remove, c3.FindImplementationForInterfaceMember(m02.
RemoveMethod
));
27333
var c4M02Remove = c4M02.
RemoveMethod
;
27367
Assert.Same(m02.
RemoveMethod
, c4M02Remove.ExplicitInterfaceImplementations.Single());
27368
Assert.Same(c4M02Remove, c4.FindImplementationForInterfaceMember(m02.
RemoveMethod
));
27497
var c1M01Remove = c1M01.
RemoveMethod
;
27512
var c2M01Remove = c3.FindImplementationForInterfaceMember(m01.
RemoveMethod
);
27522
Assert.Same(c1M01.
RemoveMethod
, c3.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
27531
Assert.Same(c2M02.
RemoveMethod
, c3.FindImplementationForInterfaceMember(m02.
RemoveMethod
));
27611
var c2M01Remove = c2M01.
RemoveMethod
;
27645
var c3M01Remove = (MethodSymbol)c3.FindImplementationForInterfaceMember(m01.
RemoveMethod
);
27647
Assert.Same(m01.
RemoveMethod
, c3M01Remove.ExplicitInterfaceImplementations.Single());
27653
Assert.Same(c2M01Remove, c3.FindImplementationForInterfaceMember(m01.
RemoveMethod
));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
LifetimeAnnotationAttributesVisitor.cs (1)
64
Visit(@event.
RemoveMethod
);
TestAttributesVisitor.cs (1)
64
Visit(@event.
RemoveMethod
);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (4)
Metadata\WinMdEventTests.cs (4)
3507
Assert.True(instanceEvent.
RemoveMethod
.IsStatic);
3512
Assert.False(staticEvent.
RemoveMethod
.IsStatic);
3585
var removeMethod = @event.
RemoveMethod
;
3616
var removeMethod = @event.
RemoveMethod
;