码迷,mamicode.com
首页 >  
搜索关键字:reflection    ( 912个结果
C#中分别对委托、匿名方法、Lambda表达式、Lambda表达式树以及反射执行同一方法的过程进行比较。
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Reflection;using System.Li...
分类:Windows程序   时间:2015-04-19 17:26:28    阅读次数:146
巩固java(七)-----java反射机制
一般而言,开发者社群说到动态语言,大致认同的一个定义是:“程序运行时,允许改变程序结构或变量类型,这种语言称为动态语言”。从这个观点看,Perl,Python,Ruby是动态语言,C++,Java,C#不是动态语言。尽管在这样的定义与分类下Java不是动态语言,它却有着一个非常突出的动态相关机制:Reflection。这个字的意思是“反射、映象、倒影”,用在Java身上指的是我们可以于运行时加载、...
分类:编程语言   时间:2015-04-18 22:05:14    阅读次数:127
如何获取程序集信息和产品信息
获取程序集的版本号 #region 获取程序集版本号 System.Reflection.Assembly web = System.Reflection.Assembly.GetExecutingAssembly(); System.Reflection...
分类:其他好文   时间:2015-04-13 16:23:27    阅读次数:116
JAVA学习笔记(六十一)- 反射Reflection
反射Reflectionimport java.lang.reflect.Modifier;/* * 反射Reflection * java.lang.Class类 */ public class Test01 { public static void main(String[] args) { String name = "tom"; // 方式一:通过...
分类:编程语言   时间:2015-04-06 10:12:48    阅读次数:130
.net反射实例
using System;using System.Collections.Generic;using System.Text;using System.Reflection;namespace ConsoleApplication1{ class Program { st...
分类:Web程序   时间:2015-04-05 14:28:54    阅读次数:127
Think in Java 笔记_Chapter20_2_Annocation和Junit
/2015年04月05日12:13:43 基于Annotation和Reflection的Junit初探:package cn.seven.shengsiyuan.annocation.junitan;import org.junit.Test;public class JunitSource {....
分类:编程语言   时间:2015-04-05 13:13:18    阅读次数:108
C#实体类转存入XML
这两天,应要求做一个C/S的小程序,考虑到程序简洁小巧,存数据的方式不使用数据库,而是直接存入XML文档中保存。可以使用C#有的反射机制,做一个简单的通用工具类来实现。实现类代码:using System;using System.Reflection;using System.Xml.Linq.....
分类:Windows程序   时间:2015-04-03 14:53:05    阅读次数:258
完美解决方案,可排除DATASET不支持System.Nullable错误
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;using YTO.WeiXin.Model;usi...
分类:其他好文   时间:2015-04-01 14:48:42    阅读次数:100
不可不知 DDoS的攻击原理与防御方法
DoS攻击、DDoS攻击和DRDoS攻击相信大家已经早有耳闻了吧!DoS是Denial of Service的简写就是拒绝服务,而DDoS就是Distributed Denial of Service的简写就是分布式拒绝服务,而DRDoS就是Distributed Reflection Denial...
分类:其他好文   时间:2015-03-30 12:51:21    阅读次数:126
类库探源-反射机制
导读 1、什么是反射 2、反射的基石——元数据 3、用ildasm.exe 查看元数据 4、System.Reflection 命名空间下需关注的成员 5、获取 Type 实例的方式 6、晚绑定与System.Activator 类 什么是反射 在计算机科学中,反射是指计算机程序在运行时(Run t...
分类:其他好文   时间:2015-03-29 01:53:01    阅读次数:179
912条   上一页 1 ... 65 66 67 68 69 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!