Lines of code function like sentences, meaning they need to have some sort of separating, or ending, character. In C#, all lines of code, which are called statements, end with a semicolon to separate them for the code editor to process.
Unlike the written word in normal circumstances, a C# statement doesn't technically have to be on a single line; whitespace and new lines are ignored by the code editor. For example, a simple variable could be written in different ways. It could be written like this:
public int firstName = "Bilbo";
Alternatively, it could also be written as follows:
public
int
firstName
=
"Bilbo";
These two code snippets are perfectly acceptable to Visual Studio, but the second option is highly discouraged as it makes code extremely hard to read. The idea is to write your programs as efficiently and clearly as possible...