Changed hard coded argument string in the throw to use nameof

This commit is contained in:
Saar Cohen 2014-12-10 16:33:01 +00:00 committed by Ryan Nowak
parent 6390bad0d3
commit d3344f0766
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc
throw new ArgumentException(
Resources.FormatActionDescriptorMustBeBasedOnControllerAction(
typeof(ControllerActionDescriptor)),
"actionContext");
nameof(actionContext));
}
var controller = _typeActivator.CreateInstance(