Computer >> 컴퓨터 >  >> 프로그램 작성 >> C#

C#에서 여러 줄 주석을 작성하는 방법은 무엇입니까?

<시간/>

여러 줄에 걸쳐 있는 주석을 여러 줄 주석이라고 합니다. -

/* The following is a multi-line
Comment In C#
/*

/*...*/는 컴파일러에서 무시되며 프로그램에 주석을 추가하기 위해 배치됩니다.

다음은 여러 줄 주석을 추가하는 방법을 보여주는 샘플 C# 프로그램입니다 -

using System;

namespace Demo {
   class Program {
      static void Main(string[] args) {

         /* The following is a multi-line
         Comment In C#
         /*
         // printing
         Console.WriteLine("Hello World");
         Console.ReadKey();
      }
   }
}