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