Show / Hide Table of Contents

Class ExpressionSerializer

Inheritance
object
ExpressionSerializer
Implements
IExpressionSerializer
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
[Export(typeof(IExpressionSerializer))]
public class ExpressionSerializer : IExpressionSerializer

Constructors

View Source

ExpressionSerializer()

Create a new instance of ExpressionSerializer class.

Declaration
[ImportingConstructor]
public ExpressionSerializer()
View Source

ExpressionSerializer(TypeResolver, IEnumerable<CustomExpressionXmlConverter>)

Declaration
public ExpressionSerializer(TypeResolver resolver, IEnumerable<CustomExpressionXmlConverter> converters = null)
Parameters
Type Name Description
TypeResolver resolver
IEnumerable<CustomExpressionXmlConverter> converters

Properties

View Source

Converters

Gets the list of available CustomExpressionXmlConverter.

Declaration
public List<CustomExpressionXmlConverter> Converters { get; }
Property Value
Type Description
List<CustomExpressionXmlConverter>

Methods

View Source

Deserialize<TDelegate>(XElement)

Declaration
public Expression<TDelegate> Deserialize<TDelegate>(XElement xml)
Parameters
Type Name Description
XElement xml
Returns
Type Description
Expression<TDelegate>
Type Parameters
Name Description
TDelegate
View Source

GenerateXmlFromExpressionCore(Expression)

Declaration
public XElement GenerateXmlFromExpressionCore(Expression e)
Parameters
Type Name Description
Expression e
Returns
Type Description
XElement
View Source

Serialize(Expression)

Serialize an expression.

Declaration
public XElement Serialize(Expression expression)
Parameters
Type Name Description
Expression expression

The expression to serialize.

Returns
Type Description
XElement

An serialized expression as XElement.

Implements

IExpressionSerializer

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX