Follow

What is CS1502?

Symptoms

  • You are calling a method in your script and you receive the following error:
error CS1502: The best overloaded method match for `______________' has 
some invalid arguments.

Cause

This error occurs when the argument types being passed to a method do not match the parameter types of that method. If the called method is overloaded, then none of the overloaded versions has a signature that matches the argument types being passed.

Error presented in this example:

error CS1502: The best overloaded method match for `MyScript.MethodA(int, int)' has some invalid arguments.

Resolution

Check the types of the arguments that are being passed to the method and make sure that they match the arguments of the method being called.

More Information

https://msdn.microsoft.com/en-us/library/b66k5sz9.aspx

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.