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