关键代码: using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Reflection;namespace CSharpUtilH...
分类:
其他好文 时间:
2014-06-28 13:08:37
阅读次数:
297
private static object GetPropertyValue(object obj, string property) { System.Reflection.PropertyInfo propertyInfo = obj.Get...
分类:
其他好文 时间:
2014-06-28 12:19:33
阅读次数:
191
using System; using System.Linq; using System.Reflection; using System.Reflection.Emit; public sealed class DynamicProxy { pri...
分类:
其他好文 时间:
2014-06-26 13:08:59
阅读次数:
185
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
如何获得控制台应用程序的路径
(1) 使用反射获得执行程序集路径
(2) 传递IO.Path.GetDirectoryName
示例代码:
static void GetAppPath()
{
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
Console.Wri...
分类:
其他好文 时间:
2014-06-18 06:16:29
阅读次数:
212
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
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
【概述】所谓的反射,可以理解为在运行时获取对象类型信息的操作。java.lang.Class 类是 Java 反射的起源,针对任何一个想要探测的类,只有先为它产生一个 Class 对象,才能通过 Class 对象获取其他想要的信息。Java 程序在运行时,系统会对所有的对象进行所谓的运行时类型标识,用来保存这些类型信息的类就是 Class 类。Class 类封装一个对象或接口运行时的状态。...
分类:
其他好文 时间:
2014-06-14 10:10:37
阅读次数:
180
反射机制应用
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