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