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

A 16 year US Navy Veteran with 25+ years experience in various IT Roles in the US Navy, Startups and Healthcare. Founder of FinditClassifieds.com in 1997 to present and co-founder of Sports Card Collector Software startup, LK2 Software 1999-2002. For last 7 years working as a full-stack developer supporting multiple agile teams and products in a large healthcare organization. Part-time Cyber Researcher, Aspiring Hacker, Lock Picker and OSINT enthusiast.