Asp.net mvc 更改asp.net MVC中的默认模型绑定器

Asp.net mvc 更改asp.net MVC中的默认模型绑定器,asp.net-mvc,Asp.net Mvc,有什么方法可以将默认ModelBinder设置为我自己的吗?在Global.asax.cs中: ModelBinders.Binders.DefaultBinder = new MyOwnModelBinder(); 这个去哪儿了?在Global.asax.cs中?或者别的什么地方?我想是的。。。在mvcapapplication.Application_Start()中 public class MvcApplication : System.Web.HttpApplication

有什么方法可以将默认ModelBinder设置为我自己的吗?

在Global.asax.cs中:

ModelBinders.Binders.DefaultBinder = new MyOwnModelBinder();

这个去哪儿了?在
Global.asax.cs
中?或者别的什么地方?我想是的。。。在mvcapapplication.Application_Start()中
public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            //...
            ModelBinders.Binders.DefaultBinder = new MyModelBinder();
        }

    }