forum

Home / DeveloperSection / Forums / Delegate for any method type - C#

Delegate for any method type - C#

Anonymous User 2440 06-Apr-2013
Hi Everyone!

I want to have a class that will execute any external method, like this:

class CrazyClass
{
  //other stuff

  public AnyReturnType Execute(AnyKindOfMethod Method, 
    object[] ParametersForMethod)
  {
    //more stuff
    return Method(Parameters) //or something like that
  }
}

Is this possible? Is there a delegate that takes any method signature?

c# c# 
Updated on 06-Apr-2013
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By