3 writes to _constructor
System.Composition.TypedParts (3)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (3)
97
_constructor
= c;
103
_constructor
= GetConstructorInfoFromGenericType(_partType);
106
_constructor
??= _partType.DeclaredConstructors.FirstOrDefault(ci => ci.IsPublic && !(ci.IsStatic || ci.GetParameters().Length != 0));
7 references to _constructor
System.Composition.TypedParts (7)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (7)
85
if (
_constructor
== null)
91
if (
_constructor
!= null)
101
if (
_constructor
== null && _partType.IsGenericType)
108
if (
_constructor
== null)
115
var cps =
_constructor
.GetParameters();
171
var cps =
_constructor
.GetParameters();
195
Expression body = Expression.Convert(Expression.New(
_constructor
, paramActivatorCalls), typeof(object));