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)
338BinaryFormatUtilities.WriteObjectToStream(stream, data, restrictSerialization);
System.Windows.Forms.Tests (12)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (12)
23Utilities.WriteObjectToStream(_stream, value, restrictSerialization); 28return Utilities.ReadObjectFromStream<object>(_stream, resolver: null, legacyMode: true); 34return Utilities.ReadRestrictedObjectFromStream<object>(_stream, resolver: null, legacyMode: true); 41? Utilities.ReadRestrictedObjectFromStream<T>(_stream, resolver, legacyMode: false) 42: Utilities.ReadObjectFromStream<T>(_stream, resolver, legacyMode: false); 48return Utilities.ReadObjectFromStream<T>(_stream, resolver, legacyMode: false); 54return Utilities.ReadRestrictedObjectFromStream<T>(_stream, resolver, legacyMode: false); 671Action getData = () => Utilities.ReadObjectFromStream<object>( 685var result = Utilities.ReadObjectFromStream<object>( 699var result = Utilities.ReadObjectFromStream<Font>( 742Utilities.ReadObjectFromStream<MyClass1>(_stream, resolver: null, legacyMode: true) 757Utilities.ReadObjectFromStream<MyClass1>(_stream, resolver: null, legacyMode: true)