XMLSerializerDeserialize Method

Deserializes selected properties of an object from XML.

Definition

Namespace: XMLSerializer
Assembly: DWSIM.XMLSerializer (in DWSIM.XMLSerializer.dll) Version: 10.0.0.0
public static bool Deserialize(
	Object obj,
	List<XElement> xmlprops,
	bool Fields = false
)

Parameters

obj  Object
The object to be updated with properties from the XML elements.
xmlprops  ListXElement
The list of XML elements to deserialize from.
Fields  Boolean  (Optional)
 

Return Value

Boolean
True if successful.

Remarks

Properties of type Boolean, String, Double, Single, Integer, Nullable(Of Double), Nullable(Of Single), Nullable(Of Integer), ArrayList, Font, Color, [Enum] are supported.

See Also