Skip to content

Deserialize Method ​

Definition ​

  • Namespace: JASE.Serializers
  • Assembly: JASE.Serializers.dll

Overloads ​

NameDescription
T Deserialize(string input)Deserializes the specified XML string into an instance of the specified type.
object Deserialize(string input, Type type, bool exceptOnUnknownElement = null)Deserializes the specified XML string into an object of the specified type.

object Deserialize(string input, Type type, bool exceptOnUnknownElement = null) ​

csharp
object Deserialize(string input, Type type, bool exceptOnUnknownElement = null)

Deserializes the specified XML string into an object of the specified type.

Parameters ​

NameDescription
exceptOnUnknownElementtrue to throw an exception if an unknown element is encountered during deserialization; otherwise, false.
inputThe XML string to deserialize.
typeThe type of object to deserialize the XML into.

Returns ​

The deserialized object.

T Deserialize(string input) ​

csharp
T Deserialize(string input)

Deserializes the specified XML string into an instance of the specified type.

Type parameters ​

NameDescription
TThe type to deserialize the XML into.

Parameters ​

NameDescription
inputThe XML string to deserialize.

Returns ​

The deserialized object.