Total Page Preview:   000000000385

What are the types of comment in C# with examples?

i. Single line (//)

Example:

//This is a Single line comment.

 

ii. Multiple line (/* */)

Example:

/*This is a multiple line comment

We are in line 2Last line of comment*/.

iii. XML Comments (///).

Example:

/// summary;

/// Set error message for multilingual language.

/// summary

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments