C#中的CallByName ???? [英] CallByName in C#????
本文介绍了C#中的CallByName ????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道是否有办法在C#中做到这一点?
Jelle van Baardewijk
Does anybody know if there''s way to do this in C#?
Jelle van Baardewijk
推荐答案
什么?
按名称调用方法?
是的,有可能 - 请参阅反射的MethodInfo类。
-
Miha Markic - RightHand .NET咨询&软件开发
miha at rthand com
www.rthand.com
" Jelle van Baardewijk" < jv*@databalk.nl>在消息中写道
新闻:%2 **************** @ tk2msftngp13.phx.gbl ...
Hi,
What?
Calling a method by its name?
Yes, it is possible - see reflection''s MethodInfo class.
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"Jelle van Baardewijk" <jv*@databalk.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
有没有人知道是否有办法在C#中做到这一点?
Jelle van Baardewijk
Does anybody know if there''s way to do this in C#?
Jelle van Baardewijk
" Jelle van Baardewijk < jv*@databalk.nl>写道:
"Jelle van Baardewijk" <jv*@databalk.nl> writes:
有人知道在C#中是否有办法做到这一点?
Does anybody know if there''s way to do this in C#?
什么是callbyname ; ?
-
劳伦斯押韵 Oluyede
http://loluyede.blogspot.com
反射是一种方法,但您也可以使用VB版本,只需添加对visual basic命名空间的引用即可。
Yves
" Jelle van Baardewijk" < jv*@databalk.nl> schreef in bericht
新闻:%2 **************** @ tk2msftngp13.phx.gbl ...
Reflection is one way to do it, but you can also use the VB version by
simply adding a reference to the visual basic namespace.
Yves
"Jelle van Baardewijk" <jv*@databalk.nl> schreef in bericht
news:%2****************@tk2msftngp13.phx.gbl...
有没有人知道是否有办法在C#中做到这一点?
Jelle van Baardewijk
Does anybody know if there''s way to do this in C#?
Jelle van Baardewijk
这篇关于C#中的CallByName ????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文