This documentation is archived and is not being maintained.

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.


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()