1 type derived from PartBuilder
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
10
public class PartBuilder<T> :
PartBuilder
3 instantiations of PartBuilder
System.ComponentModel.Composition.Registration (3)
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (3)
48
var partBuilder = new
PartBuilder
((t) => type != t && type.IsAssignableFrom(t));
69
var partBuilder = new
PartBuilder
((t) => t == type);
95
var partBuilder = new
PartBuilder
(typeFilter);
30 references to PartBuilder
System.ComponentModel.Composition.Registration (30)
System\ComponentModel\Composition\Registration\PartBuilder.cs (20)
45
public
PartBuilder
Export()
50
public
PartBuilder
Export(Action<ExportBuilder> exportConfiguration)
59
public
PartBuilder
Export<T>()
64
public
PartBuilder
Export<T>(Action<ExportBuilder> exportConfiguration)
74
public
PartBuilder
SelectConstructor(Func<ConstructorInfo[], ConstructorInfo> constructorFilter)
79
public
PartBuilder
SelectConstructor(Func<ConstructorInfo[], ConstructorInfo> constructorFilter,
89
public
PartBuilder
ExportInterfaces(Predicate<Type> interfaceFilter)
94
public
PartBuilder
ExportInterfaces()
99
public
PartBuilder
ExportInterfaces(Predicate<Type> interfaceFilter,
113
public
PartBuilder
ExportProperties(Predicate<PropertyInfo> propertyFilter)
123
public
PartBuilder
ExportProperties(Predicate<PropertyInfo> propertyFilter,
137
public
PartBuilder
ExportProperties<T>(Predicate<PropertyInfo> propertyFilter)
147
public
PartBuilder
ExportProperties<T>(Predicate<PropertyInfo> propertyFilter,
161
public
PartBuilder
ImportProperties(Predicate<PropertyInfo> propertyFilter)
171
public
PartBuilder
ImportProperties(Predicate<PropertyInfo> propertyFilter,
184
public
PartBuilder
ImportProperties<T>(Predicate<PropertyInfo> propertyFilter)
194
public
PartBuilder
ImportProperties<T>(Predicate<PropertyInfo> propertyFilter,
206
public
PartBuilder
SetCreationPolicy(CreationPolicy creationPolicy)
213
public
PartBuilder
AddMetadata(string name, object value)
221
public
PartBuilder
AddMetadata(string name, Func<Type, object> itemFunc)
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (10)
24
private readonly List<
PartBuilder
> _conventions = new List<
PartBuilder
>();
41
public
PartBuilder
ForTypesDerivedFrom(Type type)
48
var
partBuilder = new PartBuilder((t) => type != t && type.IsAssignableFrom(t));
62
public
PartBuilder
ForType(Type type)
69
var
partBuilder = new PartBuilder((t) => t == type);
88
public
PartBuilder
ForTypesMatching(Predicate<Type> typeFilter)
95
var
partBuilder = new PartBuilder(typeFilter);
109
foreach (
PartBuilder
builder in _conventions.Where(c => c.SelectType(type.UnderlyingSystemType)))
121
PartBuilder
.BuildDefaultConstructorAttributes(type, ref configuredMembers);