因此,下面有兩個類:Program是主類,而testing是第二類。我怎樣才能的內(nèi)容傳遞List<String> list = new List<String>();到 List<String> newList = new List<String>();第二類中。 class Program { static void Main(string[] args) { List<String> list = new List<String>(); list.Add("Test1"); testing client = new testing(); } } public class testing { List<String> newList = new List<String>(); }
- 2 回答
- 0 關注
- 129 瀏覽
添加回答
舉報
0/150
提交
取消