![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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(); } } }
Advertisements