Hi I am trying to use C# reflection to call a method that is passed a parameter and in return passes back a result. How can I do that? I\'ve tried a couple of things but wit
You can use Delegate.CreateDelegate to obtain a delegate to the method by name:
public static R ResponseHelper(T request, string serviceAction)
{
var service = new ContentServiceRef.CMSCoreContentServiceClient();
var func = (Func)Delegate.CreateDelegate(typeof(Func),
service,
serviceAction);
return func(request);
}