I hava a delegate
public delegate void Context();
And i had implemented it by anonymous method,
public Context fakeHttpContext = () =>
{
...
create fake http context.
};
I dont' want to execute the fakeHttpContext by
fakeHttpContext.Invoke()
I wonder if i could invoke it by known the delegate name. is there anything in reflection likes:
DelegateInfo info = typeof(class).GetDelegate("fakeHttpContext");
info.Invoke();
thanks