コード例 #1
0
 public EditableMethodCallExpression(EditableExpressionCollection arguments, MethodInfo method, EditableExpression theObject, ExpressionType nodeType)
 {
     Arguments = arguments;
     Method    = method;
     Object    = theObject;
     NodeType  = nodeType;
 }
コード例 #2
0
 public EditableNewExpression(ConstructorInfo constructor, EditableExpressionCollection arguments, IEnumerable <MemberInfo> members, Type type)
     : base(type)
 {
     Arguments   = arguments;
     Constructor = constructor;
     Members     = new EditableMemberInfoCollection(members);
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <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));
     }
 }
コード例 #6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="EditableInvocationExpression" /> class.
 /// </summary>
 public EditableInvocationExpression( )
 {
     Arguments = new EditableExpressionCollection( );
 }
コード例 #7
0
 // Ctors
 public EditableLambdaExpression()
 {
     Parameters = new EditableExpressionCollection();
 }
コード例 #8
0
 public EditableElementInit(ElementInit elementInit)
 {
     AddMethod = elementInit.AddMethod;
     arguments = new EditableExpressionCollection<Expression>(elementInit.Arguments);
 }
コード例 #9
0
 /// <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;
 }
コード例 #10
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="EditableNewArrayExpression" /> class.
 /// </summary>
 public EditableNewArrayExpression( )
 {
     Expressions = new EditableExpressionCollection( );
 }
コード例 #11
0
 // Ctors
 public EditableElementInit()
 {
     Arguments = new EditableExpressionCollection();
 }
コード例 #12
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="EditableElementInit" /> class.
 /// </summary>
 public EditableElementInit( )
 {
     Arguments = new EditableExpressionCollection( );
 }