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.
Example
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for