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