public static void MakeCsvFromContactList(LinkedList <GoogleContact> i_Contacts, string i_FilePath) { using (StreamWriter writer = new StreamWriter(new FileStream(i_FilePath, FileMode.Create, FileAccess.Write))) { writer.WriteLine(GoogleContact.GetCsvHeader()); foreach (GoogleContact contact in i_Contacts) { writer.WriteLine(contact.ToString()); } } }
public override string ToString() { return(GoogleContact.objectPropsToCsvString(this)); }