码迷,mamicode.com
首页 >  
搜索关键字:reflection    ( 912个结果
REFLECTION(反射)INTROSPECTION(内省、内观)
有时候我们说某个语言具有很强的动态性,有时候我们会区分动态和静态的不同技术与作法。我们朗朗上口动态绑定(dynamic binding)、动态链接(dynamic linking)、动态加载(dynamic loading)等。然而“动态”一词其实没有绝对而普遍适用的严格定义,有时候甚至像对象导向当...
分类:其他好文   时间:2015-08-07 09:30:39    阅读次数:187
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'fundId' in 'class java.lang.Integer'
Struts Problem ReportStruts has detected an unhandled exception:Messages:There is no getter for property named 'fundId' in 'class java.lang.Integer'ne...
分类:编程语言   时间:2015-08-04 11:02:21    阅读次数:930
C# 动态生成类 枚举等
private void GenerateCode() {/*注意,先导入下面的命名空间using System.CodeDomusing System.CodeDom.Compiler;using Microsoft.CSharp;using System.Reflection;*///准备一个代...
分类:Windows程序   时间:2015-08-03 14:27:34    阅读次数:765
Java基础:反射机制(Reflection)总结
反射在java中有非常重大的意义,它是一种动态的相关机制,可以于运行时加载、探知、使用编译期间完全未知的classes。换句话说,java程序可以加载一个运行时才得知名称的class,获悉其完整构造(但不包括methods具体定义),并生成其对象实体、或对其fields设值、或使用其methods。...
分类:编程语言   时间:2015-08-02 21:27:29    阅读次数:128
用于dbnull的数据转换。因为用convert.to无法转换dbnull类型
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Reflection;namespace RM.Web{ /// /// 用于dbnull的数据转...
分类:数据库   时间:2015-07-31 09:00:12    阅读次数:134
动态地生成用户输入的函数表达式(C#)
我在一篇随笔“画函数图形的C#程序,兼论一个病态函数”中提到: 这个画函数图形的C#程序有一个严重的缺点,就是函数表达式是直接写的源程序中的,不能象SciLab和Matlab那样交互式地输入。不知道用 System.Reflection.Emit.ILGenerator 类能不能动态地生成用户输入的函数表达式?“空间/IV”在该随笔的评论中指出:  关于动态地生成用户输入的函数表达式, 看...
分类:Windows程序   时间:2015-07-31 07:53:05    阅读次数:201
浅谈 .NET 程序的编译时间
我们在编写 .NET 程序时,经常会在该程序的“关于本软件”对话框中给出这个程序的编译时间,如下图所示:   上图中的编译时间是如果得到的呢?其实是在其 C# 源程序中有这么一句: [assembly: AssemblyVersion("1.3.*")] 上述语句使用了 System.Reflection.AssemblyVersionAttribute 类,该类用于指...
分类:Web程序   时间:2015-07-29 10:21:05    阅读次数:136
Unity单例
1、非Mono单例: 1 using System; 2 using System.Reflection; 3 using System.Collections.Generic; 4 5 public static class Singleton where T : class 6 { 7 ...
分类:编程语言   时间:2015-07-28 12:51:54    阅读次数:110
使用 C# 开发智能手机软件:推箱子(六)
这是“使用 C# 开发智能手机软件:推箱子”系列文章的第六篇。在这篇文章中,介绍 Common/Pub.cs 源程序文件。   1 using System;   2 using System.Drawing;   3 using System.Text;   4 using System.IO;   5 using System.Reflection;   6   ...
分类:移动开发   时间:2015-07-26 12:46:26    阅读次数:243
反射-Emit
一、Emit概述 Emit,可以称为发出或者产生。在Framework中,与Emit相关的类基本都存在于System.Reflection.Emit命名空间下。可见Emit是作为反射的一个元素存在的。说道反射,大家应该都不陌生,它允许我们查看程序集的元素据,从而取得形如程序集包含哪些类型,类型包含....
分类:其他好文   时间:2015-07-26 05:57:06    阅读次数:107
912条   上一页 1 ... 55 56 57 58 59 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!