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:

    ...I had grown up in a world that was dominated by immature age. Not by vigorous immaturity, but by immaturity that was old and tired and prudent, that loved ritual and rubric, and was utterly wanting in curiosity about the new and the strange. Its era has passed away, and the world it made has crumbled around us. Its finest creation, a code of manners, has been ridiculed and discarded.
    Ellen Glasgow (1873–1945)

    Rather would I have the love songs of romantic ages, rather Don Juan and Madame Venus, rather an elopement by ladder and rope on a moonlight night, followed by the father’s curse, mother’s moans, and the moral comments of neighbors, than correctness and propriety measured by yardsticks.
    Emma Goldman (1869–1940)