随笔分类 -  C#知识点

Linq的坑爹之处
摘要: 阅读全文
posted @ 2015-11-01 11:53 903SW-BAO 阅读(181) 评论(0) 推荐(0)
C#自己写的迭代器(拓展字典)
摘要:using System;using System.Collections.Generic;using System.Collections;using System.Linq;using System.Text;using System.Threading.Tasks;namespace IEnu... 阅读全文
posted @ 2015-09-09 00:03 903SW-BAO 阅读(430) 评论(0) 推荐(0)
C#中的浅复制和深复制
摘要:浅复制:复制出来一个对象,但对象中的引用没有被复制,而是与原来的对象公用,改变一个,另一个也跟着变 public School Copy() { return (School)this.MemberwiseClone(); }注意:浅复制可以复制的有: 值类型(int,float) ... 阅读全文
posted @ 2015-09-09 00:02 903SW-BAO 阅读(234) 评论(0) 推荐(0)