XmlSerializerDeserialize(XElement) Method

Deserializes an XML content to an object. Works for the results of the Serialize(Object, XmlSerializationOptions) method.

Definition

Namespace: KGySoft.Serialization.Xml
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static Object? Deserialize(
	XElement content
)

Parameters

content  XElement
XML content of the object.

Return Value

Object
The deserialized object.

Exceptions

ArgumentNullExceptioncontent must not be .
NotSupportedExceptionDeserializing an inner type is not supported.
ReflectionExceptionAn inner type cannot be instantiated or serialized XML content is corrupt.
ArgumentExceptionXML content is inconsistent or corrupt.

See Also