78 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 (7)
BinaryFormat\BinaryFormatWriterTests.cs (2)
24using var formatterScope = new BinaryFormatterScope(enable: true); 40using BinaryFormatterScope formaterScope = new(enable: true);
BinaryFormat\DataObjectTests.cs (1)
23using BinaryFormatterScope formatterScope = new(enable: false);
BinaryFormat\HashTableTests.cs (1)
103using var formatterScope = new BinaryFormatterScope(enable: true);
BinaryFormat\ListTests.cs (1)
79using var formatterScope = new BinaryFormatterScope(enable: true);
BinaryFormat\PrimitiveTypeTests.cs (1)
94using BinaryFormatterScope formatterScope = new(enable: true);
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)
461using BinaryFormatterScope scope = new(enable: true); 482using BinaryFormatterScope scope = new(enable: true); 544using BinaryFormatterScope scope = new(enable: false); 720using (BinaryFormatterScope scope = new(enable: true)) 808using BinaryFormatterScope scope = new(enable: true); 825using BinaryFormatterScope scope = new(enable: true); 842using BinaryFormatterScope scope = new(enable: true); 966using BinaryFormatterScope scope2 = new(enable: true); 1329using BinaryFormatterScope scope = new(enable: true); 1361using (BinaryFormatterScope scope = new(enable: copy)) 1371using 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)
114using BinaryFormatterScope scope = new(enable: true); 149using BinaryFormatterScope scope = new(enable: true); 239using BinaryFormatterScope scope = new(enable: true); 251using BinaryFormatterScope scope = new(enable: true); 289using BinaryFormatterScope scope = new(enable: true); 316using BinaryFormatterScope scope = new(enable: true); 340using BinaryFormatterScope scope = new(enable: true); 380using BinaryFormatterScope scope = new(enable: true); 392using BinaryFormatterScope scope = new(enable: true); 406using BinaryFormatterScope scope = new(enable: true); 436using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (1)
109using BinaryFormatterScope formatterScope = new(enable: true);
81 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 (7)
BinaryFormat\BinaryFormatWriterTests.cs (2)
24using var formatterScope = new BinaryFormatterScope(enable: true); 40using BinaryFormatterScope formaterScope = new(enable: true);
BinaryFormat\DataObjectTests.cs (1)
23using BinaryFormatterScope formatterScope = new(enable: false);
BinaryFormat\HashTableTests.cs (1)
103using var formatterScope = new BinaryFormatterScope(enable: true);
BinaryFormat\ListTests.cs (1)
79using var formatterScope = new BinaryFormatterScope(enable: true);
BinaryFormat\PrimitiveTypeTests.cs (1)
94using BinaryFormatterScope formatterScope = new(enable: true);
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)
461using BinaryFormatterScope scope = new(enable: true); 482using BinaryFormatterScope scope = new(enable: true); 544using BinaryFormatterScope scope = new(enable: false); 720using (BinaryFormatterScope scope = new(enable: true)) 808using BinaryFormatterScope scope = new(enable: true); 825using BinaryFormatterScope scope = new(enable: true); 842using BinaryFormatterScope scope = new(enable: true); 966using BinaryFormatterScope scope2 = new(enable: true); 1329using BinaryFormatterScope scope = new(enable: true); 1361using (BinaryFormatterScope scope = new(enable: copy)) 1371using 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)
114using BinaryFormatterScope scope = new(enable: true); 149using BinaryFormatterScope scope = new(enable: true); 239using BinaryFormatterScope scope = new(enable: true); 251using BinaryFormatterScope scope = new(enable: true); 289using BinaryFormatterScope scope = new(enable: true); 316using BinaryFormatterScope scope = new(enable: true); 340using BinaryFormatterScope scope = new(enable: true); 380using BinaryFormatterScope scope = new(enable: true); 392using BinaryFormatterScope scope = new(enable: true); 406using BinaryFormatterScope scope = new(enable: true); 436using BinaryFormatterScope scope = new(enable: true);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (1)
109using BinaryFormatterScope formatterScope = new(enable: true);