4 references to GetDeclaredAttribute
System.Composition.TypedParts (4)
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
42
.Where(mi => _attributeContext.
GetDeclaredAttribute
<OnImportsSatisfiedAttribute>(mi.DeclaringType, mi) != null);
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
89
if (_attributeContext.
GetDeclaredAttribute
<ImportingConstructorAttribute>(partTypeAsType, c) != null)
149
if (_attributeContext.
GetDeclaredAttribute
<ImportingConstructorAttribute>(genericPartType, constructorInfo) != null)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
31
if (type.IsAbstract || !type.IsClass || _attributeContext.
GetDeclaredAttribute
<PartNotDiscoverableAttribute>(type.AsType(), type) != null)