コントローラ拡張メソッドを作成したいのですが。私がこれまでに得たものは以下です
public ActionResult Foo()
{
this.ExtensionMethod();
return View();
}
public static void ExtensionMethod(this Controller controller)
{
}
私が気に入らないのは、ExtensionMethodをthis
キーワードで呼び出す必要があることです。取り除くことは可能this
ですか?