Hi there
What is the reason to invent your own coding style? Instead of using the Microsoft C# coding style, that people are use to?
/Søren a C# developer-
Hi @thediver !
This style guide conforms with both Microsoft and Unity C# standards as much as possible. Before this, we had a style that was much more like Java.
If there are any exceptions, they’re there to increase readability for the tutorials and books.
Are there any specific points you disagree with?
Cheers!
Eric
Hi,
good stuff like it so far.
But for the switch statement you need to put the “{” in the extra line.
I would also put one empty line between the statements for readability
switch (variable)
{
case 1:
break;
case 2:
break;
}
One additional style to think about:
private methods in camelCase.
internal and public methods in PascalCase
Cheers
Sascha
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]