Implemented interface member:
method
Deserialize
System.Runtime.Serialization.IFormatter.Deserialize(System.IO.Stream)
38 references to Deserialize
BinaryFormatTests (6)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (3)
30object 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. 49object 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. 83object 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)
107Hashtable 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)
65IList 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)
103object 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)
509value = (T)formatter.Deserialize(_packetStream);
MSBuildTaskHost (1)
BinaryTranslator.cs (1)
509value = (T)formatter.Deserialize(_packetStream);
PresentationCore (1)
System\Windows\dataobject.cs (1)
3058value = formatter.Deserialize(stream);
PresentationCore.Tests (5)
BinaryFormat\BinaryFormatWriterTests.cs (2)
28object deserialized = formatter.Deserialize(stream); 44object deserialized = formatter.Deserialize(stream);
BinaryFormat\HashTableTests.cs (1)
106Hashtable deserialized = (Hashtable)formatter.Deserialize(stream);
BinaryFormat\ListTests.cs (1)
82IList deserialized = (IList)formatter.Deserialize(stream);
BinaryFormat\PrimitiveTypeTests.cs (1)
98object deserialized = formatter.Deserialize(stream);
PresentationFramework (1)
MS\Internal\DataStreams.cs (1)
269newValue = this.Formatter.Deserialize(dataStream);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
144object obj = formatter.Deserialize(wrappedStream);
System.Configuration.ConfigurationManager (2)
System\Configuration\SettingsPropertyValue.cs (2)
99value = (new BinaryFormatter()).Deserialize(ms); 195return (new BinaryFormatter()).Deserialize(ms);
System.Data.Common (1)
System\Data\DataSet.cs (1)
445DataTable dt = (DataTable)bf.Deserialize(memStream);
System.Private.Windows.Core.TestUtilities (1)
BinarySerialization.cs (1)
87return 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)
53return formatter.Deserialize(_store.BaseStream);
System.Windows.Forms (4)
System\Resources\ResXDataNode.cs (1)
453object? 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)
1152deserialized = 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)
233Hashtable? 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)
1871object 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)
144return 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)
72SimpleTestData deserialized = binaryFormatter.Deserialize(stream).Should().BeOfType<SimpleTestData>().Which; 157using 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)
448return (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)
1793TableLayoutSettings 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. 1823Assert.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. 1846TableLayoutSettings 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)
1346ListViewGroup 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)
588ListViewItem.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)
122OwnerDrawPropertyBag 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.