A C# program must have an entry point defined by the static Main() method. It accepts a string array args as input.
// is used for single line comments; /* */ is used to enclose multi-line comments; and /// is used to create XML comments that can be exported to a text file.
A primitive refers to a simple value type such as an int or byte.
A do loop is evaluated at the end of the iteration and thus must execute at least once.
A break statement causes control to exit the enclosing loop immediately; a continue statement continues the same loop by skipping to the beginning of the loop.
a does not compile because an int cannot be converted to a char. c does not compile because a string cannot be converted to a char.
Each time concatenation occurs, a new string is created in memory. For a large number of concatenations, this wastes memory and also degrades performance. The StringBuilder class can be used as an alternative梑ut only where there are many concatenations. Otherwise, it will not outperform concatenation.
All classes inherit from System.Object. In addition, value types inherit from System.ValueType.