I need to convert the contents of a generic list of a custom class to html. e.g., if I am storing values for a class such as the following in a generic list:
public class PlatypusSummary
{
public String PlatypusName { get; set; }
public int TotalOccurrencesOfSummaryItems { get; set; }
public int TotalSummaryExceptions { get; set; }
public double TotalPercentageOfSummaryExceptions { get; set; }
}
...so that I end up with a generic list like so:
List<PlatypusSummary> _PlatypusSummaryList = null;
. . .
var dbp = new PlatypusSummary
{
PlatypusName = summary["duckbillname"].ToString(),
TotalOccurrencesOfSummaryItems = totalOccurrences,
TotalSummaryExceptions = totalExceptions,
TotalPercentageOfSummaryExceptions = totalPercentage
};
_PlatypusSummaryList.Add(dbp);
...how can I convert the contents of that generic list to HTML?