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)
174PreserveNames = value 179manager.PreserveNames = value; 183manager.PreserveNames = !value; 193Assert.Throws<InvalidOperationException>(() => manager.PreserveNames = value); 751PreserveNames = 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); 62Assert.True(manager.PreserveNames); 176Assert.Equal(value, manager.PreserveNames); 180Assert.Equal(value, manager.PreserveNames); 184Assert.Equal(!value, manager.PreserveNames); 194Assert.True(manager.PreserveNames);