I have an object which holds many values, some of them (not all values from the object) need to be put in a csv string. My approach was this:
string csvStrin
You could override your object's ToString() method:
public override string ToString () { return string.Format ("{0},{1},{2}", this.number, this.id, this.whatever); }