Skip to content

Commit 38a9187

Browse files
badersurBillWagner
authored andcommitted
Change the format
1 parent 0eb316d commit 38a9187

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Diff for: docs/csharp/tour-of-csharp/statements.md

+26-26
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ ms.assetid: 5409c379-5622-4fae-88b5-1654276ea8d4
1414

1515
# Statements
1616

17-
The actions of a program are expressed using ***statements***. C# supports several different kinds of statements, a number of which are defined in terms of embedded statements.
17+
The actions of a program are expressed using *statements*. C# supports several different kinds of statements, a number of which are defined in terms of embedded statements.
1818

19-
A ***block*** permits multiple statements to be written in contexts where a single statement is allowed. A block consists of a list of statements written between the delimiters `{` and `}`.
19+
A *block* permits multiple statements to be written in contexts where a single statement is allowed. A block consists of a list of statements written between the delimiters `{` and `}`.
2020

21-
***Declaration statements*** are used to declare local variables and constants.
21+
*Declaration statements* are used to declare local variables and constants.
2222

23-
***Expression statements*** are used to evaluate expressions. Expressions that can be used as statements include method invocations, object allocations using the `new` operator, assignments using `=` and the compound assignment operators, increment and decrement operations using the `++` and `--` operators and `await` expressions.
23+
*Expression statements* are used to evaluate expressions. Expressions that can be used as statements include method invocations, object allocations using the `new` operator, assignments using `=` and the compound assignment operators, increment and decrement operations using the `++` and `--` operators and `await` expressions.
2424

25-
***Selection statements*** are used to select one of a number of possible statements for execution based on the value of some expression. In this group are the `if` and `switch` statements.
25+
*Selection statements* are used to select one of a number of possible statements for execution based on the value of some expression. In this group are the `if` and `switch` statements.
2626

27-
***Iteration statements*** are used to execute repeatedly an embedded statement. In this group are the `while`, `do`, `for`, and `foreach` statements.
27+
*Iteration statements* are used to execute repeatedly an embedded statement. In this group are the `while`, `do`, `for`, and `foreach` statements.
2828

29-
***Jump statements*** are used to transfer control. In this group are the `break`, `continue`, `goto`, `throw`, `return`, and `yield` statements.
29+
*Jump statements* are used to transfer control. In this group are the `break`, `continue`, `goto`, `throw`, `return`, and `yield` statements.
3030

3131
The `try`...`catch` statement is used to catch exceptions that occur during execution of a block, and the `try`...`finally` statement is used to specify finalization code that is always executed, whether an exception occurred or not.
3232

@@ -38,79 +38,79 @@ The `using` statement is used to obtain a resource, execute a statement, and the
3838

3939
The following lists the kinds of statements that can be used, and provides an example for each.
4040

41-
***Local variable declaration***
41+
Local variable declaration
4242

4343
[!code-csharp[Declarations](../../../samples/snippets/csharp/tour/statements/Program.cs#L9-L15)]
4444

45-
***Local constant declaration***
45+
Local constant declaration
4646

4747
[!code-csharp[ConstantDeclarations](../../../samples/snippets/csharp/tour/statements/Program.cs#L17-L22)]
4848

49-
***Expression statement***
49+
Expression statement
5050

5151
[!code-csharp[Expressions](../../../samples/snippets/csharp/tour/statements/Program.cs#L24-L31)]
5252

53-
***`if` statement***
53+
`if` statement
5454

5555
[!code-csharp[IfStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L33-L43)]
5656

57-
***`switch` statement***
57+
`switch` statement
5858

5959
[!code-csharp[SwitchStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L45-L60)]
6060

61-
***`while` statement***
61+
`while` statement
6262

6363
[!code-csharp[WhileStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L62-L70)]
6464

65-
***`do` statement***
65+
`do` statement
6666

6767
[!code-csharp[DoStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L72-L81)]
6868

69-
***`for` statement***
69+
`for` statement
7070

7171
[!code-csharp[ForStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L83-L89)]
7272

73-
***`foreach` statement***
73+
`foreach` statement
7474

7575
[!code-csharp[ForEachStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L91-L97)]
7676

77-
***`break` statement***
77+
`break` statement
7878

7979
[!code-csharp[BreakStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L99-L108)]
8080

81-
***`continue` statement***
81+
`continue` statement
8282

8383
[!code-csharp[ContinueStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L110-L118)]
8484

85-
***`goto` statement***
85+
`goto` statement
8686

8787
[!code-csharp[GotoStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L120-L129)]
8888

89-
***`return` statement***
89+
`return` statement
9090

9191
[!code-csharp[ReturnStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L131-L139)]
9292

93-
***`yield` statement***
93+
`yield` statement
9494

9595
[!code-csharp[YieldStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L141-L155)]
9696

97-
***`throw` statements and `try` statements***
97+
`throw` statements and `try` statements
9898

9999
[!code-csharp[TryThrow](../../../samples/snippets/csharp/tour/statements/Program.cs#L157-L183)]
100100

101-
***`checked` and `unchecked` statements***
101+
`checked` and `unchecked` statements
102102

103103
[!code-csharp[CheckedUncheckedStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L185-L196)]
104104

105-
***`lock` statement***
105+
`lock` statement
106106

107107
[!code-csharp[LockStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L257-L273)]
108108

109-
***`using` statement***
109+
`using` statement
110110

111111
[!code-csharp[UsingStatement](../../../samples/snippets/csharp/tour/statements/Program.cs#L198-L206)]
112112

113113
>[!div class="step-by-step"]
114114
[Previous](expressions.md)
115115
[Next](classes-and-objects.md)
116-
116+

0 commit comments

Comments
 (0)