2 instantiations of MemberInitExpression
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
737
expr = new
MemberInitExpression
((NewExpression)rewrittenNew, new TrueReadOnlyCollection<MemberBinding>(newBindings));
System\Linq\Expressions\MemberInitExpression.cs (1)
163
return new
MemberInitExpression
(newExpression, roBindings);
33 references to MemberInitExpression
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\DefaultRazorPageFactoryProvider.cs (1)
50
var
objectInitializeExpression = Expression.MemberInit(newExpression, propertyBindExpression);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
147
Protected 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)
938
EmitMemberInit((
MemberInitExpression
)expr);
1007
private void EmitMemberInit(
MemberInitExpression
init)
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
704
var
node = (
MemberInitExpression
)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
854
protected internal override Expression VisitMemberInit(
MemberInitExpression
node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
295
private readonly
MemberInitExpression
_node;
297
public MemberInitExpressionProxy(
MemberInitExpression
node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
414
protected internal override Expression VisitMemberInit(
MemberInitExpression
node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
544
/// Visits the children of the <see cref="
MemberInitExpression
"/>.
549
protected internal virtual Expression VisitMemberInit(
MemberInitExpression
node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
2715
var
node = (
MemberInitExpression
)expr;
System\Linq\Expressions\ListInitExpression.cs (1)
74
return
MemberInitExpression
.ReduceListInit(NewExpression, Initializers, keepOnStack: true);
System\Linq\Expressions\MemberInitExpression.cs (16)
58
/// Reduces the <see cref="
MemberInitExpression
"/> to a simpler expression.
122
public
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>
145
public 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>
157
public static
MemberInitExpression
MemberInit(NewExpression newExpression, IEnumerable<MemberBinding> bindings)