Interface IExpressionSerializer
Expression serializer interface definition
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
public interface IExpressionSerializer
Methods
View SourceDeserialize<T>(XElement)
Deserializes the specified XML element.
Declaration
Expression<T> Deserialize<T>(XElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.Linq.XElement | xmlElement | The XML element. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<T> | Expression of type T |
Type Parameters
Name | Description |
---|---|
T | type of the expression |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | XmlElement was not in the right format to be deserialized as expression |
Serialize(Expression)
Serializes the specified expression.
Declaration
XElement Serialize(Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | The expression. |
Returns
Type | Description |
---|---|
System.Xml.Linq.XElement | Xml representation of the expression |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Expression can not be serialized as Xml |