2 writes to _attributeContext
System.Composition.TypedParts (2)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
46
_attributeContext
= attributeContext;
57
_attributeContext
= attributeContext;
5 references to _attributeContext
System.Composition.TypedParts (5)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (5)
89
if (
_attributeContext
.GetDeclaredAttribute<ImportingConstructorAttribute>(partTypeAsType, c) != null)
122
var importInfo = ContractHelpers.GetImportInfo(pi.ParameterType,
_attributeContext
.GetDeclaredAttributes(partTypeAsType, pi), site);
149
if (
_attributeContext
.GetDeclaredAttribute<ImportingConstructorAttribute>(genericPartType, constructorInfo) != null)
211
foreach (var attr in
_attributeContext
.GetDeclaredAttributes(partType.AsType(), partType))
246
var result = new DiscoveredPart(closedType,
_attributeContext
, _activationFeatures, _partMetadata);