KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way in c# to loop over the properties of a class? Basically I have a class that contains a large number of property's (it basically holds the results of a large database query). I need to output these results as a CSV file so need to append each value to a string. The obvious way it to manually append each value to a string, but is there a way to effectively loop over the results object and add the value for each property in turn?
Tags (comma-separated)
Save Edits
Cancel