Friday 25 March 2016

Fix the following error: The type or namespace name 'MethodInfo' could not be found (are you missing a using directive or an assembly reference?)

Watch this example on YouTube:

Fix the following error:
The type or namespace name 'MethodInfo' could not be found (are you missing a using directive or an assembly reference?)

Replace:
public override bool IsValidName(ControllerContext controllerContext, string actionName, MethodInfo methodInfo)
With:
public override bool IsValidName(ControllerContext controllerContext, string actionName, System.Reflection.MethodInfo methodInfo)

No comments:

Post a Comment