示例#1
0
 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());
         }
     }
 }
示例#2
0
 public override string ToString()
 {
     return(GoogleContact.objectPropsToCsvString(this));
 }