Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) CS1634 

Error Message

Expected disable or restore

This error occurs if a #pragma warning clause is badly formed, such as if disable or restore was omitted. For more information, see the #pragma warning topic.

Example

The following sample generates CS1634:

// CS1634.cs
// compile with: /W:1

#pragma warning   // CS1634
// Try this instead:
// #pragma warning disable 0219

class MyClass
{
  public static void Main()
  {
  }
}

Community Additions

ADD
Show:
© 2015 Microsoft