This topic has not yet been rated - Rate this topic

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:

// CS1646
class C
{
   int i = @5;  // CS1646
   // Try this line instead:
   // int i = 5;
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ