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
True if successful.
Assembly: DWSIM.XMLSerializer (in DWSIM.XMLSerializer.dll) Version: 10.0.0.0
C#
public static bool Deserialize(
Object obj,
List<XElement> xmlprops,
bool Fields = false
)VB
Public Shared Function Deserialize (
obj As Object,
xmlprops As List(Of XElement),
Optional Fields As Boolean = false
) As BooleanParameters
- 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
BooleanTrue 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.