How to Call method using its name?

后端 未结 3 496
执笔经年
执笔经年 2021-01-12 09:15

I have an object with some methods and I want to call a method using the method name as string only.

object obj;
obj.method();
3条回答
提交回复
热议问题