开发者

calling methods at runtime

What is used to call methods at runtime?

Can either one work a> Deleg开发者_JAVA百科ate b> Reflection API


If you only have the method name (as a string) and an object of the type that implements the method, then, yes you need Reflection. If you have a delegate, then you can invoke it directly.


You can use delegates and reflections to call methods at runtime.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜