C# List 簡單範例
class Program
{
static void Main(string[] args)
{
List<Address> addressList = new List<Address>();
addressList.Add(new Address() {
Street = "Main Street",
Zip = "1234"
});
}
}
public class Address
{
public string Street { get; set; }
public string Zip { get; set; }
}
資料來源: