warning preprocessor : warning « Preprocessing Directives « C# / CSharp Tutorial






The #warning directive produces a warning.

The general form of the #warning directive is

#warning warning-message
using System;

class MainClass
{
  [STAThread]
  static void Main(string[] args)
  {
    #warning Beware!  
  }

}








16.7.warning
16.7.1.warning preprocessor
16.7.2.Unused Warning With Warning Suppressed