Wie würde C# dies kompilieren?Wird C# unterstützt, wenn Codeblocks ohne Klammern?
if (info == 8)
info = 4;
otherStuff();
Wäre es die folgenden Zeilen in dem Codeblock enthalten?
if (info == 8)
{
info = 4;
otherStuff();
}
Oder würde es nur die nächste Zeile nehmen?
if (info == 8)
{
info = 4;
}
otherStuff();
beste Antwort: enthält sowohl Erklärung, Code-Snippet und Gotchas! – mlibby
+1 für Codierungsstandards! –