2 implementations of CreateName
DesignSurfaceExt (1)
NameCreationServiceImp.cs (1)
17
public string
CreateName
(IContainer container, Type type)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
1012
string INameCreationService.
CreateName
(IContainer? container, Type dataType)
13 references to CreateName
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerHost.cs (1)
403
name = nameCreate.
CreateName
(this, reflectType);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2070
baseName = ns.
CreateName
(null, targetType);
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
42
listViewGroupName = nameService.
CreateName
(container, typeof(ListViewGroup));
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
501
return nameCreationService.
CreateName
(_host.Container, itemType);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1668
defaultName = nameCreate.
CreateName
(container, componentType);
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\DesignerHostTests.cs (7)
243
.Setup(s => s.
CreateName
(It.IsAny<IContainer>(), It.IsAny<Type>()))
616
.Setup(s => s.
CreateName
(It.IsAny<IContainer>(), It.IsAny<Type>()))
639
mockNameCreationService.Verify(s => s.
CreateName
(host.Container, typeof(RootDesignerComponent)), Times.Once());
643
mockNameCreationService.Verify(s => s.
CreateName
(host.Container, typeof(RootDesignerComponent)), Times.Once());
672
.Setup(s => s.
CreateName
(It.IsAny<IContainer>(), It.IsAny<Type>()))
694
mockNameCreationService.Verify(s => s.
CreateName
(host.Container, typeof(RootDesignerComponent)), Times.Once());
698
mockNameCreationService.Verify(s => s.
CreateName
(host.Container, typeof(RootDesignerComponent)), Times.Once());
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
149
.Setup(s => s.
CreateName
(It.IsAny<IContainer>(), It.IsAny<Type>()))