Implemented interface member:
method
Deserialize
System.Runtime.Serialization.IFormatter.Deserialize(System.IO.Stream)
38 references to Deserialize
BinaryFormatTests (6)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (3)
30
object deserialized = formatter.
Deserialize
(stream); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
49
object deserialized = formatter.
Deserialize
(stream); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
83
object deserialized = formatter.
Deserialize
(stream); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
FormatTests\FormattedObject\HashTableTests.cs (1)
107
Hashtable deserialized = (Hashtable)formatter.
Deserialize
(stream); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
FormatTests\FormattedObject\ListTests.cs (1)
65
IList deserialized = (IList)formatter.
Deserialize
(stream); // CodeQL[SM02229] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
103
object deserialized = formatter.
Deserialize
(stream); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
Microsoft.Build.Framework (1)
BinaryTranslator.cs (1)
509
value = (T)formatter.
Deserialize
(_packetStream);
MSBuildTaskHost (1)
BinaryTranslator.cs (1)
509
value = (T)formatter.
Deserialize
(_packetStream);
PresentationCore (1)
System\Windows\dataobject.cs (1)
3058
value = formatter.
Deserialize
(stream);
PresentationCore.Tests (5)
BinaryFormat\BinaryFormatWriterTests.cs (2)
28
object deserialized = formatter.
Deserialize
(stream);
44
object deserialized = formatter.
Deserialize
(stream);
BinaryFormat\HashTableTests.cs (1)
106
Hashtable deserialized = (Hashtable)formatter.
Deserialize
(stream);
BinaryFormat\ListTests.cs (1)
82
IList deserialized = (IList)formatter.
Deserialize
(stream);
BinaryFormat\PrimitiveTypeTests.cs (1)
98
object deserialized = formatter.
Deserialize
(stream);
PresentationFramework (1)
MS\Internal\DataStreams.cs (1)
269
newValue = this.Formatter.
Deserialize
(dataStream);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
144
object obj = formatter.
Deserialize
(wrappedStream);
System.Configuration.ConfigurationManager (2)
System\Configuration\SettingsPropertyValue.cs (2)
99
value = (new BinaryFormatter()).
Deserialize
(ms);
195
return (new BinaryFormatter()).
Deserialize
(ms);
System.Data.Common (1)
System\Data\DataSet.cs (1)
445
DataTable dt = (DataTable)bf.
Deserialize
(memStream);
System.Private.Windows.Core.TestUtilities (1)
BinarySerialization.cs (1)
87
return binaryFormatter.
Deserialize
(serializedStream); // CodeQL[SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
System.Resources.Extensions (1)
System\Resources\Extensions\DeserializingResourceReader.cs (1)
53
return formatter.
Deserialize
(_store.BaseStream);
System.Windows.Forms (4)
System\Resources\ResXDataNode.cs (1)
453
object? result = _binaryFormatter.
Deserialize
(stream); // CodeQL[SM03722] : BinaryFormatter is intended to be used as a fallback for unsupported types. Users must explicitly opt into this behavior
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (1)
49
_bag = (Hashtable)new BinaryFormatter().
Deserialize
(stream); // CodeQL[SM03722, SM04191] : BinaryFormatter is intended to be used as a fallback for unsupported types. Users must explicitly opt into this behavior"
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1152
deserialized = new BinaryFormatter().
Deserialize
(stream); // CodeQL[SM03722, SM04191] : BinaryFormatter is intended to be used as a fallback for unsupported types. Users must explicitly opt into this behavior
System\Windows\Forms\OLE\DataObject.Composition.BinaryFormatUtilities.cs (1)
233
}.
Deserialize
(stream); // CodeQL[SM03722] : BinaryFormatter is intended to be used as a fallback for unsupported types. Users must explicitly opt into this behavior.
System.Windows.Forms.Design (4)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
233
Hashtable? resources = new BinaryFormatter().
Deserialize
(_resourceStream) as Hashtable; // CodeQL[SM03722, SM04191] : The operation is essential for the design experience when users are running their own designers they have created. This cannot be achieved without BinaryFormatter
System\Windows\Forms\Design\CommandSet.cs (1)
1871
object serializationData = new BinaryFormatter().
Deserialize
(s); // CodeQL[SM03722, SM04191] : The operation is essential for the design experience when users are running their own designers they have created. This cannot be achieved without BinaryFormatter
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (2)
144
return new BinaryFormatter().
Deserialize
(SerializationStream); // CodeQL[SM03722, SM04191] : The operation is essential for the design experience when users are running their own designers they have created. This cannot be achieved without BinaryFormatter
220
_serializationData ??= new BinaryFormatter().
Deserialize
(SerializationStream!); // CodeQL[SM03722, SM04191] : The operation is essential for the design experience when users are running their own designers they have created. This cannot be achieved without BinaryFormatter
System.Windows.Forms.Tests (9)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
72
SimpleTestData deserialized = binaryFormatter.
Deserialize
(stream).Should().BeOfType<SimpleTestData>().Which;
157
using Bitmap deserialized = binaryFormat.
Deserialize
(stream).Should().BeOfType<Bitmap>().Which; // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
System\Windows\Forms\ImageListTests.cs (1)
448
return (T)formatter.
Deserialize
(stream); // CodeQL [SM03722, SM02229] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (3)
1793
TableLayoutSettings result = Assert.IsType<TableLayoutSettings>(formatter.
Deserialize
(stream)); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
1823
Assert.Throws<SerializationException>(() => formatter.
Deserialize
(stream)); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
1846
TableLayoutSettings result = Assert.IsType<TableLayoutSettings>(formatter.
Deserialize
(stream)); // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
System\Windows\Forms\ListViewGroupTests.cs (1)
1346
ListViewGroup result = Assert.IsType<ListViewGroup>(formatter.
Deserialize
(stream)); // CodeQL [SM03722] : Deserialization is performed on trusted data and the types are controlled and validated.
System\Windows\Forms\ListViewSubItemTests.cs (1)
588
ListViewItem.ListViewSubItem result = Assert.IsType<ListViewItem.ListViewSubItem>(formatter.
Deserialize
(stream)); // CodeQL[SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (1)
122
OwnerDrawPropertyBag bag = Assert.IsType<OwnerDrawPropertyBag>(formatter.
Deserialize
(stream)); // CodeQL[SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated.