码迷,mamicode.com
首页 >  
搜索关键字:reflection    ( 912个结果
property和attribute的区别
UML中property是指类向外提供的数据区域。而attribute则是描述对象在编译时或运行时属性的,分为固有型和用户自定义型,其中用户自定义型可以利用Reflection在运行期获取。C#中AttributeAttributes是Microsoft .NET Framework文件的元数据,可...
分类:其他好文   时间:2014-11-06 10:32:14    阅读次数:184
The Reflection And Amplification Attacks && NTP Reply Flood Attack Based On NTP
The Reflection And Amplification Attacks Based On NTP
分类:其他好文   时间:2014-11-04 22:28:13    阅读次数:417
C#反射
[转]C#反射反射(Reflection)是.NET中的重要机制,通过放射,可以在运行时获得.NET中每一个类型(包括类、结构、委托、接口和枚举等)的成员,包括方法、属性、事件,以及构造函数等。还可以获得每个成员的名称、限定符和参数等。有了反射,即可对每一个类型了如指掌。如果获得了构造函数的信息,即...
分类:Windows程序   时间:2014-11-04 17:08:52    阅读次数:236
C# JSON帮助类
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Reflection;using System.Collections;using System.Data.C...
分类:Windows程序   时间:2014-11-04 10:43:54    阅读次数:268
单例模式的终结者——setAccessible(true)
先来看下“传统”的单例模式 package go.derek; public class Singleton{ public static int times; private Singleton(){ //构造器被调用的时候会打印出次数 System.out.println("单例构造器被调用"+(++times)+"两次"); } private final sta...
分类:数据库   时间:2014-11-02 00:37:50    阅读次数:167
getDeclaredConstructor()与getConstructor的区别
首先看getDeclaredConstructor(Class... parameterTypes)  这个方法会返回制定参数类型的所有构造器,包括public的和非public的,当然也包括private的。 getDeclaredConstructors()的返回结果就没有参数类型的过滤了。 再来看getConstructor(Class... parameterTypes) ...
分类:其他好文   时间:2014-11-01 19:15:11    阅读次数:276
C#写TXT文档
//C#写TXT文档 String strDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); ...
分类:Windows程序   时间:2014-11-01 14:47:07    阅读次数:190
ios开发 Reflection(三) 利用反射自动绑值
反射的具体应用,自动绑值获取属性列表 1 - (NSArray*)propertyKeys 2 { 3 unsigned int outCount, i; 4 objc_property_t *properties = class_copyPropertyList([self cla...
分类:移动开发   时间:2014-10-31 18:42:27    阅读次数:335
ios开发 Reflection(二)
反射机制可以获取的内容1.获取一个 类的所有属性 1 #pragma -mark 获取变量列表 2 3 -(void)getVarName 4 { 5 unsigned int numIvars; //成员变量个数 6 Ivar *vars = class_copyIvarList...
分类:移动开发   时间:2014-10-31 17:12:37    阅读次数:171
C# 简单的反射机制实例
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Collections;using ConsoleApplic...
分类:Windows程序   时间:2014-10-31 11:35:44    阅读次数:226
912条   上一页 1 ... 74 75 76 77 78 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!