0
kicks
Converting a Generic List of Custom Objects & Property to a Formatted
Today I had the need to take a list of names from a returned list of Custom Objects, and convert one of its properties it to a string that included some HTML. This is nothing fancy, and pretty standard/simple but I thought I’d post about it anyway. Since I did not need a custom ToString() method here to convert all properties of my object, I just created a simple method to iterate through the list of objects and add one of the properties to the StringBuilder object which is ultimately being returned to give me the nice string with HTML.