DataContractSerializer.ReadObject Method (XmlReader)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Reads the XML stream with an XmlReader and returns the deserialized object.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Parameters
- reader
- Type: System.Xml.XmlReader
The XmlReader used to read the XML stream.
Version Notes
Windows Phone
ReadObject(XmlDictionaryReader, Boolean) throws MethodAccessException instead of SecurityException when it attempts to deserialize an IXmlSerializable type that has a private constructor.
Show: