2 implementations of INameCreationService
DesignSurfaceExt (1)
NameCreationServiceImp.cs (1)
13internal sealed class NameCreationServiceImp : INameCreationService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
29public abstract partial class CodeDomDesignerLoader : BasicDesignerLoader, INameCreationService, IDesignerSerializationService
78 references to INameCreationService
DesignSurfaceExt (2)
DesignSurfaceExt.cs (2)
309ServiceContainer.RemoveService(typeof(INameCreationService), false); 310ServiceContainer.AddService(typeof(INameCreationService), _nameCreationService);
netstandard (1)
netstandard.cs (1)
287[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.INameCreationService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
273[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.INameCreationService))]
System.Windows.Forms.Design (31)
System\ComponentModel\Design\DesignerHost.cs (1)
387this.TryGetService(out INameCreationService? nameCreate);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
248if (validateName && this.TryGetService(out INameCreationService? nameService))
System\ComponentModel\Design\InheritanceService.cs (2)
71INameCreationService? ncs = null; 75ncs = site.GetService<INameCreationService>();
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (5)
99host.RemoveService<INameCreationService>(); 588LoaderHost.AddService<INameCreationService>(this); 1012string INameCreationService.CreateName(IContainer? container, Type dataType) 1107bool INameCreationService.IsValidName(string name) 1179void INameCreationService.ValidateName(string name)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
2067INameCreationService? ns = manager.GetService<INameCreationService>();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (6)
632INameCreationService? nameCreationService = null; 638nameCreationService = _liveDataGridView.Site.GetService<INameCreationService>(); 772INameCreationService? nameCreationService = _liveDataGridView.Site?.GetService<INameCreationService>(); 853INameCreationService? nameCreationService, 865INameCreationService? nameCreationService,
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
50INameCreationService? nameCreationService = null; 55nameCreationService = dataGridView.Site.GetService<INameCreationService>();
System\Windows\Forms\Design\DesignerUtils.cs (1)
627if (!host.TryGetService(out INameCreationService? nameCreationService))
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
39if (Context.TryGetService(out INameCreationService nameService)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (7)
108INameCreationService nameCreationService = (INameCreationService)_provider.GetService(typeof(INameCreationService)); 283INameCreationService nameCreationService = (INameCreationService)_provider.GetService(typeof(INameCreationService)); 451private string NameFromText(string text, Type itemType, INameCreationService nameCreationService, bool adjustCapitalization)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
1663INameCreationService nameCreate = serviceProvider.GetService(typeof(INameCreationService)) as INameCreationService;
System.Windows.Forms.Design.Tests (43)
System\ComponentModel\Design\DesignerHostTests.cs (32)
191.Setup(p => p.GetService(typeof(INameCreationService))) 221.Setup(p => p.GetService(typeof(INameCreationService))) 241Mock<INameCreationService> mockNameCreationService = new(MockBehavior.Strict); 262.Setup(p => p.GetService(typeof(INameCreationService))) 414.Setup(p => p.GetService(typeof(INameCreationService))) 485.Setup(p => p.GetService(typeof(INameCreationService))) 531.Setup(p => p.GetService(typeof(INameCreationService))) 550.Setup(p => p.GetService(typeof(INameCreationService))) 614Mock<INameCreationService> mockNameCreationService = new(MockBehavior.Strict); 630.Setup(p => p.GetService(typeof(INameCreationService))) 670Mock<INameCreationService> mockNameCreationService = new(MockBehavior.Strict); 686.Setup(p => p.GetService(typeof(INameCreationService))) 705Mock<INameCreationService> mockNameCreationService = new(MockBehavior.Strict); 720.Setup(p => p.GetService(typeof(INameCreationService))) 730mockServiceProvider.Verify(p => p.GetService(typeof(INameCreationService)), Times.Once()); 737mockServiceProvider.Verify(p => p.GetService(typeof(INameCreationService)), Times.Exactly(2)); 775.Setup(p => p.GetService(typeof(INameCreationService))) 828.Setup(p => p.GetService(typeof(INameCreationService))) 873.Setup(p => p.GetService(typeof(INameCreationService))) 1056.Setup(p => p.GetService(typeof(INameCreationService))) 1086.Setup(p => p.GetService(typeof(INameCreationService))) 1119.Setup(p => p.GetService(typeof(INameCreationService))) 1153.Setup(p => p.GetService(typeof(INameCreationService))) 1188.Setup(p => p.GetService(typeof(INameCreationService))) 1226.Setup(p => p.GetService(typeof(INameCreationService))) 1410Mock<INameCreationService> mockNameCreationService = new(MockBehavior.Strict); 1428.Setup(p => p.GetService(typeof(INameCreationService))) 1465.Setup(p => p.GetService(typeof(INameCreationService))) 1490.Setup(p => p.GetService(typeof(INameCreationService))) 1531.Setup(p => p.GetService(typeof(INameCreationService))) 2605.Setup(p => p.GetService(typeof(INameCreationService))) 2675.Setup(p => p.GetService(typeof(INameCreationService)))
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
129.Setup(p => p.GetService(typeof(INameCreationService)))
System\ComponentModel\Design\SiteNestedContainerTests.cs (10)
109.Setup(p => p.GetService(typeof(INameCreationService))) 127.Setup(p => p.GetService(typeof(INameCreationService))) 147Mock<INameCreationService> mockNameCreationService = new(MockBehavior.Strict); 162.Setup(p => p.GetService(typeof(INameCreationService))) 315.Setup(p => p.GetService(typeof(INameCreationService))) 391.Setup(p => p.GetService(typeof(INameCreationService))) 456.Setup(p => p.GetService(typeof(INameCreationService))) 469.Setup(p => p.GetService(typeof(INameCreationService))) 738.Setup(p => p.GetService(typeof(INameCreationService))) 803.Setup(p => p.GetService(typeof(INameCreationService)))