Changed hard coded argument string in the throw to use nameof
This commit is contained in:
parent
6390bad0d3
commit
d3344f0766
|
|
@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
throw new ArgumentException(
|
||||
Resources.FormatActionDescriptorMustBeBasedOnControllerAction(
|
||||
typeof(ControllerActionDescriptor)),
|
||||
"actionContext");
|
||||
nameof(actionContext));
|
||||
}
|
||||
|
||||
var controller = _typeActivator.CreateInstance(
|
||||
|
|
|
|||
Loading…
Reference in New Issue