Skip to content

Commit

Permalink
DefaultViewComponentFactory no longer allocates new lambda delegate o…
Browse files Browse the repository at this point in the history
…n each call to CreateViewComponent
  • Loading branch information
ivaylokenov authored and rynowak committed Oct 5, 2016
1 parent de7cea4 commit 268617d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ private void InjectProperties(ViewComponentContext context, object viewComponent
{
var propertiesToActivate = _injectActions.GetOrAdd(
viewComponent.GetType(),
type =>
PropertyActivator<ViewComponentContext>.GetPropertiesToActivate(
type,
typeof(ViewComponentContextAttribute),
CreateActivateInfo));
_getPropertiesToActivate);

for (var i = 0; i < propertiesToActivate.Length; i++)
{
Expand Down

0 comments on commit 268617d

Please sign in to comment.