Exemple #1
0
 internal SerializableUnaryExpression(UnaryExpression e, SerializableExpression.SerializationContext ctx, InterfaceType.Factory iftFactory)
     : base(e, ctx, iftFactory)
 {
     Children = new[] { SerializableExpression.FromExpression(e.Operand, ctx, iftFactory) };
 }
Exemple #2
0
 internal SerializableCompoundExpression(Expression e, SerializableExpression.SerializationContext ctx, InterfaceType.Factory iftFactory)
     : base(e, ctx, iftFactory)
 {
     this.Children = new SerializableExpression[] { };
 }
Exemple #3
0
 internal SerializableBinaryExpression(BinaryExpression e, SerializableExpression.SerializationContext ctx, InterfaceType.Factory iftFactory)
     : base(e, ctx, iftFactory)
 {
     Children = new[] { SerializableExpression.FromExpression(e.Left, ctx, iftFactory), SerializableExpression.FromExpression(e.Right, ctx, iftFactory) };
 }
Exemple #4
0
 internal override Expression ToExpressionInternal(SerializableExpression.SerializationContext ctx)
 {
     return(Expression.Condition(Test.ToExpressionInternal(ctx),
                                 IfTrue.ToExpressionInternal(ctx),
                                 IfFalse.ToExpressionInternal(ctx)));
 }