I have a class to hold data and a list of that class. Here is my code.
static void Main(string[] args)
{
List<GoogleContacts> contacts = new List<GoogleContacts>();
contacts.Add(new GoogleContacts { title = "A", email = "B", im = "X" });
contacts.Add(new GoogleContacts { title = "C", email = "D", im = "Y" });
contacts.Add(new GoogleContacts { title = "E", email = "F", im = "Z" });
}
}
public class GoogleContacts
{
public string title { get; set; }
public string email { get; set; }
public string im { get; set; }
}
I want to save those data in a .VCF file in local Disk.
See Question&Answers more detail:os