|
2 | 2 | title: Explore C# 7 - C# interactive C# tutorial |
3 | 3 | metadata: |
4 | 4 | title: Explore C# 7 - Try the new features in C# 6 interactively, using your browser |
5 | | - description: In this tutorial, you'll use your browser to explore C# 7 interactively. You'll explore the new idioms you can use with C# 7 that enable more concise and readable code. |
| 5 | + description: In this tutorial, you'll use your browser to explore C# 6 interactively. You'll explore the new idioms you can use with C# 6 that enable more concise and readable code. |
6 | 6 | audience: Developer |
7 | 7 | level: intermediate |
8 | 8 | ms.date: 03/20/2019 |
@@ -128,11 +128,11 @@ when inspecting the tuple using reflection at runtime, for example. |
128 | 128 | Creating a tuple is more efficient and more productive. |
129 | 129 | It has a simpler, lightweight syntax to define a data structure that carries |
130 | 130 | more than one value. The example method below returns the minimum and maximum |
131 | | - values found in a sequence of integers. |
| 131 | + values found in a sequence of integers: |
132 | 132 |
|
133 | 133 | [!code-csharp[TupleReturningMethod](~/samples/snippets/csharp/new-in-7/program.cs#08_TupleReturningMethod "Tuple returning method")] |
134 | 134 |
|
135 | | - Using tuples in this way offers several advantages. |
| 135 | + Using tuples in this way offers several advantages: |
136 | 136 |
|
137 | 137 | * You save the work of authoring a `class` or a `struct` that defines the type returned. |
138 | 138 | * You do not need to create new type. |
@@ -164,7 +164,7 @@ when inspecting the tuple using reflection at runtime, for example. |
164 | 164 | [!code-csharp[DeconstructPoint](~/samples/snippets/csharp/new-in-7/program.cs#12_DeconstructPoint "Deconstruct a point")] |
165 | 165 |
|
166 | 166 | You are not bound by the names defined in the `Deconstruct` method. You |
167 | | - can rename the extract variables as part of the assignment. |
| 167 | + can rename the extract variables as part of the assignment: |
168 | 168 |
|
169 | 169 | [!code-csharp[DeconstructNames](~/samples/snippets/csharp/new-in-7/program.cs#13_DeconstructNames "Deconstruct with new names")] |
170 | 170 |
|
|
0 commit comments