摘要: 当我们对集合foreach遍历时,不能直接移除遍历的集合的元素,解决的方法有很多种,见我之前的随笔:http://www.cnblogs.com/527289276qq/p/4331000.html除此之外,我今天发现了利用linq中的ToArray()方法,也可以实现遍历集合,移除集合中的元素,代... 阅读全文
posted @ 2015-03-22 18:14 秋刀鱼No1 阅读(321) 评论(0) 推荐(0)
摘要: 产品类:public class Product:NotificationObject { private int productID; public int ProductID { get { return productID... 阅读全文
posted @ 2015-03-22 15:40 秋刀鱼No1 阅读(3051) 评论(0) 推荐(0)