26 writes to DisplayName
System.Windows.Forms.Design (2)
System\Drawing\Design\ToolboxItem.cs (1)
579DisplayName = type.Name;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
40DisplayName = $"Template{++s_template}";
System.Windows.Forms.Design.Tests (23)
System\Drawing\Design\ToolboxItemCollectionTests.cs (2)
48Assert.False(collection.Contains(new ToolboxItem { DisplayName = "Other" })); 57Assert.Equal(-1, collection.IndexOf(new ToolboxItem { DisplayName = "Other" }));
System\Drawing\Design\ToolboxItemTests.cs (21)
234DisplayName = value 240item.DisplayName = value; 1045new ToolboxItem { DisplayName = "DisplayName" }, 1046new ToolboxItem { DisplayName = "DisplayName" }, 1051new ToolboxItem { DisplayName = "DisplayName" }, 1052new ToolboxItem { DisplayName = "displayname" }, 1057new ToolboxItem { DisplayName = "DisplayName" }, 1064new ToolboxItem { DisplayName = "DisplayName" }, 1069new NoValidationToolboxItem { DisplayName = null }, 1070new NoValidationToolboxItem { DisplayName = null }, 1075new NoValidationToolboxItem { DisplayName = null }, 1076new NoValidationToolboxItem { DisplayName = "TypeName" }, 1081new NoValidationToolboxItem { DisplayName = "TypeName" }, 1082new NoValidationToolboxItem { DisplayName = null }, 1176yield return new object[] { new ToolboxItem { TypeName = "TypeName", DisplayName = "DisplayName" } }; 1177yield return new object[] { new NoValidationToolboxItem { TypeName = null, DisplayName = null } }; 1348DisplayName = "DisplayName", 1393DisplayName = "DisplayName", 1422DisplayName = "DisplayName", 1520yield return new object[] { new ToolboxItem { DisplayName = "DisplayName" }, "DisplayName" }; 1521yield return new object[] { new NoValidationToolboxItem { DisplayName = null }, string.Empty };
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
50DisplayName = nameof(SampleControl),
14 references to DisplayName
System.Windows.Forms.Design (7)
System\Drawing\Design\ToolboxItem.cs (4)
385DisplayName == otherItem.DisplayName; 394public override int GetHashCode() => HashCode.Combine(TypeName, DisplayName); 737public override string ToString() => DisplayName ?? string.Empty;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
229uiService.ShowError(ex, string.Format(SR.FailedToCreateComponent, tool.DisplayName, exceptionMessage));
System\Windows\Forms\Design\TabControlDesigner.cs (1)
128throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, tool.DisplayName));
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
175currentName = tbxItem.DisplayName;
System.Windows.Forms.Design.Tests (7)
System\Drawing\Design\ToolboxItemTests.cs (7)
25Assert.Empty(item.DisplayName); 236Assert.Equal(expected, item.DisplayName); 241Assert.Equal(expected, item.DisplayName); 1367Assert.Equal(type.Name, item.DisplayName); 1375Assert.Equal(type.Name, item.DisplayName); 1404Assert.Equal("Object", item.DisplayName); 1432Assert.Equal("DisplayName", item.DisplayName);