Interface IExpressionSerializer
An interface for serialization and deserialization of expressions and slim representations of expressions.
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public interface IExpressionSerializer
Methods
Deserialize(String)
Method to deserialize a serialized expression into a slim representation.
Declaration
ExpressionSlim Deserialize(string expression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expression | The serialized expression. |
Returns
| Type | Description |
|---|---|
| ExpressionSlim | The deserialized slim expression. |
Lift(Expression)
Method to lift an expression into a slim, serializable form.
Declaration
ExpressionSlim Lift(Expression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression | expression | The expression to serialize. |
Returns
| Type | Description |
|---|---|
| ExpressionSlim | A slim representation of the expression. |
Reduce(ExpressionSlim)
Method to reduce a slim expression to an expression.
Declaration
Expression Reduce(ExpressionSlim expression)
Parameters
| Type | Name | Description |
|---|---|---|
| ExpressionSlim | expression | The slim expression. |
Returns
| Type | Description |
|---|---|
| System.Linq.Expressions.Expression | The expression represented by the slim expression. |
Serialize(ExpressionSlim)
Method to serialize a slim representation of an expression.
Declaration
string Serialize(ExpressionSlim expression)
Parameters
| Type | Name | Description |
|---|---|---|
| ExpressionSlim | expression | The slim expression to serialize. |
Returns
| Type | Description |
|---|---|
| System.String | A string representing the expression. |