XmlSerializerDeserializeUnsafe(XElement) Method
Deserializes an XML content to an object in unsafe mode. Use it only if the XML content is from a safe source.
Works for the results of the
Serialize(Object, XmlSerializationOptions) method.
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 Object? DeserializeUnsafe(
XElement content
)
Public Shared Function DeserializeUnsafe (
content As XElement
) As Object
public:
static Object^ DeserializeUnsafe(
XElement^ content
)
static member DeserializeUnsafe :
content : XElement -> Object
- content XElement
- XML content of the object.
ObjectThe deserialized object.