Creating Comments in C#
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.
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 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:
/// This function controls the pressure of the steam in the pipe
/// You may call this function from anywhere