摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/** 1、泛型结构* 2、泛型委托* 3、泛型方法*/namespace ExGenericStruct{ //泛型结构 stru... 阅读全文
posted @ 2015-09-11 16:07 Alfred.Xu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://blog.163.com/tianshenglongchang@126/blog/static/164628503201231925214824/查询除指定字段外的所有字段declare @name varchar(100) declare @sql varchar(1000) ... 阅读全文
posted @ 2015-09-11 14:16 Alfred.Xu 阅读(15850) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/*泛型栈*/namespace ExGeneric{ class MyStack { const int MaxStack ... 阅读全文
posted @ 2015-09-10 17:38 Alfred.Xu 阅读(591) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/** 1、接口表示一组函数成员而不实现成员的引用类型* 2、只有类和结构可以实现接口,必须实现接口中的全部成员* 3、接口可以继承接口... 阅读全文
posted @ 2015-09-10 17:17 Alfred.Xu 阅读(203) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ExLambda{ class Program { delegate double MyDel(int p... 阅读全文
posted @ 2015-09-10 14:42 Alfred.Xu 阅读(132) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ExDelegate{ delegate void PrintFunction(); delegate void... 阅读全文
posted @ 2015-09-10 14:23 Alfred.Xu 阅读(83) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/** 1、枚举是值类型* 2、成员只有一种类型:命名的整数值常量* 3、成员声明列表以逗号隔开* 4、后一个成员比前一个增1* 5、不... 阅读全文
posted @ 2015-09-10 11:39 Alfred.Xu 阅读(169) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/** 结构是自定义的数据类型,与类类似,包含数据成员和函数成员* 1、结构是值类型* 2、结构是隐式密封的不可以派生* 3、结构中字段... 阅读全文
posted @ 2015-09-10 11:21 Alfred.Xu 阅读(122) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/*使用explicit(显式)和implicit(隐式)*/namespace 自定义转换{ class LimitedInt {... 阅读全文
posted @ 2015-09-09 11:02 Alfred.Xu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #define DoTrace//这里定义了标注符号,注释掉该行,那么标注有 [Conditional("DoTrace")]特性的方法将不执行using System;using System.Diagnostics;namespace ExofConditional{ class Progra... 阅读全文
posted @ 2015-09-09 10:15 Alfred.Xu 阅读(193) 评论(0) 推荐(0) 编辑