CSharp - Introduction Comments

Introduction

C# offers two different styles of source-code documentation: single-line comments and multiline comments.

A single-line comment begins with a double forward slash and continues until the end of the line.

For example:

int x = 3;   // Comment about assigning 3 to x

A multiline comment begins with /* and ends with */.

For example:

int x = 1;   /* This is a comment that
                spans two lines */