C#1 전처리기 코드 제외. 포함 #if, #elif, #else , #endifC# 컴파일러는 해당 기호가 정의되거나 정의가 참일 때만 #if, #endif 사이의 코드를 컴파일한다. #if ONPCSystem.Console.Clear();#endifC/C++과 달리 숫자 값을 할당할 수 없다. #if (NET6_0_OR_GREATER || NETSTANDARD2_0_OR_GREATER) Console.WriteLine("Using .NET 6+ or .NET Standard 2+ code.");#elif Console.WriteLine("Using older code that doesn't support the above .NET versions.");#endif 전처리 기호 정의 #define, #un.. 2024. 5. 8. 이전 1 다음