2 implementations of GetInstance
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
61
object? IDesignerSerializationManager.
GetInstance
(string name)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
793
object? IDesignerSerializationManager.
GetInstance
(string name)
31 references to GetInstance
System.Windows.Forms.Design (16)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
130
e.Value = manager.
GetInstance
(name);
147
object? comp = manager.
GetInstance
(name);
179
object? comp = manager.
GetInstance
(name);
215
IComponent? curComp = manager.
GetInstance
(outerComponent) as IComponent;
368
if (exValue is not null && !resolved && canInvokeManager && manager.
GetInstance
(name) is null)
383
resolved = manager.
GetInstance
(name) is not null;
415
object? comp = manager.
GetInstance
(name);
440
object? comp = manager.
GetInstance
(name);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
250
if (instance is not null && dsm.
GetInstance
(compName) is null)
263
object? instance = ((IDesignerSerializationManager)delegator.Manager).
GetInstance
(name);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
63
object? instance = ((IDesignerSerializationManager)Manager).
GetInstance
(name);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (5)
772
result = manager.
GetInstance
(argumentReferenceEx.ParameterName);
789
object? namedObject = manager.
GetInstance
(fieldReferenceEx.FieldName);
921
result = manager.
GetInstance
(variableReferenceEx.VariableName);
1698
object? baseInstance = manager.
GetInstance
(nameParts[0]);
2085
while (manager.
GetInstance
(name) is not null || (cache is not null && cache.ContainsLocalName(name)));
System.Windows.Forms.Design.Tests (15)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (15)
754
Assert.Same(expected, iManager.
GetInstance
(name));
757
Assert.Same(expected, iManager.
GetInstance
(name));
770
Assert.Same(instance, iManager.
GetInstance
(name));
773
Assert.Same(instance, iManager.
GetInstance
(name));
788
Assert.Null(iManager.
GetInstance
(name));
791
Assert.Null(iManager.
GetInstance
(name));
830
Assert.Same(value, iManager.
GetInstance
(name));
834
Assert.Same(value, iManager.
GetInstance
(name));
839
Assert.Same(component, iManager.
GetInstance
("name"));
845
Assert.Same(component, iManager.
GetInstance
("name"));
850
Assert.Null(iManager.
GetInstance
(name));
859
Assert.Throws<ArgumentNullException>("name", () => iManager.
GetInstance
(null));
868
Assert.Throws<InvalidOperationException>(() => iManager.
GetInstance
(name));
1920
Assert.Same(instance1, iManager.
GetInstance
(name));
1925
Assert.Same(instance2, iManager.
GetInstance
("OtherName"));