- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to write multi-line comments in C#?
The comments that spread more than one line is called multi-line comments −
/* The following is a multi-line Comment In C# /*
The /*...*/ is ignored by the compiler and it is put to add comments in the program.
The following is a sample C# program showing how to add MULTI-line comments −
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(); } } }
- Related Articles
- Java multi-line comments
- How to write single-line comments in C#?
- How do we use multi-line comments in JavaScript?
- How to put multi-line comments inside a Python dict()?
- How to write multi-line comment in Java?
- What is the difference between single-line and multi-line comments in JavaScript?
- How do we write Multi-Line Statements in Python?
- How to write long strings in Multi-lines C/C++?
- Java single line comments.
- How to execute Python multi-line statements in the one-line at command-line?
- How do we use single line comments in JavaScript?
- How to create a long multi-line string in Python?
- Multi-Line Statements in Python
- Multi-Line printing in Python
- Comments in C#

Advertisements