Generics

There are 1 entries for the tag Generics
Converting a Generic List of Custom Objects & Property to a Formatted String List

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 then return my string with H

posted @ Monday, October 13, 2008 12:15 AM | Feedback (2)