warning preprocessor : Warning : Preprocessing Directives C# Examples


C# Examples » Preprocessing Directives » Warning »

 

warning preprocessor





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

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Preprocessing Directives
» Warning