摘要: 泛型把类或方法的类型的确定推迟到实例化该类或方法的时候,也就是说刚开始声明是不指定类型,等到要使用(实例化)时再指定类型泛型可以用于 类、方法、委托、事件等下面先写一个简单的泛型public class GenericClass{ void SomeMethod( T t ... 阅读全文
posted @ 2014-05-27 14:02 米豆 阅读(737) 评论(0) 推荐(0)
摘要: 在写LINQ语句的时候,往往会看到.AsEnumerable() 和 .AsQueryable() 。例如:string strcon ="Data Source=.\\SQLEXPRESS;Initial Catalog=Db_Example;Persist Security Info=True;... 阅读全文
posted @ 2014-05-27 13:47 米豆 阅读(558) 评论(0) 推荐(0)
摘要: 做C#的同学们,都知道,一类只能有一个继承类,但可以实现多个接口。这句话就告诉我们:IEnumerable,ICollection,IList,List区别了首先我看看 IEnumerable:// 摘要: // 公开枚举器,该枚举器支持在指定类型的集合上进行简单迭代。 // ... 阅读全文
posted @ 2014-05-27 13:40 米豆 阅读(361) 评论(0) 推荐(0)
摘要: 阅读目录:1.开篇介绍2.ASP.NET Routing 路由对象模型的位置3.ASP.NET Routing 路由对象模型的入口4.ASP.NET Routing 路由对象模型的内部结构4.1】UrlRoutingModule 对象内部结构4.2】RouteBase、Route、RouteColl... 阅读全文
posted @ 2014-05-27 13:20 米豆 阅读(240) 评论(0) 推荐(0)
摘要: 在写LINQ语句的时候,往往会看到.AsEnumerable() 和 .AsQueryable() 。例如:string strcon ="Data Source=.\\SQLEXPRESS;Initial Catalog=Db_Example;Persist Security Info=True;... 阅读全文
posted @ 2014-05-27 13:19 米豆 阅读(218) 评论(0) 推荐(0)