public CollectionPropertyValueResolver( [NotNull, ImportMany(typeof(IPropertyValueResolver))] IEnumerable <Lazy <IPropertyValueResolver> > propertyValueResolvers, [NotNull] ITypeInstanciator typeInstanciator) { if (propertyValueResolvers == null) { throw new ArgumentNullException(nameof(propertyValueResolvers)); } if (typeInstanciator == null) { throw new ArgumentNullException(nameof(typeInstanciator)); } this.propertyValueResolvers = propertyValueResolvers; this.typeInstanciator = typeInstanciator; }
public InstanceResolutionWalker([NotNull] IPropertyReflector propertyReflector, [NotNull, ImportMany(typeof(IPropertyValueResolver))] IEnumerable <IPropertyValueResolver> propertyValueResolvers, [NotNull] ITypeInstanciator typeInstanciator) : base(propertyReflector) { if (propertyValueResolvers == null) { throw new ArgumentNullException(nameof(propertyValueResolvers)); } if (typeInstanciator == null) { throw new ArgumentNullException(nameof(typeInstanciator)); } this.propertyValueResolvers = propertyValueResolvers; this.typeInstanciator = typeInstanciator; }