68 references to new
ComDisabled.Tests (2)
ClipboardComTests.cs (2)
32using BinaryFormatterScope scope = new(enable: false); 46using BinaryFormatterScope scope = new(enable: false);
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
130using BinaryFormatterScope scope = new(enable: true);
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ExceptionCollectionTests.cs (1)
48using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
688using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (1)
91using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System.Windows.Forms.Primitives.TestUtilities (1)
System\Windows\Forms\BinaryFormat\BinaryFormatTestExtensions.cs (1)
28using BinaryFormatterScope formatterScope = new(enable: true);
System.Windows.Forms.Tests (61)
SerializableTypesTests.cs (9)
19using BinaryFormatterScope formatterScope = new(enable: true); 72using BinaryFormatterScope formatterScope = new(enable: true); 105using BinaryFormatterScope formatterScope = new(enable: true); 125using BinaryFormatterScope formatterScope = new(enable: true); 158using BinaryFormatterScope formatterScope = new(enable: true); 205using BinaryFormatterScope formatterScope = new(enable: true); 247using BinaryFormatterScope formatterScope = new(enable: true); 267using BinaryFormatterScope formatterScope = new(enable: true); 344using BinaryFormatterScope formatterScope = new(enable: true);
System\Resources\ResxDataNodeTests.cs (1)
81using BinaryFormatterScope formatterScope = new(enable: false);
System\Resources\ResXResourceReaderTests.cs (2)
15using BinaryFormatterScope formatterScope = new(enable: true); 44using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (3)
15using BinaryFormatterScope formatterScope = new(enable: true); 46using BinaryFormatterScope formatterScope = new(enable: false); 65using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
79using BinaryFormatterScope scope = new(enable: true); 163using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\BinaryFormatUtilitiesTests.BinaryFormatterFullCompatScope.cs (1)
14_binaryFormatterScope = new(enable: true);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (6)
413using (BinaryFormatterScope scope = new(enable: true)) 810using BinaryFormatterScope scope = new(enable: true); 841using BinaryFormatterScope scope = new(enable: true); 877using BinaryFormatterScope scope = new(enable: true); 914using BinaryFormatterScope scope = new(enable: true); 927using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\ClipboardTests.cs (12)
459using BinaryFormatterScope scope = new(enable: true); 480using BinaryFormatterScope scope = new(enable: true); 542using BinaryFormatterScope scope = new(enable: false); 718using (BinaryFormatterScope scope = new(enable: true)) 806using BinaryFormatterScope scope = new(enable: true); 823using BinaryFormatterScope scope = new(enable: true); 840using BinaryFormatterScope scope = new(enable: true); 921using (BinaryFormatterScope scope2 = new(enable: true)) 967using BinaryFormatterScope scope2 = new(enable: true); 1337using BinaryFormatterScope scope = new(enable: true); 1360using (BinaryFormatterScope scope = new(enable: copy)) 1370using BinaryFormatterScope scope = new(enable: copy);
System\Windows\Forms\Control.ActiveXImplTests.cs (3)
18using BinaryFormatterScope formatterScope = new(enable: false); 38using BinaryFormatterScope formatterScope = new(enable: false); 56using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\DataObjectTests.cs (1)
2910using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\ImageList.NativeImageListTests.cs (1)
13using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ImageListStreamerTests.cs (2)
13using BinaryFormatterScope formatterScope = new(enable: true); 45using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ImageListTests.cs (1)
440using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (3)
1771using BinaryFormatterScope formatterScope = new(enable: true); 1811using BinaryFormatterScope formatterScope = new(enable: true); 1833using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ListViewGroupTests.cs (1)
1337using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ListViewSubItemTests.cs (1)
579using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (11)
108using BinaryFormatterScope scope = new(enable: true); 145using BinaryFormatterScope scope = new(enable: true); 236using BinaryFormatterScope scope = new(enable: true); 248using BinaryFormatterScope scope = new(enable: true); 286using BinaryFormatterScope scope = new(enable: true); 313using BinaryFormatterScope scope = new(enable: true); 337using BinaryFormatterScope scope = new(enable: true); 377using BinaryFormatterScope scope = new(enable: true); 389using BinaryFormatterScope scope = new(enable: true); 403using BinaryFormatterScope scope = new(enable: true); 433using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (1)
107using BinaryFormatterScope formatterScope = new(enable: true);