private void VisitConstructor(ConstructorInfo constructor, RegisterElement element) { var attributes = constructor.GetDependencyInjectionOnConstructor(); if( attributes == null || attributes.Count() > 1 ) throw new FrameworkDependencyException(); var param = this.VisitParam(constructor.GetParameters()); if( param.Count == 0 ) return; element.constructor = new List<ParamElement>(); element.constructor.AddRange(param); }