次のようなカスタムモデルバインダーを設定している人々のネット全体に例があります。
// global.asax
protected void Application_Start()
{
ModelBinders.Binders.Add(typeof(YourModel), new YourBinder());
}
しかし、それを試してみると、コンパイルされません(.Binders
見つかりません)。何が得られますか?
次のようなカスタムモデルバインダーを設定している人々のネット全体に例があります。
// global.asax
protected void Application_Start()
{
ModelBinders.Binders.Add(typeof(YourModel), new YourBinder());
}
しかし、それを試してみると、コンパイルされません(.Binders
見つかりません)。何が得られますか?