1 write to Constructor
System.Linq.Expressions (1)
System\Linq\Expressions\NewExpression.cs (1)
24
Constructor
= constructor;
30 references to Constructor
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
ExpressionTrees\Sources\ExprLambdaUtils.vb (2)
360
_s.AppendLine(indent + If((node.
Constructor
IsNot Nothing), node.
Constructor
.ToString(), "<.ctor>") + "(")
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
111
_constructorInfo = newExpression.
Constructor
;
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
173
_constructorInfo = newExpression.
Constructor
;
System.Linq.Expressions (26)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (4)
624
if (node.
Constructor
!= null)
626
if (node.
Constructor
.DeclaringType!.IsAbstract)
629
List<WriteBack>? wb = EmitArguments(node.
Constructor
, node);
630
_ilg.Emit(OpCodes.Newobj, node.
Constructor
);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
554
cr.MarkRefArgs(node.
Constructor
!, startIndex: 0);
557
return cr.Finish(cr.Rewrite ? new NewExpression(node.
Constructor
, cr[0, -1]!, node.Members) : expr);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
359
public ConstructorInfo? Constructor => _node.
Constructor
;
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
2387
if (node.
Constructor
!= null)
2389
if (node.
Constructor
.DeclaringType!.IsAbstract)
2392
ParameterInfo[] parameters = node.
Constructor
.GetParametersCached();
2416
_instructions.EmitByRefNew(node.
Constructor
, parameters, updaters.ToArray());
2420
_instructions.EmitNew(node.
Constructor
, parameters);
System\Linq\Expressions\NewExpression.cs (14)
33
public override Type Type =>
Constructor
!.DeclaringType!;
92
return Members != null ? New(
Constructor
!, arguments, Members) : New(
Constructor
!, arguments);
112
/// <param name="constructor">The <see cref="ConstructorInfo"/> to set the <see cref="NewExpression.
Constructor
"/> property equal to.</param>
113
/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.New"/> and the <see cref="NewExpression.
Constructor
"/> property set to the specified value.</returns>
122
/// <param name="constructor">The <see cref="ConstructorInfo"/> to set the <see cref="NewExpression.
Constructor
"/> property equal to.</param>
124
/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.New"/> and the <see cref="NewExpression.
Constructor
"/> and <see cref="NewExpression.Arguments"/> properties set to the specified value.</returns>
133
/// <param name="constructor">The <see cref="ConstructorInfo"/> to set the <see cref="NewExpression.
Constructor
"/> property equal to.</param>
135
/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.New"/> and the <see cref="NewExpression.
Constructor
"/> and <see cref="NewExpression.Arguments"/> properties set to the specified value.</returns>
157
/// <param name="constructor">The <see cref="ConstructorInfo"/> to set the <see cref="NewExpression.
Constructor
"/> property equal to.</param>
160
/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.New"/> and the <see cref="NewExpression.
Constructor
"/>, <see cref="NewExpression.Arguments"/> and <see cref="NewExpression.Members"/> properties set to the specified value.</returns>
182
/// <param name="constructor">The <see cref="ConstructorInfo"/> to set the <see cref="NewExpression.
Constructor
"/> property equal to.</param>
185
/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.New"/> and the <see cref="NewExpression.
Constructor
"/>, <see cref="NewExpression.Arguments"/> and <see cref="NewExpression.Members"/> properties set to the specified value.</returns>
196
/// <returns>A <see cref="NewExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.New"/> and the <see cref="NewExpression.
Constructor
"/> property set to the <see cref="ConstructorInfo"/> that represents the parameterless constructor of the specified type.</returns>