shopify traffic stats

Creating Comments in C#

Standard Comment

Two slashes, like this // denote a comment in C#.   Here’s an example:

int pipePressure = 10;  //set the amount of pressure in the pipe to make more steam. 

Multi-Line Comment

Comments can also span multiple lines. Here’s an example of a multi-line comment:

* This is a multiline comment.
* I can add stuff here
* and here.

XML Comments

XML comments allow me to extract the comments for documentation purposes.  They also show up as intellisense.  To create an XML comment I need to start it with /// and then valid XML tags.  Here’s an example:

///  <pipePressure>
///  This function controls the pressure of the steam in the pipe
///  You may call this function from anywhere
///  </pipePressure>

Share This
%d bloggers like this: