
c#
文章平均质量分 77
fastspeeed
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
泛型错误 The type parameter 'T' cannot be used with the 'as' operator
泛型错误 The type parameter 'T' cannot be used with the 'as' operator because it does not have a class type constraint nor a 'class' constraint 如果T是接口 这是错误的 :return System.Activator.CreateInstance(re...2012-04-06 10:55:17 · 1791 阅读 · 0 评论 -
linq xml to entity
linq做为转换工具不错,代码简洁多了 [b]linq xml to entity [/b] IList listModule =new List( from pp in configElement.Descendants(Module_Module) ...2012-04-06 21:15:54 · 177 阅读 · 0 评论 -
[MoCoolKaErpGen代码讲解] WCF knownType 在web.config中生成
MoCoolKaErp只有一个入口,接收参数为基类,按WCF协议必须声明所有的子类为knownType.最直接的办法就是遍历所有assembly,寻找所有的子类。 用linq遍历assembly寻找指定类生成web.config中序列化 linq语法的确精炼,一句话就行了 方法 public XElement GenConfig(String[] assemblys) ...原创 2012-04-07 04:35:43 · 130 阅读 · 0 评论