码迷,mamicode.com
首页 >  
搜索关键字:reflection    ( 912个结果
[C#]枚举操作(从枚举中获取Description,根据Description获取枚举,将枚举转换为ArrayList)工具类
关键代码: using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Reflection;namespace CSharpUtilH...
分类:其他好文   时间:2014-06-28 13:08:37    阅读次数:297
得到一个Object的属性
private static object GetPropertyValue(object obj, string property) { System.Reflection.PropertyInfo propertyInfo = obj.Get...
分类:其他好文   时间:2014-06-28 12:19:33    阅读次数:191
ILGenerator.Emit动态 MSIL编程(三)之动态代理
using System; using System.Linq; using System.Reflection; using System.Reflection.Emit; public sealed class DynamicProxy { pri...
分类:其他好文   时间:2014-06-26 13:08:59    阅读次数:185
【C#】利用反射构建实体
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace RftToModel { ...
分类:其他好文   时间:2014-06-24 10:11:11    阅读次数:151
4 如何获得控制台应用程序的路径
如何获得控制台应用程序的路径 (1) 使用反射获得执行程序集路径 (2) 传递IO.Path.GetDirectoryName 示例代码: static void GetAppPath() { string path = System.Reflection.Assembly.GetExecutingAssembly().Location; Console.Wri...
分类:其他好文   时间:2014-06-18 06:16:29    阅读次数:212
[C#]对于INI操作代码
using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Reflection;using System.Runtime.InteropServices;using System.Te...
分类:其他好文   时间:2014-06-17 20:49:42    阅读次数:281
Time Out 访问数据库超时处理 .NET
1 using System.Reflection; 2 3 using System.Data.SqlClient; 4 5 6 7 8 9 TransactionSelectTableAdapter adapter = new Transacti...
分类:数据库   时间:2014-06-15 22:05:01    阅读次数:327
Reflection
【概述】所谓的反射,可以理解为在运行时获取对象类型信息的操作。java.lang.Class 类是 Java 反射的起源,针对任何一个想要探测的类,只有先为它产生一个 Class 对象,才能通过 Class 对象获取其他想要的信息。Java 程序在运行时,系统会对所有的对象进行所谓的运行时类型标识,用来保存这些类型信息的类就是 Class 类。Class 类封装一个对象或接口运行时的状态。...
分类:其他好文   时间:2014-06-14 10:10:37    阅读次数:180
android中反射技术使用实例
反射机制应用 1.通过反射技术可以访问到其他包名下数据方法等,这些为一些APK换皮肤提供了方便 2. 访问android 隐藏的API 3. 修改某些“不可改” 的系统资源...
分类:移动开发   时间:2014-06-10 13:45:03    阅读次数:269
插件的简单原理
using IExtendServices;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Reflection;using System.Text;using ...
分类:其他好文   时间:2014-06-10 09:25:33    阅读次数:191
912条   上一页 1 ... 87 88 89 90 91 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!