public EditableConditionalExpression(ConditionalExpression condEx)
 {
     NodeType = condEx.NodeType;
     Test     = EditableExpression.Create(condEx.Test);
     IfTrue   = EditableExpression.Create(condEx.IfTrue);
     IfFalse  = EditableExpression.Create(condEx.IfFalse);
 }
예제 #2
0
 public EditableInvocationExpression(InvocationExpression invocEx)
     : this()
 {
     Expression = EditableExpression.Create(invocEx.Expression);
     foreach (Expression ex in invocEx.Arguments)
     {
         Arguments.Add(EditableExpression.Create(ex));
     }
 }
예제 #3
0
 public EditableListInitExpression(ListInitExpression listInit)
     : this()
 {
     NewExpression = EditableExpression.Create(listInit.NewExpression);
     foreach (ElementInit e in listInit.Initializers)
     {
         Initializers.Add(new EditableElementInit(e));
     }
 }
예제 #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));
     }
 }
예제 #6
0
 public EditableMemberExpression(MemberExpression membEx)
     : this(EditableExpression.Create(membEx.Expression), membEx.Member)
 {
 }
예제 #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)
 {
 }
예제 #11
0
 public EditableMemberInitExpression(NewExpression newRawEx, IEnumerable <MemberBinding> bindings)
     : this(EditableExpression.Create(newRawEx) as EditableNewExpression, bindings)
 {
 }
예제 #12
0
 public EditableMemberInitExpression(MemberInitExpression membInit)
     : this(EditableExpression.Create(membInit.NewExpression) as EditableNewExpression, membInit.Bindings)
 {
 }
예제 #13
0
 public EditableMethodCallExpression(MethodCallExpression callEx) :
     this(new EditableExpressionCollection(callEx.Arguments), callEx.Method, EditableExpression.Create(callEx.Object), callEx.NodeType)
 {
 }
예제 #14
0
 public EditableMethodCallExpression(IEnumerable <EditableExpression> arguments, MethodInfo method, Expression theObject, ExpressionType nodeType) :
     this(new EditableExpressionCollection(arguments), method, EditableExpression.Create(theObject), nodeType)
 {
 }
예제 #15
0
 public EditableTypeBinaryExpression(TypeBinaryExpression typeBinEx)
     : this(EditableExpression.Create(typeBinEx.Expression), typeBinEx.TypeOperand)
 {
 }