I have an object var channel = new Chanel(); this object has several methods that I call inside the function as follows:
private bool GetMethodExecution() { var channel = new Channel(); channel.method1(); channel.method2(); }
all Channel class methods come from the IChannel interface. My question is: how can I call the GetMethodExecution() method and pass the method that I want to execute, and then execute it inside this function based on the passed parameter.
I need to call GetMethodExectution (IChannle.method1) and then call it on an object inside this function. Is it possible,
source share