72 instantiations of BinaryFormatterScope
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);
PresentationCore.Tests (1)
TestUtilities\BinaryFormatTestExtensions.cs (1)
24using var formatterScope = new BinaryFormatterScope(enable: true);
System.Private.Windows.Core.Tests (10)
System\Private\Windows\Nrbf\CoreNrbfSerializerTests.cs (1)
44using (BinaryFormatterScope scope = new(enable: true))
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (8)
357using (BinaryFormatterScope scope = new(enable: true)) 473using BinaryFormatterScope scope = new(enable: dataType == DataType.BinaryFormat); 512using BinaryFormatterScope scope = new(enable: dataType == DataType.BinaryFormat); 799using BinaryFormatterScope scope = new(enable: true); 810using BinaryFormatterScope scope = new(enable: dataType == DataType.BinaryFormat); 889using BinaryFormatterScope scope = new(enable: true); 926using BinaryFormatterScope scope = new(enable: true); 939using BinaryFormatterScope scope = new(enable: true);
System\Private\Windows\Ole\ClipboardBinaryFormatterFullCompatScope.cs (1)
14_binaryFormatterScope = new(enable: true);
System.Private.Windows.Core.TestUtilities (2)
BinarySerialization.cs (2)
128using BinaryFormatterScope scope = new(enable: true); 154using BinaryFormatterScope scope = new(enable: true);
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ExceptionCollectionTests.cs (1)
50using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
690using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (1)
93using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System.Windows.Forms.Tests (53)
SerializableTypesTests.cs (9)
21using BinaryFormatterScope formatterScope = new(enable: true); 74using BinaryFormatterScope formatterScope = new(enable: true); 107using BinaryFormatterScope formatterScope = new(enable: true); 127using BinaryFormatterScope formatterScope = new(enable: true); 160using BinaryFormatterScope formatterScope = new(enable: true); 207using BinaryFormatterScope formatterScope = new(enable: true); 249using BinaryFormatterScope formatterScope = new(enable: true); 269using BinaryFormatterScope formatterScope = new(enable: true); 346using BinaryFormatterScope formatterScope = new(enable: true);
System\Resources\ResxDataNodeTests.cs (1)
79using BinaryFormatterScope formatterScope = new(enable: false);
System\Resources\ResXResourceReaderTests.cs (2)
17using BinaryFormatterScope formatterScope = new(enable: true); 46using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (3)
17using BinaryFormatterScope formatterScope = new(enable: true); 48using BinaryFormatterScope formatterScope = new(enable: false); 67using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
77using BinaryFormatterScope scope = new(enable: true); 161using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ClipboardTests.cs (11)
462using BinaryFormatterScope scope = new(enable: true); 483using BinaryFormatterScope scope = new(enable: true); 545using BinaryFormatterScope scope = new(enable: false); 721using (BinaryFormatterScope scope = new(enable: true)) 809using BinaryFormatterScope scope = new(enable: true); 826using BinaryFormatterScope scope = new(enable: true); 843using BinaryFormatterScope scope = new(enable: true); 967using BinaryFormatterScope scope2 = new(enable: true); 1328using (BinaryFormatterScope scope = new(enable: copy)) 1338using BinaryFormatterScope scope = new(enable: copy); 1400using BinaryFormatterScope scope = new(enable: copy);
System\Windows\Forms\Control.ActiveXImplTests.cs (3)
16using BinaryFormatterScope formatterScope = new(enable: false); 36using BinaryFormatterScope formatterScope = new(enable: false); 54using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\DataObjectTests.cs (1)
2909using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\ImageList.NativeImageListTests.cs (1)
15using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ImageListStreamerTests.cs (2)
15using BinaryFormatterScope formatterScope = new(enable: true); 47using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ImageListTests.cs (1)
442using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (3)
1773using BinaryFormatterScope formatterScope = new(enable: true); 1813using BinaryFormatterScope formatterScope = new(enable: true); 1835using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ListViewGroupTests.cs (1)
1339using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ListViewSubItemTests.cs (1)
581using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (11)
105using BinaryFormatterScope scope = new(enable: true); 140using BinaryFormatterScope scope = new(enable: true); 230using BinaryFormatterScope scope = new(enable: true); 242using BinaryFormatterScope scope = new(enable: true); 280using BinaryFormatterScope scope = new(enable: true); 307using BinaryFormatterScope scope = new(enable: true); 331using BinaryFormatterScope scope = new(enable: true); 371using BinaryFormatterScope scope = new(enable: true); 383using BinaryFormatterScope scope = new(enable: true); 397using BinaryFormatterScope scope = new(enable: true); 427using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (1)
109using BinaryFormatterScope formatterScope = new(enable: true);
75 references to BinaryFormatterScope
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);
PresentationCore.Tests (1)
TestUtilities\BinaryFormatTestExtensions.cs (1)
24using var formatterScope = new BinaryFormatterScope(enable: true);
System.Private.Windows.Core.Tests (10)
System\Private\Windows\Nrbf\CoreNrbfSerializerTests.cs (1)
44using (BinaryFormatterScope scope = new(enable: true))
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (8)
357using (BinaryFormatterScope scope = new(enable: true)) 473using BinaryFormatterScope scope = new(enable: dataType == DataType.BinaryFormat); 512using BinaryFormatterScope scope = new(enable: dataType == DataType.BinaryFormat); 799using BinaryFormatterScope scope = new(enable: true); 810using BinaryFormatterScope scope = new(enable: dataType == DataType.BinaryFormat); 889using BinaryFormatterScope scope = new(enable: true); 926using BinaryFormatterScope scope = new(enable: true); 939using BinaryFormatterScope scope = new(enable: true);
System\Private\Windows\Ole\ClipboardBinaryFormatterFullCompatScope.cs (1)
8private readonly BinaryFormatterScope _binaryFormatterScope;
System.Private.Windows.Core.TestUtilities (5)
AppContextSwitchScope.cs (1)
12/// See <see cref="BinaryFormatterScope"/> for an example of doing this.
BinaryFormatterScope.cs (2)
19Monitor.Enter(typeof(BinaryFormatterScope)); 31Monitor.Exit(typeof(BinaryFormatterScope));
BinarySerialization.cs (2)
128using BinaryFormatterScope scope = new(enable: true); 154using BinaryFormatterScope scope = new(enable: true);
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ExceptionCollectionTests.cs (1)
50using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
690using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (1)
93using BinaryFormatterScope formatterScope = new(enable: formatterEnabled);
System.Windows.Forms.Tests (53)
SerializableTypesTests.cs (9)
21using BinaryFormatterScope formatterScope = new(enable: true); 74using BinaryFormatterScope formatterScope = new(enable: true); 107using BinaryFormatterScope formatterScope = new(enable: true); 127using BinaryFormatterScope formatterScope = new(enable: true); 160using BinaryFormatterScope formatterScope = new(enable: true); 207using BinaryFormatterScope formatterScope = new(enable: true); 249using BinaryFormatterScope formatterScope = new(enable: true); 269using BinaryFormatterScope formatterScope = new(enable: true); 346using BinaryFormatterScope formatterScope = new(enable: true);
System\Resources\ResxDataNodeTests.cs (1)
79using BinaryFormatterScope formatterScope = new(enable: false);
System\Resources\ResXResourceReaderTests.cs (2)
17using BinaryFormatterScope formatterScope = new(enable: true); 46using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (3)
17using BinaryFormatterScope formatterScope = new(enable: true); 48using BinaryFormatterScope formatterScope = new(enable: false); 67using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
77using BinaryFormatterScope scope = new(enable: true); 161using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ClipboardTests.cs (11)
462using BinaryFormatterScope scope = new(enable: true); 483using BinaryFormatterScope scope = new(enable: true); 545using BinaryFormatterScope scope = new(enable: false); 721using (BinaryFormatterScope scope = new(enable: true)) 809using BinaryFormatterScope scope = new(enable: true); 826using BinaryFormatterScope scope = new(enable: true); 843using BinaryFormatterScope scope = new(enable: true); 967using BinaryFormatterScope scope2 = new(enable: true); 1328using (BinaryFormatterScope scope = new(enable: copy)) 1338using BinaryFormatterScope scope = new(enable: copy); 1400using BinaryFormatterScope scope = new(enable: copy);
System\Windows\Forms\Control.ActiveXImplTests.cs (3)
16using BinaryFormatterScope formatterScope = new(enable: false); 36using BinaryFormatterScope formatterScope = new(enable: false); 54using BinaryFormatterScope formatterScope = new(enable: false);
System\Windows\Forms\DataObjectTests.cs (1)
2909using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\ImageList.NativeImageListTests.cs (1)
15using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ImageListStreamerTests.cs (2)
15using BinaryFormatterScope formatterScope = new(enable: true); 47using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ImageListTests.cs (1)
442using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (3)
1773using BinaryFormatterScope formatterScope = new(enable: true); 1813using BinaryFormatterScope formatterScope = new(enable: true); 1835using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ListViewGroupTests.cs (1)
1339using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\ListViewSubItemTests.cs (1)
581using BinaryFormatterScope formatterScope = new(enable: true);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (11)
105using BinaryFormatterScope scope = new(enable: true); 140using BinaryFormatterScope scope = new(enable: true); 230using BinaryFormatterScope scope = new(enable: true); 242using BinaryFormatterScope scope = new(enable: true); 280using BinaryFormatterScope scope = new(enable: true); 307using BinaryFormatterScope scope = new(enable: true); 331using BinaryFormatterScope scope = new(enable: true); 371using BinaryFormatterScope scope = new(enable: true); 383using BinaryFormatterScope scope = new(enable: true); 397using BinaryFormatterScope scope = new(enable: true); 427using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (1)
109using BinaryFormatterScope formatterScope = new(enable: true);