private String AddRecordsType(WBRecordsType recordsType) { List <String> properties = recordsType.GetAllPropertyValues(); List <String> csvValues = new List <String>(); foreach (String property in properties) { csvValues.Add("\"" + property + "\""); } string csvText = ""; csvText += String.Join(",", csvValues.ToArray()) + "\n"; foreach (Term child in recordsType.Term.Terms) { csvText += AddRecordsType(new WBRecordsType(recordsType.Taxonomy, child)); } return(csvText); }