public EditableConditionalExpression(ConditionalExpression condEx)
 {
     NodeType = condEx.NodeType;
     Test     = EditableExpression.Create(condEx.Test);
     IfTrue   = EditableExpression.Create(condEx.IfTrue);
     IfFalse  = EditableExpression.Create(condEx.IfFalse);
 }
Exemple #2
0
 public EditableInvocationExpression(InvocationExpression invocEx)
     : this()
 {
     Expression = EditableExpression.Create(invocEx.Expression);
     foreach (Expression ex in invocEx.Arguments)
     {
         Arguments.Add(EditableExpression.Create(ex));
     }
 }
Exemple #3
0
 public EditableListInitExpression(ListInitExpression listInit)
     : this()
 {
     NewExpression = EditableExpression.Create(listInit.NewExpression);
     foreach (ElementInit e in listInit.Initializers)
     {
         Initializers.Add(new EditableElementInit(e));
     }
 }
Exemple #4
0
 public EditableElementInit(ElementInit elmInit)
     : this()
 {
     AddMethod = elmInit.AddMethod;
     foreach (Expression ex in elmInit.Arguments)
     {
         Arguments.Add(EditableExpression.Create(ex));
     }
 }
 public EditableLambdaExpression(LambdaExpression lambEx)
     : base(lambEx.Type)
 {
     Parameters = new EditableExpressionCollection();
     Body       = EditableExpression.Create(lambEx.Body);
     foreach (ParameterExpression param in lambEx.Parameters)
     {
         Parameters.Add(EditableExpression.Create(param));
     }
 }
Exemple #6
0
 public EditableMemberExpression(MemberExpression membEx)
     : this(EditableExpression.Create(membEx.Expression), membEx.Member)
 {
 }
Exemple #7
0
 public EditableMemberExpression(Expression rawEx, MemberInfo member)
     : this(EditableExpression.Create(rawEx), member)
 {
 }
 public EditableMemberAssignment(MemberAssignment member)
     : base(member.BindingType, member.Member)
 {
     Expression = EditableExpression.Create(member.Expression);
 }
 public EditableBinaryExpression(BinaryExpression binex) : base(binex.Type)
 {
     Left     = EditableExpression.Create(binex.Left);
     Right    = EditableExpression.Create(binex.Right);
     NodeType = binex.NodeType;
 }
 public EditableUnaryExpression(UnaryExpression unEx)
     : this(unEx.NodeType, EditableExpression.Create(unEx.Operand), unEx.Type)
 {
 }
Exemple #11
0
 public EditableMemberInitExpression(NewExpression newRawEx, IEnumerable <MemberBinding> bindings)
     : this(EditableExpression.Create(newRawEx) as EditableNewExpression, bindings)
 {
 }
Exemple #12
0
 public EditableMemberInitExpression(MemberInitExpression membInit)
     : this(EditableExpression.Create(membInit.NewExpression) as EditableNewExpression, membInit.Bindings)
 {
 }
Exemple #13
0
 public EditableMethodCallExpression(MethodCallExpression callEx) :
     this(new EditableExpressionCollection(callEx.Arguments), callEx.Method, EditableExpression.Create(callEx.Object), callEx.NodeType)
 {
 }
Exemple #14
0
 public EditableMethodCallExpression(IEnumerable <EditableExpression> arguments, MethodInfo method, Expression theObject, ExpressionType nodeType) :
     this(new EditableExpressionCollection(arguments), method, EditableExpression.Create(theObject), nodeType)
 {
 }
Exemple #15
0
 public EditableTypeBinaryExpression(TypeBinaryExpression typeBinEx)
     : this(EditableExpression.Create(typeBinEx.Expression), typeBinEx.TypeOperand)
 {
 }