public BindingReport Bind(object targetObjectWithAttributes, IEnumerable <CommandLineParameter> parametersToBind) { var context = new BindingContext(); var helper = new Helper(); var parameters = helper.GetParameters(targetObjectWithAttributes); foreach (var parameter in parameters) { Bind(targetObjectWithAttributes, parameter.PropertyInfo, parametersToBind.ToList(), parameter.ArgumentAttribute, context); } return(context.Report); }
public BindingReport Bind(object targetObjectWithAttributes, IEnumerable<CommandLineParameter> parametersToBind) { var context = new BindingContext(); var helper = new Helper(); var parameters = helper.GetParameters(targetObjectWithAttributes); foreach (var parameter in parameters) { Bind(targetObjectWithAttributes, parameter.PropertyInfo, parametersToBind.ToList(), parameter.ArgumentAttribute, context); } return context.Report; }