2015年5月7日

C#中的where从句

摘要: C#中的where从句2011-07-03 13:07OrphousV|分类:C#/.NET|浏览8443次能解释一下下面两段代码中where的作用吗?using System;public class MyGenericClass where T: IComparable, new(){ ... 阅读全文

posted @ 2015-05-07 17:22 chengjunde 阅读(398) 评论(0) 推荐(0) 编辑

Activator.CreateInstance 方法 (Type) 的用法

摘要: Activator.CreateInstance 方法 (Type) 的用法Activator.CreateInstance 方法 (Type)使用与指定参数匹配程度最高的构造函数来创建指定类型的实例。命名空间:System程序集:mscorlib(在 mscorlib.dll 中)C#public... 阅读全文

posted @ 2015-05-07 17:20 chengjunde 阅读(271) 评论(0) 推荐(0) 编辑

导航