Follow

What is CS1010?

Symptoms

You are seeing the following error in the console window:

error CS1010: Newline in constant

Cause

CS1010 is caused when a semi colon is placed after an unclosed string.

Error displayed in this example:

error CS0103: The name `displayFirstName' does not exist in the current 
context

Resolution

In order to fix the CS1010 you will need to close the boundaries of the string that is causing the error.

More Information

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