使用反射从DLL获取方法名称 [英] Get MethodNames from DLL using Reflection

查看:129
本文介绍了使用反射从DLL获取方法名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我正在研究反射概念,并尝试从中检索所有方法名称并正常工作...
但是当我向该Dll(私有程序集)(类库)添加一些方法并对其进行编译时,现在检查以查看所有方法名称,但所幸我找不到新添加的方法.

请告诉我可能是什么问题...

在ADV中致谢

Hi..

I am working on Reflection concept ,and tried to retrieve all the method names from it and working fine ...
but when i added some methods to that Dll(Private assembly)(Class library) and compiled it and now checked to see the all method names but fortunately i couldn,t find the neewly added methods.

pls tell me what might be the problem...

Thanks in ADV

推荐答案

如果您已在GAC中部署Ur dll,则将其删除并安装新创建的dll.

如果尚未在GAC中部署dll,则更改新创建的dll的版本,并将其粘贴到应用程序加载dll文件的位置.
If you have deployed Ur dll in GAC then remove it and install the newly created dll.

If you have not deployed the dll in GAC then change the version of the newly created dll and paste it in the location from where your application is loading the dll file.


这篇关于使用反射从DLL获取方法名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆