예제 #1
0
        public static OutputInfo Create <T>(string header, IList <T> objects, IList <string> properties, string footer)
        {
            OutputHeader outputHeader = null;

            if (header != null)
            {
                outputHeader = new OutputHeader(header);
            }
            List <IOutputBody> outputBodies = RetriveProperties <T>(objects, properties, true);
            OutputFooter       outputFooter = null;

            if (footer != null)
            {
                outputFooter = new OutputFooter(footer);
            }
            return(new OutputInfo(outputHeader, outputBodies, outputFooter));
        }
예제 #2
0
        public static OutputInfo Create(string header, IEnumerable <IEnumerable <string> > bodies, string footer)
        {
            OutputHeader outputHeader = null;

            if (header != null)
            {
                outputHeader = new OutputHeader(header);
            }
            List <IOutputBody> outputBodies = CreateBodies(bodies);
            OutputFooter       outputFooter = null;

            if (footer != null)
            {
                outputFooter = new OutputFooter(footer);
            }
            return(new OutputInfo(outputHeader, outputBodies, outputFooter));
        }