码迷,mamicode.com
首页 >  
搜索关键字:reflection    ( 912个结果
反射的结果中排除隐藏的成员
问题:实例化的对象,反射后得到的列表包含了被隐藏的基类成员,这时如果转换为hashtable将会报key以存在的错误,如果单独使用GetProperty(“”),将会引发异常“System.Reflection.AmbiguousMatchException” 分析:找不到办法得到不包含基类成员集合
分类:其他好文   时间:2016-03-09 20:50:47    阅读次数:114
NaN 和 Infinity
using Fasterflect; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threadi
分类:其他好文   时间:2016-03-09 20:42:03    阅读次数:140
Delphi word编辑
private void but_Table_Click(object sender, EventArgs e) { object Nothing = System.Reflection.Missing.Value; object missing = System.Reflection.Missin
分类:Windows程序   时间:2016-03-07 10:13:16    阅读次数:236
.net 反射访问私有变量和私有方法
以下为本次实践代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Linq; 5 using System.Reflection; 6 using
分类:Web程序   时间:2016-02-29 18:05:15    阅读次数:219
[Java] Java反射
首先推荐三个十分有趣的网站: http://www.programcreek.com/simple-java/ http://tutorials.jenkov.com/ http://www.meetup.com/ Java Reflection makes it possible to inspe
分类:编程语言   时间:2016-02-24 17:26:59    阅读次数:169
扩展方法 DataTable的ToList<T>
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Reflection; namespace Extension
分类:其他好文   时间:2016-02-06 22:22:27    阅读次数:268
C#反射技术的简单操作(读取和设置类的属性)
public class A { public int Property1 { get; set; } } static void Main(){ A aa = new A(); Type type = aa.GetType();//获取类型 System.Reflection.PropertyIn
分类:Windows程序   时间:2016-01-28 13:47:01    阅读次数:256
【C#】.NET提供了哪些类型来实现反射
实现反射的类型大多数都定义在System.Reflection命名空间之下。Assembly 定义一个Assembly,它是可重用、无版本冲突并且可自我描述的公共语言运行库应用程序构造块。AssemblyName 完整描述程序集的唯一标识EventInfo 发现事件的属性(Attribute)...
分类:Windows程序   时间:2016-01-26 23:13:16    阅读次数:335
Java反射机制专题
·Java ReflectionReflection(反射)是被视为动态语言的关键,反射机制允许程序在执行期借助于Reflection API取得任何类的内部信息,并能直接操作任意对象的内部属性及方法·Java反射机制提供的功能 在运行时判断任意一个对象所属的类 在运行时构造任意一个类的对象 ...
分类:编程语言   时间:2016-01-25 01:18:55    阅读次数:188
C# vba 操作 Word
添加引用Microsoft Word *.0 Object LibraryMicrosoft Graph *.0 Object Library变量说明Object oMissing = System.Reflection.Missing.Value;object oEndOfDoc = "\\end...
分类:编程语言   时间:2016-01-18 20:25:51    阅读次数:523
912条   上一页 1 ... 47 48 49 50 51 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!