Zoe
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Thread... 阅读全文
posted @ 2018-03-15 15:51 口袋里的SKY 阅读(131) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IO... 阅读全文
posted @ 2018-03-14 09:00 口袋里的SKY 阅读(290) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyDelegateEvent.Delegate { /// /// 轿车工厂 /// pub... 阅读全文
posted @ 2018-03-13 14:03 口袋里的SKY 阅读(176) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyAbstract.Abstract { /// /// 抽象类是一个类,里面可以包含一切类可以包含的 /// 抽象... 阅读全文
posted @ 2018-03-02 14:56 口袋里的SKY 阅读(1435) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyLambda.Extend { /// /// 扩展方法:静态类 静态方法 第一个参数类型前面加上this //... 阅读全文
posted @ 2018-03-02 13:13 口袋里的SKY 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 一:ref 关键字使参数按引用传递。 其效果是,当控制权传递回调用方法时,在方法中对参数所做的任何更改都将反映在该变量中。若要使用 ref 参数,则方法定义和调用方法都必须显式使用 ref 关键字。 也即是说,在方法中对参数的设置和改变将会直接影响函数调用之处(代码①及②)。无论是函数的定义还是调用 阅读全文
posted @ 2018-03-02 10:32 口袋里的SKY 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 1.值类型(ValueType) 值类型包括:数值类型,结构体,bool型,用户定义的结构体,枚举,可空类型。 值类型的变量直接存储数据,分配在托管栈中。变量会在创建它们的方法返回时自动释放,例如在一个方法中声明Char型的变量name=’C’,当实例化它的方法结束时,name变量在栈上占用的内存就 阅读全文
posted @ 2018-03-02 09:17 口袋里的SKY 阅读(178) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyGeneric.CC { /// /// 只能放在接口或者委托的泛型参数前面 /// out 协变covarian... 阅读全文
posted @ 2018-03-01 20:58 口袋里的SKY 阅读(145) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; using Ruanmou.DB.Interface; using Ruanmou.DB.Sqlserver; us... 阅读全文
posted @ 2018-03-01 20:49 口袋里的SKY 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.单例模式(Singleton Pattern) 定义:Ensure a class has only one instance, and provide a global point of access to it.(确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。) 通用代码 阅读全文
posted @ 2018-02-26 17:23 口袋里的SKY 阅读(304) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页