摘要:
List<T> 被声明为class, 所以它是地址型变量。而值型变量会被声明为struct。在赋值时需要注意,比如:List<int> listA = new List<int>(){1, 2, 3};List<int> listB = new List<int>();List<int> listC = new List<int>();listB = listA;listC = listA;for(int i = 0; i< listB.Count; i++){ listB[i] =listC[i] *2 阅读全文
posted @ 2012-12-31 13:27
马语者
阅读(1208)
评论(0)
推荐(0)

浙公网安备 33010602011771号