Follow

What is CS1503?

Symptoms

  • You are getting the error below appearing in your console:
error CS1503: Argument `#1' cannot convert `___' expression to type `___'

Cause

This error is caused when you try to assign a variable of type "integer" to a variable of type "string".

Error this example presents:

error CS1503: Argument `#1' cannot convert `___' expression to type `___'

Resolution

You can use ToString() to change the integer to a string.

More Information

https://msdn.microsoft.com/en-us/library/8zf99ds2(v=vs.90).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.