2 implementations of INameCreationService
DesignSurfaceExt (1)
NameCreationServiceImp.cs (1)
13
internal sealed class NameCreationServiceImp :
INameCreationService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
29
public abstract partial class CodeDomDesignerLoader : BasicDesignerLoader,
INameCreationService
, IDesignerSerializationService
78 references to INameCreationService
DesignSurfaceExt (2)
DesignSurfaceExt.cs (2)
309
ServiceContainer.RemoveService(typeof(
INameCreationService
), false);
310
ServiceContainer.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)
387
this.TryGetService(out
INameCreationService
? nameCreate);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
248
if (validateName && this.TryGetService(out
INameCreationService
? nameService))
System\ComponentModel\Design\InheritanceService.cs (2)
71
INameCreationService
? ncs = null;
75
ncs = site.GetService<
INameCreationService
>();
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (5)
99
host.RemoveService<
INameCreationService
>();
588
LoaderHost.AddService<
INameCreationService
>(this);
1012
string
INameCreationService
.CreateName(IContainer? container, Type dataType)
1107
bool
INameCreationService
.IsValidName(string name)
1179
void
INameCreationService
.ValidateName(string name)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
2067
INameCreationService
? ns = manager.GetService<
INameCreationService
>();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (6)
632
INameCreationService
? nameCreationService = null;
638
nameCreationService = _liveDataGridView.Site.GetService<
INameCreationService
>();
772
INameCreationService
? nameCreationService = _liveDataGridView.Site?.GetService<
INameCreationService
>();
853
INameCreationService
? nameCreationService,
865
INameCreationService
? nameCreationService,
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
50
INameCreationService
? nameCreationService = null;
55
nameCreationService = dataGridView.Site.GetService<
INameCreationService
>();
System\Windows\Forms\Design\DesignerUtils.cs (1)
627
if (!host.TryGetService(out
INameCreationService
? nameCreationService))
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
39
if (Context.TryGetService(out
INameCreationService
nameService)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (7)
108
INameCreationService
nameCreationService = (
INameCreationService
)_provider.GetService(typeof(
INameCreationService
));
283
INameCreationService
nameCreationService = (
INameCreationService
)_provider.GetService(typeof(
INameCreationService
));
451
private string NameFromText(string text, Type itemType,
INameCreationService
nameCreationService, bool adjustCapitalization)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
1663
INameCreationService
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
)))
241
Mock<
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
)))
614
Mock<
INameCreationService
> mockNameCreationService = new(MockBehavior.Strict);
630
.Setup(p => p.GetService(typeof(
INameCreationService
)))
670
Mock<
INameCreationService
> mockNameCreationService = new(MockBehavior.Strict);
686
.Setup(p => p.GetService(typeof(
INameCreationService
)))
705
Mock<
INameCreationService
> mockNameCreationService = new(MockBehavior.Strict);
720
.Setup(p => p.GetService(typeof(
INameCreationService
)))
730
mockServiceProvider.Verify(p => p.GetService(typeof(
INameCreationService
)), Times.Once());
737
mockServiceProvider.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
)))
1410
Mock<
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
)))
147
Mock<
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
)))