GetParameters() public method

public GetParameters ( object obj ) : List
obj object
return List
Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }