Compiler Error CS1646
Keyword, identifier, or string expected after verbatim specifier: @
See string literals for the usage of the verbatim specifier '@'. The verbatim specifier is only allowed before a string, keyword or identifier. To resolve this error, remove the @ symbol from any inappropriate place or add the intended string, keyword or identifier.
The following sample generates CS1646:
C#
// CS1646
class C
{
int i = @5; // CS1646
// Try this line instead:
// int i = 5;
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: