mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 05:44:06 -06:00
Automated commit at Tue Apr 16 19:30:00 CEST 2024
This commit is contained in:
parent
38f7d871d6
commit
3152984c9b
@ -4,6 +4,8 @@
|
||||
- [[Installing .NET on MacOS]]
|
||||
- [[Type casting]]
|
||||
- [[Verbatim string literal]]
|
||||
- [[C sharp Code Style]]
|
||||
- [[if statements]]
|
||||
|
||||
|
||||
## Links:
|
||||
|
||||
13
content/if statements.md
Normal file
13
content/if statements.md
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
When implementing an `if` statement that includes a single-statement code block, Microsoft recommends that you consider these conventions:
|
||||
|
||||
- Never use single-line form (for example: if (flag) Console.WriteLine(flag);
|
||||
- Using braces is always accepted, and required if any block of an if/else if/.../else compound statement uses braces or if a single statement body spans multiple lines.
|
||||
- Braces may be omitted only if the body of every block associated with an if/else if/.../else compound statement is placed on a single line.
|
||||
|
||||
|
||||
## Links:
|
||||
|
||||
[Exercise - Remove code blocks from if statements - Training | Microsoft Learn](https://learn.microsoft.com/en-us/training/modules/csharp-code-blocks/3-exercise-remove-if-statements)
|
||||
|
||||
202404161912
|
||||
Loading…
Reference in New Issue
Block a user