I see examples all over the net of people setting up their custom model binders like this:
// global.asax
protected void Application_Start()
{
ModelBinders.Binders.Add(typeof(YourModel), new YourBinder());
}
But when I try that, it doesn't compile (.Binders
isn't found). What gives?