6 writes to PreserveNames
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
223delegator.Manager.PreserveNames = recycleInstances;
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (5)
173PreserveNames = value 178manager.PreserveNames = value; 182manager.PreserveNames = !value; 192Assert.Throws<InvalidOperationException>(() => manager.PreserveNames = value); 750PreserveNames = preserveNames
10 references to PreserveNames
System.Windows.Forms.Design (4)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
70Manager.PreserveNames && Manager.Container?.Components[name] is not null && _resolved.Add(name))
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (3)
264if (!PreserveNames && name is not null) 364if (!PreserveNames && name is not null) 805if (instance is null && PreserveNames && Container is not null)
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (6)
19Assert.True(manager.PreserveNames); 61Assert.True(manager.PreserveNames); 175Assert.Equal(value, manager.PreserveNames); 179Assert.Equal(value, manager.PreserveNames); 183Assert.Equal(!value, manager.PreserveNames); 193Assert.True(manager.PreserveNames);