2 instantiations of MemberInitExpression
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
737expr = new MemberInitExpression((NewExpression)rewrittenNew, new TrueReadOnlyCollection<MemberBinding>(newBindings));
System\Linq\Expressions\MemberInitExpression.cs (1)
163return new MemberInitExpression(newExpression, roBindings);
33 references to MemberInitExpression
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\DefaultRazorPageFactoryProvider.cs (1)
50var objectInitializeExpression = Expression.MemberInit(newExpression, propertyBindExpression);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
147Protected Overrides Function VisitMemberInit(node As MemberInitExpression) As Expression
netstandard (1)
netstandard.cs (1)
1015[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.MemberInitExpression))]
System.Core (1)
System.Core.cs (1)
153[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.MemberInitExpression))]
System.Linq.Expressions (29)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
938EmitMemberInit((MemberInitExpression)expr); 1007private void EmitMemberInit(MemberInitExpression init)
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
704var node = (MemberInitExpression)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
854protected internal override Expression VisitMemberInit(MemberInitExpression node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
295private readonly MemberInitExpression _node; 297public MemberInitExpressionProxy(MemberInitExpression node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
414protected internal override Expression VisitMemberInit(MemberInitExpression node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
544/// Visits the children of the <see cref="MemberInitExpression"/>. 549protected internal virtual Expression VisitMemberInit(MemberInitExpression node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
2715var node = (MemberInitExpression)expr;
System\Linq\Expressions\ListInitExpression.cs (1)
74return MemberInitExpression.ReduceListInit(NewExpression, Initializers, keepOnStack: true);
System\Linq\Expressions\MemberInitExpression.cs (16)
58/// Reduces the <see cref="MemberInitExpression"/> to a simpler expression. 122public MemberInitExpression Update(NewExpression newExpression, IEnumerable<MemberBinding> bindings) 138/// <summary>Creates a <see cref="MemberInitExpression"/>.</summary> 139/// <returns>A <see cref="MemberInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.MemberInit"/> and the <see cref="MemberInitExpression.NewExpression"/> and <see cref="MemberInitExpression.Bindings"/> properties set to the specified values.</returns> 140/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="MemberInitExpression.NewExpression"/> property equal to.</param> 141/// <param name="bindings">An array of <see cref="MemberBinding"/> objects to use to populate the <see cref="MemberInitExpression.Bindings"/> collection.</param> 145public static MemberInitExpression MemberInit(NewExpression newExpression, params MemberBinding[] bindings) 150/// <summary>Creates a <see cref="MemberInitExpression"/>.</summary> 151/// <returns>A <see cref="MemberInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.MemberInit"/> and the <see cref="MemberInitExpression.NewExpression"/> and <see cref="MemberInitExpression.Bindings"/> properties set to the specified values.</returns> 152/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="MemberInitExpression.NewExpression"/> property equal to.</param> 153/// <param name="bindings">An <see cref="IEnumerable{T}"/> that contains <see cref="MemberBinding"/> objects to use to populate the <see cref="MemberInitExpression.Bindings"/> collection.</param> 157public static MemberInitExpression MemberInit(NewExpression newExpression, IEnumerable<MemberBinding> bindings)