码迷,mamicode.com
首页 >  
搜索关键字:reflection    ( 912个结果
System.Type类
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; usingSystem.Reflection; namespaceConsoleApplication1 { classProgram { staticvoidMain(string[]args) { //System.Type类 //=========================获..
分类:其他好文   时间:2014-10-30 02:03:24    阅读次数:166
asp.net 使用JQuery 调用Ashx 后面直接写方法名,通过反射找到对应的方法
using System.Reflection;public class Industry_Manager : IHttpHandler{ HttpRequest gRequest = null; HttpContext gContext = null; HttpResponse ...
分类:Web程序   时间:2014-10-30 01:30:31    阅读次数:306
LINQ返回DataTable类型 list转dataset 转换为JSON对象
using System.Web.Script.Serialization;using System.Collections.Generic;using System.Reflection;using System.Data;using System;namespace CommonCode{ .....
分类:Web程序   时间:2014-10-29 12:09:45    阅读次数:195
C# 通过反射类动态调用DLL方法
网上看了很多关于反射的思路和方法,发现这个还算不错//使用反射方:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;namespace C...
分类:Windows程序   时间:2014-10-28 17:11:18    阅读次数:236
C# 反射机制(转)
1 什么是反射2、 命名空间与装配件的关系3、 运行期得到类型信息有什么用4、 如何使用反射获取类型5、 如何根据类型来动态创建对象6、 如何获取方法以及动态调用方法7、 动态创建委托1、什么是反射 Reflection,中文翻译为反射。 这是.Net中获取运行时类型信息的方式,...
分类:Windows程序   时间:2014-10-28 11:56:11    阅读次数:342
c# excel sheep 导出
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Reflection;using System.Collections;us...
分类:Windows程序   时间:2014-10-25 22:59:33    阅读次数:291
java之反射
java之反射 一、Java Reflection      Reflection(反射)是被视为动态语言的关键,反射机制允许程序在执行期借助于Reflection API取得任何类的内部信息,      并能直接操作任意对象的内部属性及方法 ①Java反射机制提供的功能     在运行时判断任意一个对象所属的类     在运行时构造任意一个类的对象     在运行时判断任意一个类所...
分类:编程语言   时间:2014-10-25 18:48:04    阅读次数:321
反射动态转换
烦,因为反射的时候,有那么多属性数据类型不一样的,然后要写好多转换方法?我不想这样做呢,,所以,找啊找,红色标记为Type _type = typeof(T); System.Reflection.PropertyInfo[] info = _type.GetProperties(); T t = ...
分类:其他好文   时间:2014-10-23 19:09:18    阅读次数:135
C#反射
反射(Reflection)是.NET中的重要机制,通过放射,可以在运行时获得.NET中每一个类型(包括类、结构、委托、接口和枚举等)的成员,包括方法、属性、事件,以及构造函数等。还可以获得每个成员的名称、限定符和参数等。有了反射,即可对每一个类型了如指掌。如果获得了构造函数的信息,即可直接创建对象...
分类:Windows程序   时间:2014-10-23 16:00:16    阅读次数:202
Get assembly version and build date
1 //get assembly version and create date 2 lblDisplayPCLVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().V...
分类:其他好文   时间:2014-10-23 15:43:06    阅读次数:133
912条   上一页 1 ... 75 76 77 78 79 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!