15 references to BinaryFormatUtilities
System.Windows.Forms (3)
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (2)
137
?
BinaryFormatUtilities
.ReadRestrictedObjectFromStream<T>(stream, resolver, legacyMode)
138
:
BinaryFormatUtilities
.ReadObjectFromStream<T>(stream, resolver, legacyMode);
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (1)
338
BinaryFormatUtilities
.WriteObjectToStream(stream, data, restrictSerialization);
System.Windows.Forms.Tests (12)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (12)
23
Utilities
.WriteObjectToStream(_stream, value, restrictSerialization);
28
return
Utilities
.ReadObjectFromStream<object>(_stream, resolver: null, legacyMode: true);
34
return
Utilities
.ReadRestrictedObjectFromStream<object>(_stream, resolver: null, legacyMode: true);
41
?
Utilities
.ReadRestrictedObjectFromStream<T>(_stream, resolver, legacyMode: false)
42
:
Utilities
.ReadObjectFromStream<T>(_stream, resolver, legacyMode: false);
48
return
Utilities
.ReadObjectFromStream<T>(_stream, resolver, legacyMode: false);
54
return
Utilities
.ReadRestrictedObjectFromStream<T>(_stream, resolver, legacyMode: false);
671
Action getData = () =>
Utilities
.ReadObjectFromStream<object>(
685
var result =
Utilities
.ReadObjectFromStream<object>(
699
var result =
Utilities
.ReadObjectFromStream<Font>(
742
Utilities
.ReadObjectFromStream<MyClass1>(_stream, resolver: null, legacyMode: true)
757
Utilities
.ReadObjectFromStream<MyClass1>(_stream, resolver: null, legacyMode: true)