Converts a XML string to a corresponding object.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static Object ObjectFromXmlString(
	string value,
	Type objectType
)

Parameters

value
Type: System..::.String
The XML string.
objectType
Type: System..::.Type
The type of a object which should be returned.

Return Value

An object which corresponds to a XML string.

Remarks

The method deserializes an object serialized into a XML string. (ObjectToXmlString(Object, Boolean)). System.Xml.Serialization..::.XmlSerializer

Exceptions

ExceptionCondition
System..::.ArgumentNullException objectType is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::.ArgumentNullException value is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also