Call methods using names in C#

前端 未结 5 2025
梦谈多话
梦谈多话 2020-12-05 07:52

I have a number of \'jobs\' in my application, where each job has a list of methods which it needs to call, along with it\'s parameters. Essentially a list containing the fo

5条回答
  •  情话喂你
    2020-12-05 08:40

    Use MethodBase.Invoke(). Should work down to .NET 2.0 with System.Reflection.

提交回复
热议问题