1 type derived from NewExpression
System.Core (1)
Microsoft\Scripting\Ast\NewExpression.cs (1)
123internal class NewValueTypeExpression : NewExpression {
3 instantiations of NewExpression
System.Core (3)
Microsoft\Scripting\Ast\NewExpression.cs (2)
172return new NewExpression(constructor, argList, null); 188return new NewExpression(constructor, argList, memberList);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
514return cr.Finish(cr.Rewrite ? new NewExpression(node.Constructor, cr[0, -1], node.Members) : expr);
129 references to NewExpression
System.Activities (16)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
582NewExpression newExpression = (NewExpression)expression;
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (6)
667NewExpression newExpression; 794newExpression = (NewExpression)Rewrite(listInit.NewExpression, lambdaParameters, out abort); 903newExpression = (NewExpression)Rewrite(memberInit.NewExpression, lambdaParameters, out abort); 1023newExpression = (NewExpression)expression; 1290NewExpression newExpression = (NewExpression)expression;
System\Activities\Expressions\ExpressionServices.cs (3)
120NewExpression newExpression = body as NewExpression; 1403static string TryConvertNewExpression<TResult>(NewExpression newExpression, bool throwOnError, out Activity<TResult> result)
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
183NewExpression newExpression;
System\Activities\ExpressionUtilities.cs (4)
997(NewExpression)other, 1031(NewExpression)other, 1101NewExpression objectCreationExpression = (NewExpression)expression;
System.Core (60)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
800protected internal override Expression VisitNew(NewExpression node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (4)
249public NewExpression NewExpression { get { return _node.NewExpression; } } 295public NewExpression NewExpression { get { return _node.NewExpression; } } 331private readonly NewExpression _node; 333public NewExpressionProxy(NewExpression node) {
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
577protected internal override Expression VisitNew(NewExpression node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (2)
434/// Visits the children of the <see cref="NewExpression" />. 440protected internal virtual Expression VisitNew(NewExpression node) {
Microsoft\Scripting\Ast\ListInitExpression.cs (16)
44private readonly NewExpression _newExpression; 47internal ListInitExpression(NewExpression newExpression, ReadOnlyCollection<ElementInit> initializers) { 80public NewExpression NewExpression { 117public ListInitExpression Update(NewExpression newExpression, IEnumerable<ElementInit> initializers) { 130/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param> 133public static ListInitExpression ListInit(NewExpression newExpression, params Expression[] initializers) { 142/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param> 145public static ListInitExpression ListInit(NewExpression newExpression, IEnumerable<Expression> initializers) { 161/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param> 165public static ListInitExpression ListInit(NewExpression newExpression, MethodInfo addMethod, params Expression[] initializers) { 177/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param> 181public static ListInitExpression ListInit(NewExpression newExpression, MethodInfo addMethod, IEnumerable<Expression> initializers) { 202/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param> 212public static ListInitExpression ListInit(NewExpression newExpression, params ElementInit[] initializers) { 219/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param> 226public static ListInitExpression ListInit(NewExpression newExpression, IEnumerable<ElementInit> initializers) {
Microsoft\Scripting\Ast\MemberInitExpression.cs (6)
35private readonly NewExpression _newExpression; 38internal MemberInitExpression(NewExpression newExpression, ReadOnlyCollection<MemberBinding> bindings) { 71public NewExpression NewExpression { 145public MemberInitExpression Update(NewExpression newExpression, IEnumerable<MemberBinding> bindings) { 161public static MemberInitExpression MemberInit(NewExpression newExpression, params MemberBinding[] bindings) { 172public static MemberInitExpression MemberInit(NewExpression newExpression, IEnumerable<MemberBinding> bindings) {
Microsoft\Scripting\Ast\NewExpression.cs (19)
112public NewExpression Update(IEnumerable<Expression> arguments) { 139/// Creates a new <see cref="NewExpression"/> that represents calling the specified constructor that takes no arguments. 142/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/> property set to the specified value.</returns> 143public static NewExpression New(ConstructorInfo constructor) { 149/// Creates a new <see cref="NewExpression"/> that represents calling the specified constructor that takes no arguments. 153/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/> and <see cref="P:Arguments"/> properties set to the specified value.</returns> 154public static NewExpression New(ConstructorInfo constructor, params Expression[] arguments) { 160/// Creates a new <see cref="NewExpression"/> that represents calling the specified constructor that takes no arguments. 164/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/> and <see cref="P:Arguments"/> properties set to the specified value.</returns> 165public static NewExpression New(ConstructorInfo constructor, IEnumerable<Expression> arguments) { 177/// Creates a new <see cref="NewExpression"/> that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified. 182/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/>, <see cref="P:Arguments"/> and <see cref="P:Members"/> properties set to the specified value.</returns> 183public static NewExpression New(ConstructorInfo constructor, IEnumerable<Expression> arguments, IEnumerable<MemberInfo> members) { 193/// Creates a new <see cref="NewExpression"/> that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified. 198/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/>, <see cref="P:Arguments"/> and <see cref="P:Members"/> properties set to the specified value.</returns> 199public static NewExpression New(ConstructorInfo constructor, IEnumerable<Expression> arguments, params MemberInfo[] members) { 205/// Creates a <see cref="NewExpression"/> that represents calling the parameterless constructor of the specified type. 208/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to New and the Constructor property set to the ConstructorInfo that represents the parameterless constructor of the specified type.</returns> 209public static NewExpression New(Type type) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (2)
515NewExpression node = (NewExpression)expr;
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
503NewExpression node = (NewExpression)expr; 612expr = Expression.ListInit((NewExpression)rewrittenNew, new TrueReadOnlyCollection<ElementInit>(newInits)); 663expr = Expression.MemberInit((NewExpression)rewrittenNew, new TrueReadOnlyCollection<MemberBinding>(newBindings));
System\Linq\Expressions\ExpressionVisitor.cs (5)
72return this.VisitNew((NewExpression)exp); 270internal virtual NewExpression VisitNew(NewExpression nex) { 282NewExpression n = this.VisitNew(init.NewExpression); 291NewExpression n = this.VisitNew(init.NewExpression);
System.Data.Entity (17)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (2)
330var nex = exp as NewExpression;
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (5)
81return this.VisitNew((NewExpression)exp); 316internal virtual NewExpression VisitNew(NewExpression nex) 331NewExpression n = this.VisitNew(init.NewExpression); 342NewExpression n = this.VisitNew(init.NewExpression);
System\Data\Objects\ELinq\InitializerFacet.cs (5)
74internal static InitializerMetadata CreateProjectionInitializer(EdmItemCollection itemCollection, NewExpression newExpression) 80internal static InitializerMetadata CreateEmptyProjectionInitializer(EdmItemCollection itemCollection, NewExpression newExpression) 254internal ProjectionNewMetadata(NewExpression newExpression) 261private readonly NewExpression _newExpression; 332internal EmptyProjectionNewMetadata(NewExpression newExpression)
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
293var newExpression = (NewExpression)selectorLambda.Body;
System\Data\Objects\ELinq\Translator.cs (2)
705: TypedTranslator<NewExpression> 709protected override DbExpression TypedTranslate(ExpressionConverter parent, NewExpression linq)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
191NewExpression newExpr = null == constructor ? Expression.New(type) : Expression.New(constructor);
System.Data.Linq (8)
SqlClient\Query\Funcletizer.cs (5)
199return this.VisitNew((NewExpression)exp); 392internal virtual NewExpression VisitNew(NewExpression nex) { 406NewExpression n = this.VisitNew(init.NewExpression); 415NewExpression n = this.VisitNew(init.NewExpression);
SqlClient\Query\QueryConverter.cs (3)
156return this.VisitNew((NewExpression)node); 821private SqlExpression VisitNew(NewExpression qn) { 856NewExpression qn = init.NewExpression;
System.Data.Services (5)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (5)
160return this.VisitNew((NewExpression)exp); 519internal virtual NewExpression VisitNew(NewExpression nex) 544NewExpression n = this.VisitNew(init.NewExpression); 561NewExpression n = this.VisitNew(init.NewExpression);
System.Data.Services.Client (22)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (5)
160return this.VisitNew((NewExpression)exp); 519internal virtual NewExpression VisitNew(NewExpression nex) 544NewExpression n = this.VisitNew(init.NewExpression); 561NewExpression n = this.VisitNew(init.NewExpression);
System\Data\Services\Client\ALinq\ExpressionWriter.cs (2)
120internal override NewExpression VisitNew(NewExpression nex)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (4)
464internal override NewExpression VisitNew(NewExpression nex) 699internal override NewExpression VisitNew(NewExpression nex)
System\Data\Services\Client\ALinq\ResourceBinder.cs (4)
1715NewExpression ne = (NewExpression)resultSelector.Body; 1886return MatchResource(source, out resource) && (e.Body is NewExpression); 2060internal static bool MatchNewDataServiceCollectionOfT(NewExpression nex)
System\Data\Services\Client\ALinq\UriWriter.cs (2)
167internal override NewExpression VisitNew(NewExpression nex)
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
325internal override NewExpression VisitNew(NewExpression nex) 831private NewExpression RebindNewExpressionForDataServiceCollectionOfT(NewExpression nex) 838NewExpression result = base.VisitNew(nex);
System.IdentityModel (1)
System\IdentityModel\CryptoHelper.cs (1)
1283System.Linq.Expressions.NewExpression algorithmCreationExpression = System.Linq.Expressions.Expression.New(algorithmType);