C#.NET Error : 1
Error Message:
Error CS1525 Invalid expression term '' ConsoleApp1 C:\ConsoleApp1\ConsoleApp1\Program.cs 13 Active Error CS1646 Keyword, identifier, or string expected after verbatim specifier: @ ConsoleApp1 C:\ConsoleApp1\ConsoleApp1\Program.cs 13 Active Error CS1002 ; expected ConsoleApp1 C:\ConsoleApp1\ConsoleApp1\Program.cs 13 Active Error CS0201 Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement ConsoleApp1 C:\ConsoleApp1\ConsoleApp1\Program.cs 13 Active
Error Description:
Keyword, identifier, or string expected after verbatim specifier: @ |
string empData=@ "{'Name':'Ranga','Salary':100}";In the above line there is one space in between @ and ", due to this we are facing above errors.
Solution:
Need to check the syntax of the code and remove the space as shown in the above red color space.
Post a comment
Please share your valuable feedback and share this article in social media.