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:
“Wise Draco comes, deep in the midnight roll
Of black artillery; he comes, though late;
In code corroborating Calvins creed
And cynic tyrannies of honest kings;
He comes, nor parlies; and the Town, redeemed,
Gives thanks devout; nor, being thankful, heeds
The grimy slur on the Republics faith implied,
Which holds that Man is naturally good,
Andmoreis Natures Roman, never to be
scourged.”
—Herman Melville (18191891)
“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 fathers curse, mothers moans, and the moral comments of neighbors, than correctness and propriety measured by yardsticks.”
—Emma Goldman (18691940)