Skip to content

Commit e61e78e

Browse files
authored
changed files by pdets auto publish service, publishid[4f8b1944-ed5e-4f31-8ac8-f05504a532c0] and do [publish].
1 parent 899ec4f commit e61e78e

10 files changed

+49
-18
lines changed

learn-pr/wwl-language/csharp-for/1-introduction.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 02/22/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
11+
ms.custom:
12+
- N/A
1113
durationInMinutes: 3
1214
content: |
1315
[!include[](includes/1-introduction.md)]

learn-pr/wwl-language/csharp-for/2-exercise-for.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ title: Exercise - Create and configure for iteration loops
44
metadata:
55
title: Exercise - Create and configure for iteration loops
66
description: "Exercise - Create and configure for iteration loops"
7-
ms.date: 02/22/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
11+
ms.custom:
12+
- N/A
1113
durationInMinutes: 14
1214
content: |
1315
[!include[](includes/2-exercise-for.md)]

learn-pr/wwl-language/csharp-for/3-challenge.yml renamed to learn-pr/wwl-language/csharp-for/3-exercise-challenge-for-statements.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ title: Exercise - Complete a challenge activity using for and if statements
44
metadata:
55
title: Exercise - Complete a challenge activity using for and if statements
66
description: "Exercise - Complete a challenge activity using for and if statements"
7-
ms.date: 02/22/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
11+
ms.custom:
12+
- N/A
1113
durationInMinutes: 9
1214
content: |
13-
[!include[](includes/3-challenge.md)]
15+
[!include[](includes/3-exercise-challenge-for-statements.md)]

learn-pr/wwl-language/csharp-for/4-solution.yml renamed to learn-pr/wwl-language/csharp-for/4-review-solution-for-statements-challenge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ title: Review the solution to the for and if statement challenge activity
44
metadata:
55
title: Review the solution to the for and if statement challenge activity
66
description: "Review the solution to the for and if statement challenge activity"
7-
ms.date: 02/22/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
11+
ms.custom:
12+
- N/A
1113
durationInMinutes: 6
1214
content: |
13-
[!include[](includes/4-solution.md)]
15+
[!include[](includes/4-review-solution-for-statements-challenge.md)]

learn-pr/wwl-language/csharp-for/5-knowledge-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ title: Module assessment
44
metadata:
55
title: Module assessment
66
description: "Knowledge check"
7-
ms.date: 02/22/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
11+
ms.custom:
12+
- N/A
1113
durationInMinutes: 3
1214
quiz:
1315
title: "Check your knowledge"

learn-pr/wwl-language/csharp-for/6-summary.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 02/22/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
11+
ms.custom:
12+
- N/A
1113
durationInMinutes: 2
1214
content: |
1315
[!include[](includes/6-summary.md)]

learn-pr/wwl-language/csharp-for/includes/2-exercise-for.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
On the surface, the `for` statement is another iteration statement that allows you to iterate through a code block and thereby change the flow of execution of your code. However, once we examine how each works, we can better identify the nuances of each iteration statement and when to use them.
23

34
## What is the `for` statement?
@@ -22,7 +23,7 @@ This module includes hands-on activities that guide you through the process of b
2223

2324
1. In the **Open Folder** dialog, navigate to the Windows Desktop folder.
2425

25-
If you have different folder location where you keep code projects, you can use that folder location instead. For this training, the important thing is to have a location that’s easy locate and remember.
26+
If you have a different folder location where you keep code projects, you can use that folder location instead. For this training, the important thing is to have a location that’s easy to locate and remember.
2627

2728
1. In the **Open Folder** dialog, select **Select Folder**.
2829

@@ -32,22 +33,32 @@ This module includes hands-on activities that guide you through the process of b
3233

3334
Notice that a command prompt in the Terminal panel displays the folder path for the current folder. For example:
3435

35-
```dos
36+
```PowerShell
3637
C:\Users\someuser\Desktop>
3738
```
3839
3940
> [!NOTE]
4041
> If you are working on your own PC rather than in a sandbox or hosted environment and you have completed other Microsoft Learn modules in this C# series, you may have already created a project folder for code samples. If that's the case, you can skip over the next step, which is used to create a console app in the TestProject folder.
4142
42-
1. At the Terminal command prompt, to create a new console application in a specified folder, type **dotnet new console -o ./CsharpProjects/TestProject** and then press Enter.
43+
1. At the Terminal command prompt, to create a new console application in a specified folder, enter the following prompt:
44+
45+
```dotnetcli
46+
dotnet new console -o ./CsharpProjects/TestProject
47+
```
48+
49+
This .NET CLI command uses a .NET program template to create a new C# console application project in the specified folder location. The command creates the CsharpProjects and TestProject folders for you, and uses TestProject as the name of your `.csproj` file.
4350
44-
This .NET CLI command uses a .NET program template to create a new C# console application project in the specified folder location. The command creates the CsharpProjects and TestProject folders for us, and uses TestProject as the name of our `.csproj` file.
51+
If a message is displayed telling you that the files already exist, continue with the next steps. You'll reuse the existing project files.
4552
46-
1. In the EXPLORER panel, expand the **CsharpProjects** folder.
53+
1. In the EXPLORER view, expand the **CsharpProjects** folder.
54+
55+
You should see the **TestProject** folder and two files, a C# program file named Program.cs and a C# project file named TestProject.csproj.
56+
57+
1. On the Visual Studio Code **File** menu, select **Open Folder**.
4758
48-
You should see the TestProject folder and two files, a C# program file named Program.cs and a C# project file named TestProject.csproj.
59+
1. In the **Open Folder** dialog, select the **CsharpProjects** folder, and then select **Select Folder**.
4960
50-
1. In the EXPLORER panel, to view your code file in the Editor panel, select **Program.cs**.
61+
1. In the EXPLORER view, expand the TestProject folder, and then select **Program.cs**.
5162
5263
1. Delete the existing code lines.
5364

learn-pr/wwl-language/csharp-for/index.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
### YamlMime:Module
22
uid: learn.languages.csharp-for
33
metadata:
4-
title: Iterate through a code block using for statement in C#
4+
title: Iterate Through a Code Block using for Statement in C#
55
description: "Use the for iteration statement to loop a pre-set number of times and control the iteration process."
6-
ms.date: 02/22/2024
6+
ms.date: 06/16/2025
77
author: wwlpublish
88
ms.author: cahowd
99
ms.topic: module
10+
ms.custom:
11+
- N/A
1012
ms.service: dotnet-csharp
1113
ms.devlang: csharp
14+
ai-usage: human-only
1215
title: Iterate through a code block using for statement in C#
1316
summary: Use the for iteration statement to loop a pre-set number of times and control the iteration process.
1417
abstract: |
1518
After you complete this module, you'll be able to:
19+
1620
- Use the for statement to loop through a block of code
21+
1722
- Modify how the .NET Runtime executes the looping logic, changing the value of the iterator, the condition and the pattern
1823
prerequisites: |
1924
- Experience creating simple C# applications that include console I/O and access the methods of .NET classes such as String and Random
25+
2026
- Experience using Visual Studio Code to develop, build, and run C# console applications that implement arrays, if-elseif-else statements, and foreach statements
27+
2128
- Experience using C# code to evaluate conditional expressions and manage variable scope inside and outside of code blocks
29+
2230
- Experience using the switch-case construct to match a variable or expression against several possible outcomes
2331
iconUrl: /training/achievements/csharp-for.svg
2432
levels:
@@ -41,4 +49,4 @@ units:
4149
- learn.languages.csharp-for.knowledge-check
4250
- learn.languages.csharp-for.summary
4351
badge:
44-
uid: learn.languages.csharp-for.badge
52+
uid: learn.languages.csharp-for.badge

0 commit comments

Comments
 (0)