Beispiel #1
0
        public static void GenerateHtmlTable <T>(this Table <T> table, TextWriter writer)
        {
            if (table == null)
            {
                throw new ArgumentNullException("table");
            }
            HtmlTableGenerator <T> generator = new HtmlTableGenerator <T>(table);

            generator.Generate(writer);
        }
Beispiel #2
0
        public static void GenerateHtmlTable <T>(this Table <T> table, string path)
        {
            if (table == null)
            {
                throw new ArgumentNullException("table");
            }
            HtmlTableGenerator <T> generator = new HtmlTableGenerator <T>(table);

            generator.Generate(path);
        }
Beispiel #3
0
        public static string GenerateHtmlTable <T>(this Table <T> table)
        {
            if (table == null)
            {
                throw new ArgumentNullException("table");
            }
            HtmlTableGenerator <T> generator = new HtmlTableGenerator <T>(table);

            return(generator.Generate());
        }