Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET // vs /// Comments convention

Tags:

I am just checking out F#, so apologies if this is a silly question, but in the VS2008 F# CTP 1.9.6.2 'Tutorial' project, both // and /// are used for commenting code.

Is there a functional difference between the two slash vs three slash commenting, or is it convention (as it appears in the tutorial code) to comment a function with /// and use // for everything else?

like image 983
johnc Avatar asked Oct 08 '08 01:10

johnc


1 Answers

Using three slashes (///) is a C# convention for XML Documentation Comments that is adopted by F# as well.

like image 196
Franci Penov Avatar answered Oct 21 '22 22:10

Franci Penov