Compilerfehler CS1517

Ungültiger Präprozessorausdruck.

Der Compiler hat einen ungültigen Präprozessorausdruck festgestellt.

Weitere Informationen finden Sie unter Präprozessordirektiven.

Das folgende Beispiel zeigt einige gültige und ungültige Präprozessorausdrücke:

// CS1517.cs  
#if symbol      // OK  
#endif  
#if !symbol     // OK  
#endif  
#if (symbol)    // OK  
#endif  
#if true        // OK  
#endif  
#if false       // OK  
#endif  
#if 1           // CS1517  
#endif  
#if ~symbol     // CS1517  
#endif  
#if *           // CS1517  
#endif  
  
class x  
{  
   public static void Main()  
   {  
   }  
}