Creating Comment Lines in C# Razor Syntax

Razor Syntax Comments in C#

Every programming language has it’s own way to do comments.

C# has it’s own native comment markup for comments and so does C# Razor syntax.

While C# mirrors JavaScript on how you markup comments with // for single line comments and /* */ for multi Line comments.

Razor use @* comment *@. Think JavaScript but replace the / with an @.

That’s all for today, thanks for reading.

Author: Rick Cable / AKA Cyber Abyss

Veteran, Coder, Hacker and Founder of FinditClassifieds.com in 1997. Currently a senior full-stack software developer supporting multiple teams and products at a large healthcare organization.