Is the following code normal?
public ActionResult MyController() { using(var model=new MyControllerModel()) { return View(model); } //does framework access model after this point? //If so, I need to rethink }
A structure most specifically refers to a model after it returns an ActionResult . ActionResults have their own Execute() methods called to generate content.
ActionResult
ActionResults
Execute()
Source: https://habr.com/ru/post/1299499/More articles:Performing a general action on derived types - c #A mixture of% and pxsizes - htmlCode execution when the application is updated / reinstalled - androidHow to make the height of context menu items not fixed (for example, scale to fit a specific item) in .Net? - .netHow to create a history wrapper in my Perl program? - shellWPF high frequency data binding - c #Why does the floating point cycle end at 1,000,000? - cRedirect std *** from C ++ to Java for logging - javaWhat is Sendkeys alternative for closing an outdated application? - c #iPhone SDK: WebView, how to specify a local URL? - iphoneAll Articles