2 writes to _partType
System.Composition.TypedParts (2)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
45
_partType
= partType;
56
_partType
= partType;
13 references to _partType
System.Composition.TypedParts (13)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (13)
62
public TypeInfo PartType { get { return
_partType
; } }
76
.SelectMany(feature => feature.GetDependencies(
_partType
, definitionAccessor)))
83
var partTypeAsType =
_partType
.AsType();
87
foreach (var c in
_partType
.DeclaredConstructors.Where(ci => ci.IsPublic && !(ci.IsStatic)))
93
string message = SR.Format(SR.DiscoveredPart_MultipleImportingConstructorsFound,
_partType
);
101
if (_constructor == null &&
_partType
.IsGenericType)
103
_constructor = GetConstructorInfoFromGenericType(
_partType
);
106
_constructor ??=
_partType
.DeclaredConstructors.FirstOrDefault(ci => ci.IsPublic && !(ci.IsStatic || ci.GetParameters().Length != 0));
110
string message = SR.Format(SR.DiscoveredPart_NoImportingConstructorsFound,
_partType
);
202
activator = activationFeature.RewriteActivator(
_partType
, activator, _partMetadata.Value, dependencies);
224
for (int index = 0; index <
_partType
.GenericTypeParameters.Length; index++)
226
foreach (var genericParameterConstraints in
_partType
.GenericTypeParameters[index].GetTypeInfo().GetGenericParameterConstraints())
244
var closedType =
_partType
.MakeGenericType(typeArguments).GetTypeInfo();