Follow

What is CS1525?

Symptoms

  • You are seeing the following error in the console window:
error CS1525: Unexpected symbol `____', expecting `____'

Cause

This is caused when an invalid character is found in an expression. For example, the if statement below does not allow the symbol "a" to appear after "if" in the if statement.

Error this example presents:

error CS1525: Unexpected symbol `a', expecting `('

Resolution

Ensure that the correct symbols appear within the expression. In this example we have placed a "(" symbol after the if statement as this was missing and flagging the "a" as a invalid symbol.

More Information

https://msdn.microsoft.com/en-us/library/3hdyz4dw(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.