Search code examples
c#f#comments

.NET // vs /// Comments convention


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 there a convention to comment a function with /// and use // for everything else?


Solution

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