XmlSerializer.Deserialize Method (Stream)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Deserializes the XML document contained by the specified Stream.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Parameters
- stream
- Type: System.IO.Stream
The Stream that contains the XML document to deserialize.
Deserialization is the process of reading an XML document and constructing an object that is strongly typed to the XML Schema (XSD) of the document.
Before deserializing, an XmlSerializer must be constructed using the type of the object that is being deserialized.
Use the stream parameter to specify an object that derives from the Stream class, which is designed to write to streams. Classes that derive from the Stream class include:
Note: |
|---|
The XmlSerializer cannot deserialize arrays of List<T>. |
Note: