mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 21:13:35 +08:00
Documenting the (object) cast to avoid dynamic invocation.
--HG-- branch : dev
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user