public EditableMethodCallExpression(EditableExpressionCollection arguments, MethodInfo method, EditableExpression theObject, ExpressionType nodeType) { Arguments = arguments; Method = method; Object = theObject; NodeType = nodeType; }
public EditableNewExpression(ConstructorInfo constructor, EditableExpressionCollection arguments, IEnumerable <MemberInfo> members, Type type) : base(type) { Arguments = arguments; Constructor = constructor; Members = new EditableMemberInfoCollection(members); }
/// <summary> /// Initializes a new instance of the <see cref="EditableMethodCallExpression" /> class. /// </summary> /// <param name="callEx"> The call ex. </param> public EditableMethodCallExpression(MethodCallExpression callEx) { Arguments = new EditableExpressionCollection(callEx.Arguments); Method = callEx.Method; Object = CreateEditableExpression(callEx.Object); NodeType = callEx.NodeType; }
/// <summary> /// Initializes a new instance of the <see cref="EditableMethodCallExpression" /> class. /// </summary> /// <param name="arguments"> The arguments. </param> /// <param name="method"> The method. </param> /// <param name="theObject"> The object. </param> /// <param name="nodeType"> Type of the node. </param> public EditableMethodCallExpression(IEnumerable <EditableExpression> arguments, MethodInfo method, Expression theObject, ExpressionType nodeType) { Arguments = new EditableExpressionCollection(arguments); Method = method; Object = CreateEditableExpression(theObject); NodeType = nodeType; }
/// <summary> /// Initializes a new instance of the <see cref="EditableLambdaExpression" /> class. /// </summary> /// <param name="lambEx"> The lamb ex. </param> public EditableLambdaExpression(LambdaExpression lambEx) : base(lambEx.Type) { Parameters = new EditableExpressionCollection( ); Body = CreateEditableExpression(lambEx.Body); foreach (ParameterExpression param in lambEx.Parameters) { Parameters.Add(CreateEditableExpression(param)); } }
/// <summary> /// Initializes a new instance of the <see cref="EditableInvocationExpression" /> class. /// </summary> public EditableInvocationExpression( ) { Arguments = new EditableExpressionCollection( ); }
// Ctors public EditableLambdaExpression() { Parameters = new EditableExpressionCollection(); }
public EditableElementInit(ElementInit elementInit) { AddMethod = elementInit.AddMethod; arguments = new EditableExpressionCollection<Expression>(elementInit.Arguments); }
/// <summary> /// Initializes a new instance of the <see cref="EditableNewArrayExpression" /> class. /// </summary> /// <param name="expressions"> The expressions. </param> /// <param name="nodeType"> Type of the node. </param> /// <param name="type"> The type. </param> public EditableNewArrayExpression(EditableExpressionCollection expressions, ExpressionType nodeType, Type type) : base(type) { Expressions = expressions; NodeType = nodeType; }
/// <summary> /// Initializes a new instance of the <see cref="EditableNewArrayExpression" /> class. /// </summary> public EditableNewArrayExpression( ) { Expressions = new EditableExpressionCollection( ); }
// Ctors public EditableElementInit() { Arguments = new EditableExpressionCollection(); }
/// <summary> /// Initializes a new instance of the <see cref="EditableElementInit" /> class. /// </summary> public EditableElementInit( ) { Arguments = new EditableExpressionCollection( ); }