Skip to content

Commit ca3b5c6

Browse files
Apply suggestions from code review
Co-authored-by: Meaghan Osagie (Lewis) <[email protected]>
1 parent 7298966 commit ca3b5c6

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

docs/csharp/tour-of-csharp/tutorials/branches-and-loops.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You must have one of the following options:
2929
- [Visual Studio Code](https://code.visualstudio.com/download).
3030
- The [C# DevKit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit).
3131

32-
To use codespaces, you need a GitHub account. If you don't already have one, you can create a free account at [GitHub.com](https://github.com).
32+
## Use if statements
3333

3434
To start a GitHub Codespace with the tutorial environment, open a browser window to the [tutorial codespace](https://github.com/dotnet/tutorial-codespace) repository. Select the green *Code* button, and the *Codespaces* tab. Then select the `+` sign to create a new Codespace using this environment. If you completed other tutorials in this series, you can open that codespace instead of creating a new one.
3535

@@ -78,7 +78,7 @@ To execute different code in both the true and false branches, you create an `el
7878
7979
Because indentation isn't significant, you need to use `{` and `}` to indicate when you want more than one statement to be part of the block that executes conditionally. C# programmers typically use those braces on all `if` and `else` clauses.
8080

81-
1. The following example is the same as what you created. Modify your code above to match the following code:
81+
1. The following example is the same as what you created in the previous example, with the addition of `{` and `}`. Modify your code to match the following code:
8282

8383
:::code language="csharp" source="./snippets/BranchesAndLoops/branches-loops.cs" id="IncludeBraces":::
8484

docs/csharp/tour-of-csharp/tutorials/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ The [Pattern matching](pattern-matching.md) lesson provides an introduction to *
4040

4141
## Set up your local environment
4242

43-
After you finish these tutorials, set up a development environment. You need:
43+
If you prefer not to complete the tutorials using GitHub Codespaces, you can can up your local environment. You need:```
4444

4545
[!INCLUDE [Prerequisites](../../../../includes/prerequisites-basic-winget.md)]

docs/csharp/tour-of-csharp/tutorials/list-collection.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ ms.date: 12/10/2025
77

88
This introductory tutorial provides an introduction to the C# language and the basics of the <xref:System.Collections.Generic.List`1?displayProperty=nameWithType> class.
99

10-
This tutorial teaches you C#. You write C# code and see the results of compiling and running that code. It contains a series of lessons that create, modify, and explore collections and arrays. You work primarily with the <xref:System.Collections.Generic.List%601> class.
10+
This tutorial teaches you C#. You write C# code and see the results of compiling and running that code. It contains a series of lessons that create, modify, and explore collections. You work primarily with the <xref:System.Collections.Generic.List%601> class.
1111

1212
In this tutorial, you:
1313

1414
> [!div class="checklist"]
1515
>
1616
> * Launch a GitHub Codespace with a C# development environment.
17-
> * Create your first C# app.
18-
> * Create and use variables to store text data.
19-
> * Use .NET APIs with text data.
17+
> * Create different types of lists.
18+
> * Modify list contents.
19+
> * Search and sort lists.
2020
2121
To use codespaces, you need a GitHub account. If you don't already have one, you can create a free account at [GitHub.com](https://github.com).
2222

@@ -30,7 +30,6 @@ You must have one of the following:
3030
- [Visual Studio Code](https://code.visualstudio.com/download).
3131
- The [C# DevKit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit).
3232

33-
To use codespaces, you need a GitHub account. If you don't already have one, you can create a free account at [GitHub.com](https://github.com).
3433

3534
## A basic list example
3635

docs/csharp/tour-of-csharp/tutorials/pattern-matching.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ You must have one of the following:
2929
- [Visual Studio Code](https://code.visualstudio.com/download).
3030
- The [C# DevKit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit).
3131

32-
To use codespaces, you need a GitHub account. If you don't already have one, you can create a free account at [GitHub.com](https://github.com).
3332

3433
The preceding tutorials demonstrated built-in types and types you define as tuples or records. You can check instances of these types against a *pattern*. Whether an instance matches a pattern determines the actions your program takes. In the examples below, you see `?` after type names. This symbol allows the value of this type to be null (for example, `bool?` can be `true`, `false`, or `null`). For more information, see [Nullable value types](../../language-reference/builtin-types/nullable-value-types.md). Let's start to explore how you can use patterns.
3534

0 commit comments

Comments
 (0)