1 write to MemberName
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionMethodItem.cs (1)
23MemberName = memberName;
21 references to MemberName
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionMethodItem.cs (3)
111if (MemberName is null) 116_methodInfo ??= _actionList?.GetType()?.GetMethod(MemberName, BindingFlags.Default | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 120throw new InvalidOperationException(string.Format(SR.DesignerActionPanel_CouldNotFindMethod, MemberName));
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
36public override string FocusId => $"METHOD:{_actionList!.GetType().FullName}.{_methodItem!.MemberName}";
System.Windows.Forms.Design.Tests (17)
System\ComponentModel\Design\DesignerActionListTests.cs (4)
75Assert.Equal("AnnotatedMethod", item1.MemberName); 87Assert.Equal("EmptyAnnotatedMethod", item3.MemberName); 99Assert.Equal("NullAnnotatedMethod", item5.MemberName); 111Assert.Equal("PublicMethod", item7.MemberName);
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (6)
26Assert.Equal(memberName, item.MemberName); 52Assert.Equal(memberName, item.MemberName); 78Assert.Equal(memberName, item.MemberName); 104Assert.Equal(memberName, item.MemberName); 130Assert.Equal(memberName, item.MemberName); 156Assert.Equal(memberName, item.MemberName);
System\ComponentModel\Design\DesignerActionServiceTests.cs (1)
511Assert.Null(actionItem.MemberName);
System\Windows\Forms\Design\NotifyIconDesignerActionListTests.cs (1)
47methodItem.MemberName.Should().Be(nameof(NotifyIconActionList.ChooseIcon));
System\Windows\Forms\Design\PictureBoxActionListTests.cs (1)
50methodItem.MemberName.Should().Be("ChooseImage");
System\Windows\Forms\Design\ToolStripActionListTests.cs (4)
109methodItems.Should().ContainSingle(action => action.MemberName == "InvokeEmbedVerb"); 110methodItems.Should().ContainSingle(action => action.MemberName == "InvokeInsertStandardItemsVerb"); 124methodItems.Should().NotContain(action => action.MemberName == "InvokeEmbedVerb"); 132methodItems.Should().ContainSingle(action => action.MemberName == "InvokeInsertStandardItemsVerb");