XmlSerializerDeserializeContentUnsafe(XmlReader, Object) Method
Restores the inner state of an already created object passed in the
obj parameter based on a saved XML.
This method works in unsafe mode. Use it only if the XML content is from a safe source.
See the security notes at the
Remarks section of the
XmlSerializer class for details.
Namespace: KGySoft.Serialization.XmlAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
public static void DeserializeContentUnsafe(
XmlReader reader,
Object obj
)
Public Shared Sub DeserializeContentUnsafe (
reader As XmlReader,
obj As Object
)
public:
static void DeserializeContentUnsafe(
XmlReader^ reader,
Object^ obj
)
static member DeserializeContentUnsafe :
reader : XmlReader *
obj : Object -> unit
Parameters
- reader XmlReader
- An XmlReader instance to be used to read the XML content. The reader must be at the correct position for a successful deserialization.
- obj Object
- The already constructed object whose inner state has to be deserialized.