
구문전처리기 지시문C#의 전처리기 지시문(preprocessor directive)은 특정 소스코드를 상황에 따라 컴파일 과정에서 추가/제거하고 싶을 때 사용한다.class Program{ static void Main(string[] args) { string txt = Console.ReadLine(); if(string.IsNullOrEmpty(txt) == false) { Console.WriteLine("사용자 입력: " + txt); } }}Console.ReadLine 메서드는 Enter 키가 눌릴 때까지의 키보드 입력을 받는 역할을 한다.메서드가 실행되면 콘솔 화면에는 입력을 기다리는 프롬포..