port listToCSV according to the corresponding DS class.