C Sharp (programming Language) - Code Comments

Code Comments

C# utilizes a double slash (//) to indicate the rest of the line is a comment. This is inherited from C++.

public class Foo { // a comment public static void Bar(int firstParam) {} // also a comment }

Multi-line comments can start with slash-asterisk (/*) and end asterisk-slash (*/). This is inherited from standard C.

public class Foo { /* A Multi-Line comment */ public static void Bar(int firstParam) {} }

Read more about this topic:  C Sharp (programming Language)

Famous quotes containing the words code and/or comments:

    Many people will say to working mothers, in effect, “I don’t think you can have it all.” The phrase for “have it all” is code for “have your cake and eat it too.” What these people really mean is that achievement in the workplace has always come at a price—usually a significant personal price; conversely, women who stayed home with their children were seen as having sacrificed a great deal of their own ambition for their families.
    Anne C. Weisberg (20th century)

    My note to you I certainly did not expect to see in print; yet I have not been much shocked by the newspaper comments upon it. Those comments constitute a fair specimen of what has occurred to me through life. I have endured a great deal of ridicule without much malice; and have received a great deal of kindness, not quite free from ridicule. I am used to it.
    Abraham Lincoln (1809–1865)