2 implementations of GetName
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
78
string? IDesignerSerializationManager.
GetName
(object value)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
823
string? IDesignerSerializationManager.
GetName
(object value)
29 references to GetName
System.Windows.Forms.Design (20)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
80
return ((IDesignerSerializationManager)Manager).
GetName
(value);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
308
string? name = manager.
GetName
(value);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (6)
348
ourObjectName = manager.
GetName
(value);
1685
string? objectName = manager.
GetName
(value);
2062
string? name = manager.
GetName
(value);
2221
name = manager.
GetName
(value);
2414
valueName = manager.
GetName
(value) ?? value.GetType().Name;
2439
string? name = manager.
GetName
(value);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
206
string? name = manager.
GetName
(value);
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
111
string? name = manager.
GetName
(tree.Owner);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
137
string? name = manager.
GetName
(value);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
290
string? baseType = manager.
GetName
(rootCtx.Value);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
733
nameBase = manager.
GetName
(tree.Owner);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
418
CodeTypeDeclaration docType = new(manager.
GetName
(root)!);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (5)
249
string? componentName = manager.
GetName
(component);
262
name = manager.
GetName
(value);
272
SerializeResourceInvariant(manager, $">>{name}.Name", manager.
GetName
(value));
290
parentName = manager.
GetName
(parent);
347
_ = manager.
GetName
(control);
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
57
string key = $"{manager.
GetName
(panel)}.{LayoutSettingsPropName}";
System.Windows.Forms.Design.Tests (9)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (9)
920
Assert.Same(expected, iManager.
GetName
(instance));
933
Assert.Same(name, iManager.
GetName
(instance));
949
Assert.Same(name, iManager.
GetName
(mockInstance.Object));
958
Assert.Throws<ArgumentNullException>("value", () => iManager.
GetName
(null));
966
Assert.Throws<InvalidOperationException>(() => iManager.
GetName
("value"));
1921
Assert.Same(name, iManager.
GetName
(instance1));
1926
Assert.Equal("OtherName", iManager.
GetName
(instance2));
1957
Assert.Equal(name, iManager.
GetName
(instance));
1971
Assert.Equal(name, iManager.
GetName
(instance));