4
다음 코드는 제정신입니까? 그것이 ActionResult
을 반환 한 후asp.net mvc에서 IDisposable 모델을 갖는 것이 안전합니까?
public ActionResult MyController()
{
using(var model=new MyControllerModel())
{
return View(model);
}
//does framework access model after this point?
//If so, I need to rethink
}
저는 항상 이것에 대해 생각해 봤지만,보기를 되 돌리는 것은 본질적으로 응답의 끝이기 때문에 모든 것이 끝났다고 가정했습니다. – Omar