Documenting the (object) cast to avoid dynamic invocation.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-11-19 17:42:30 -08:00
parent 1838c131c3
commit a987f02af6
12 changed files with 35 additions and 5 deletions

View File

@@ -67,6 +67,7 @@ namespace Orchard.Core.Containers.Controllers {
.Pager(pagerShape)
.ShowPager(container.As<ContainerPart>().Record.Paginated);
// Casting to avoid invalid (under medium trust) reflection over the protected View method and force a static invocation.
return View((object)viewModel);
}
}