【发布时间】:2011-09-16 14:35:31
【问题描述】:
我有一个类来保存数据和该类的列表。 这是我的代码。
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; }
}
我想将这些数据保存在本地磁盘的 .VCF 文件中。
【问题讨论】: