using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Reflection;using System.Li...
一般而言,开发者社群说到动态语言,大致认同的一个定义是:“程序运行时,允许改变程序结构或变量类型,这种语言称为动态语言”。从这个观点看,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
反射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
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
/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/S的小程序,考虑到程序简洁小巧,存数据的方式不使用数据库,而是直接存入XML文档中保存。可以使用C#有的反射机制,做一个简单的通用工具类来实现。实现类代码:using System;using System.Reflection;using System.Xml.Linq.....
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
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