赞
踩
using System; using System.Collections.Generic; class Program { public static void Main(string[] args) { //方式1 List<string> list1 = new List<string> { "niaoge1", "niaoge2", "niaoge3" }; //方式2: List<string> list2 = new List<string>(); list2.Add("niaoge4"); list2.Add("niaoge5"); list2.Add("niaoge6"); } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。