02 2011 档案

摘要: 反射判断 某个对象 是否 是泛型集合的类型[代码]获取类实例[代码]获取指定属性代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicstaticPropertyInfoGetPropertyByName(Typetype,stringpropertyName){returntype.GetProperty(propertyName,BindingFlags.Public|BindingFlags.IgnoreCase|Bindin阅读全文
posted @ 2011-02-12 18:09 索马 阅读(199) | 评论 (0) 编辑