Class LogixSerializer
- Namespace
- L5Sharp
- Assembly
- L5Sharp.dll
A static deserialization class for LogixElement objects and their derivatives.
public static class LogixSerializer
- Inheritance
-
LogixSerializer
- Inherited Members
Methods
Deserialize(Type, XElement)
Deserializes a XElement into the specified object type.
public static object Deserialize(Type type, XElement element)
Parameters
Returns
- object
A new object of the specified type representing the deserialized object.
Remarks
The return object must specify a constructor accepting a single XElement for deserialization to work.
Deserialize<TElement>(XElement)
Deserializes a XElement into the specified object type.
public static TElement Deserialize<TElement>(XElement element) where TElement : LogixElement
Parameters
Returns
- TElement
A new object of the specified type representing the deserialized element.
Type Parameters
TElement
The return type of the deserialized element.
Remarks
The return object must specify a public constructor accepting a XElement parameter for deserialization to work.