Chú thích trải dài hơn một dòng được gọi là multi-line comments:
/* The following is a multi-line Comment In C# /*
Phần /*...*/ bị trình biên dịch bỏ qua và dùng để thêm chú thích vào chương trình.
Ví dụ chương trình C# mẫu minh họa cách thêm chú thích nhiều dòng:
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();
}
}
}