代理人がいる
public delegate void Context();
そして、匿名メソッドで実装しましたが、
public Context fakeHttpContext = () =>
{
...
create fake http context.
};
私は偽のHttpContextを実行したくありません
fakeHttpContext.Invoke()
デリゲート名を知って呼び出すことができるのだろうか。リフレクションで好きなものはありますか:
DelegateInfo info = typeof(class).GetDelegate("fakeHttpContext");
info.Invoke();
ありがとう