ความคิดเห็นที่กระจายมากกว่าหนึ่งบรรทัดเรียกว่าความคิดเห็นหลายบรรทัด -
/* 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();
}
}
}