Esempio n. 1
0
 /// <summary>
 /// Constructor with an <see cref="MemberMemberBinding"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="memberMemberBinding">The original, not serializable <see cref="MemberBinding"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableMemberMemberBinding(MemberMemberBinding memberMemberBinding, ExpressionConverter expConverter)
     : base(memberMemberBinding, expConverter)
 {
     Bindings = expConverter.ConvertToSerializableObjectCollection <SerializableMemberBinding>(memberMemberBinding.Bindings);
 }
 /// <summary>
 /// Constructor with an <see cref="MemberMemberBinding"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="memberMemberBinding">The original, not serializable <see cref="MemberBinding"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableMemberMemberBinding(MemberMemberBinding memberMemberBinding, ExpressionConverter expConverter)
     : base(memberMemberBinding, expConverter)
 {
     Bindings = expConverter.ConvertToSerializableObjectCollection<SerializableMemberBinding>(memberMemberBinding.Bindings);
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor with an <see cref="MemberListBinding"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="memberListBinding">The original, not serializable <see cref="MemberBinding"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableMemberListBinding(MemberListBinding memberListBinding, ExpressionConverter expConverter)
     : base(memberListBinding, expConverter)
 {
     Initializers = expConverter.ConvertToSerializableObjectCollection <SerializableElementInit>(memberListBinding.Initializers);
 }
 /// <summary>
 /// Constructor with an <see cref="MemberInitExpression"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="expression">The original, not serializable <see cref="Expression"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableMemberInitExpression(MemberInitExpression expression, ExpressionConverter expConverter)
     : base(expression, expConverter)
 {
     NewExpression = expression.NewExpression.MakeSerializable<SerializableNewExpression>(expConverter);
     Bindings = expConverter.ConvertToSerializableObjectCollection<SerializableMemberBinding>(expression.Bindings);
 }
 /// <summary>
 /// Constructor with an <see cref="ListInitExpression"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="expression">The original, not serializable <see cref="Expression"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableListInitExpression(ListInitExpression expression, ExpressionConverter expConverter)
     : base(expression, expConverter)
 {
     NewExpression = expression.NewExpression.MakeSerializable <SerializableNewExpression>(expConverter);
     Initializers  = expConverter.ConvertToSerializableObjectCollection <SerializableElementInit>(expression.Initializers);
 }
 /// <summary>
 /// Constructor with an <see cref="MemberInitExpression"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="expression">The original, not serializable <see cref="Expression"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableMemberInitExpression(MemberInitExpression expression, ExpressionConverter expConverter)
     : base(expression, expConverter)
 {
     NewExpression = expression.NewExpression.MakeSerializable <SerializableNewExpression>(expConverter);
     Bindings      = expConverter.ConvertToSerializableObjectCollection <SerializableMemberBinding>(expression.Bindings);
 }
 /// <summary>
 /// Constructor with an <see cref="MemberListBinding"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="memberListBinding">The original, not serializable <see cref="MemberBinding"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableMemberListBinding(MemberListBinding memberListBinding, ExpressionConverter expConverter)
     : base(memberListBinding, expConverter)
 {
     Initializers = expConverter.ConvertToSerializableObjectCollection<SerializableElementInit>(memberListBinding.Initializers);
 }
 /// <summary>
 /// Constructor with an <see cref="ListInitExpression"/> and an <see cref="ExpressionConverter"/>.
 /// </summary>
 /// <param name="expression">The original, not serializable <see cref="Expression"/>.</param>
 /// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
 public SerializableListInitExpression(ListInitExpression expression, ExpressionConverter expConverter)
     : base(expression, expConverter)
 {
     NewExpression = expression.NewExpression.MakeSerializable<SerializableNewExpression>(expConverter);
     Initializers = expConverter.ConvertToSerializableObjectCollection<SerializableElementInit>(expression.Initializers);
 }