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.
精彩评论