1 write to _stream
System.Windows.Forms.Tests (1)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (1)
18public BinaryFormatUtilitiesTests() => _stream = new();
17 references to _stream
System.Windows.Forms.Tests (17)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (17)
20public void Dispose() => _stream.Dispose(); 23Utilities.WriteObjectToStream(_stream, value, restrictSerialization); 27_stream.Position = 0; 28return Utilities.ReadObjectFromStream<object>(_stream, resolver: null, legacyMode: true); 33_stream.Position = 0; 34return Utilities.ReadRestrictedObjectFromStream<object>(_stream, resolver: null, legacyMode: true); 39_stream.Position = 0; 41? Utilities.ReadRestrictedObjectFromStream<T>(_stream, resolver, legacyMode: false) 42: Utilities.ReadObjectFromStream<T>(_stream, resolver, legacyMode: false); 47_stream.Position = 0; 48return Utilities.ReadObjectFromStream<T>(_stream, resolver, legacyMode: false); 53_stream.Position = 0; 54return Utilities.ReadRestrictedObjectFromStream<T>(_stream, resolver, legacyMode: false); 741_stream.Position = 0; 742Utilities.ReadObjectFromStream<MyClass1>(_stream, resolver: null, legacyMode: true) 756_stream.Position = 0; 757Utilities.ReadObjectFromStream<MyClass1>(_stream, resolver: null, legacyMode: true)