1 write to Constructor
System.Linq.Expressions (1)
System\Linq\Expressions\NewExpression.cs (1)
24Constructor = 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)
624if (node.Constructor != null) 626if (node.Constructor.DeclaringType!.IsAbstract) 629List<WriteBack>? wb = EmitArguments(node.Constructor, node); 630_ilg.Emit(OpCodes.Newobj, node.Constructor);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
554cr.MarkRefArgs(node.Constructor!, startIndex: 0); 557return cr.Finish(cr.Rewrite ? new NewExpression(node.Constructor, cr[0, -1]!, node.Members) : expr);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
359public ConstructorInfo? Constructor => _node.Constructor;
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
2387if (node.Constructor != null) 2389if (node.Constructor.DeclaringType!.IsAbstract) 2392ParameterInfo[] parameters = node.Constructor.GetParametersCached(); 2416_instructions.EmitByRefNew(node.Constructor, parameters, updaters.ToArray()); 2420_instructions.EmitNew(node.Constructor, parameters);
System\Linq\Expressions\NewExpression.cs (14)
33public override Type Type => Constructor!.DeclaringType!; 92return 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>