Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
New Method
Collapse the table of content
Expand the table of content

Expression.New Method

Creates a NewExpression.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member New(ConstructorInfo) Creates a NewExpression that represents calling the specified constructor that takes no arguments.
Public method Static member New(Type) Creates a NewExpression that represents calling the parameterless constructor of the specified type.
Public method Static member New(ConstructorInfo, IEnumerable<Expression>) Creates a NewExpression that represents calling the specified constructor with the specified arguments.
Public method Static member New(ConstructorInfo, Expression[]) Creates a NewExpression that represents calling the specified constructor with the specified arguments.
Public method Static member New(ConstructorInfo, IEnumerable<Expression>, IEnumerable<MemberInfo>) Creates a NewExpression that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified.
Public method Static member New(ConstructorInfo, IEnumerable<Expression>, MemberInfo[]) Creates a NewExpression that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified as an array.
Top

Community Additions

ADD
Show:
© 2015 Microsoft