Generate HTML table from list of generic class with specified properties

https://stackoverflow.com/questions/11126137/generate-html-table-from-list-of-generic-class-with-specified-properties

compact version :

StringBuilder sb = new StringBuilder();
sb.Append("<table>");
foreach(var item in MyList){
    sb.AppendFormat("<tr><td>{0}</td></tr>", item);
}
sb.Append("</table>");

By: |23/05/2019|categories: