Compiler Warning (level 1) CS1696
Single-line comment or end-of-line expected
The compiler requires a preprocessor directive to be followed by an end-of-line terminator or by a single-line comment. The compiler has finished processing a valid preprocessor directive, and has encountered something that violates this syntax constraint.
The following sample generates CS1696.
// CS1696.cs
class Test
{
public static void Main()
{
#pragma warning disable 1030;219 // CS1696
#pragma warning disable 1030 // OK
}
}
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: