컴파일러 오류 CS1517

업데이트: 2007년 11월

오류 메시지

전처리기 식이 잘못되었습니다.
Invalid preprocessor expression

컴파일러에서 잘못된 전처리기 식을 발견했습니다.

자세한 내용은 전처리기 지시문을 참조하십시오.

다음 샘플에서는 올바른 전처리기 식과 잘못된 전처리기 식을 몇 가지 보여 줍니다.

// 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()
   {
   }
}