Export a generic collection to CSV using reflection