Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) CS1696 

Error Message

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
   }
}

Community Additions

ADD
Show:
© 2014 Microsoft