Skip to content

Commit 10e552b

Browse files
authored
changed files by pdets auto publish service, publishid[be46161d-1c2f-4a8c-9c3c-a3c69099a118] and do [publish].
1 parent 899ec4f commit 10e552b

14 files changed

+49
-27
lines changed

learn-pr/wwl-language/csharp-call-methods/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-call-methods/2-dotnet-class-library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Get started with .NET Libraries
44
metadata:
55
title: Get started with .NET Libraries
66
description: "Get started with .NET Libraries"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-call-methods/3-call-methods.yml renamed to learn-pr/wwl-language/csharp-call-methods/3-exercise-call-methods-dotnet-class.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ title: Exercise - Call the methods of a .NET Class
44
metadata:
55
title: Exercise - Call the methods of a .NET Class
66
description: "Exercise - Call the methods of a .NET Class"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 12
1414
content: |
15-
[!include[](includes/3-call-methods.md)]
15+
[!include[](includes/3-exercise-call-methods-dotnet-class.md)]
1616
quiz:
1717
title: "Check your knowledge"
1818
questions:

learn-pr/wwl-language/csharp-call-methods/4-return-values-input-parameters.yml renamed to learn-pr/wwl-language/csharp-call-methods/4-exercise-return-values-input-parameters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ title: Exercise - Return values and parameters of methods
44
metadata:
55
title: Exercise - Return values and parameters of methods
66
description: "Exercise - Return values and parameters of methods"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 18
1414
content: |
15-
[!include[](includes/4-return-values-input-parameters.md)]
15+
[!include[](includes/4-exercise-return-values-input-parameters.md)]
1616
quiz:
1717
title: "Check your knowledge"
1818
questions:

learn-pr/wwl-language/csharp-call-methods/5-challenge.yml renamed to learn-pr/wwl-language/csharp-call-methods/5-exercise-challenge-call-method.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Exercise - Complete a challenge activity to discover and implement a meth
44
metadata:
55
title: Exercise - Complete a challenge activity to discover and implement a method call
66
description: "Exercise - Complete a challenge activity to discover and implement a method call"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 7
1414
content: |
15-
[!include[](includes/5-challenge.md)]
15+
[!include[](includes/5-exercise-challenge-call-method.md)]

learn-pr/wwl-language/csharp-call-methods/6-solution.yml renamed to learn-pr/wwl-language/csharp-call-methods/6-review-solution-for-call-method-challenge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Review the solution to discover and implement a method call challenge act
44
metadata:
55
title: Review the solution to discover and implement a method call challenge activity
66
description: "Review the solution to discover and implement a method call challenge activity"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 3
1414
content: |
15-
[!include[](includes/6-solution.md)]
15+
[!include[](includes/6-review-solution-for-call-method-challenge.md)]

learn-pr/wwl-language/csharp-call-methods/7-knowledge-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Module assessment
44
metadata:
55
title: Module assessment
66
description: "Knowledge check"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-call-methods/8-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 10/25/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-call-methods/includes/2-dotnet-class-library.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
3+
14
There's more to building a C# application than stringing together lines of code. You'll need the .NET Runtime, which hosts and manages your code as it executes on the end user's computer. You'll also rely on the .NET Class Library, a prewritten collection of coding resources that you can use in your applications. This unit explains what the .NET Class Library is and how it complements the C# programming language.
25

36
## What is the .NET Class Library?

learn-pr/wwl-language/csharp-call-methods/includes/3-call-methods.md renamed to learn-pr/wwl-language/csharp-call-methods/includes/3-exercise-call-methods-dotnet-class.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
3+
14
Whether you realized it or not, you've been calling C# methods ever since your first "Hello, World!" application. That application uses the `WriteLine()` method of the `Console` class to display the "Hello, World!" message.
25

36
However, not all classes and methods are implemented the same way. This unit covers some of the most common variants that you'll need to understand when using methods from the .NET Class Library. More importantly, you'll learn how to find and use the documentation to better understand more about each method.
@@ -31,7 +34,7 @@ This module includes coding activities that guide you through the process of bui
3134

3235
1. On the Visual Studio Code **File** menu, select **Open Folder**.
3336

34-
1. In the **Open Folder** dialog, navigate to the **Windows Desktop** folder.
37+
1. In the **Open Folder** dialog, navigate to the Windows Desktop folder.
3538

3639
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.
3740

@@ -43,22 +46,32 @@ This module includes coding activities that guide you through the process of bui
4346

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

46-
```dos
49+
```PowerShell
4750
C:\Users\someuser\Desktop>
4851
```
4952
5053
> [!NOTE]
51-
> 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 past the next step, which is used to create a console app in the TestProject folder.
54+
> 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.
5255
53-
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.
56+
1. At the Terminal command prompt, to create a new console application in a specified folder, enter the following prompt:
57+
58+
```dotnetcli
59+
dotnet new console -o ./CsharpProjects/TestProject
60+
```
5461
5562
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.
5663
57-
1. In the EXPLORER panel, expand the **CsharpProjects** folder.
64+
If a message is displayed telling you that the files already exist, continue with the next steps. You'll reuse the existing project files.
5865
59-
You should see the TestProject folder and two files, a C# program file named Program.cs and a C# project file named TestProject.csproj.
66+
1. In the EXPLORER view, expand the **CsharpProjects** folder.
6067
61-
1. In the EXPLORER panel, to view your code file in the Editor panel, select **Program.cs**.
68+
You should see the **TestProject** folder and two files, a C# program file named Program.cs and a C# project file named TestProject.csproj.
69+
70+
1. On the Visual Studio Code **File** menu, select **Open Folder**.
71+
72+
1. In the **Open Folder** dialog, select the **CsharpProjects** folder, and then select **Select Folder**.
73+
74+
1. In the EXPLORER view, expand the TestProject folder, and then select **Program.cs**.
6275
6376
1. Delete the existing code lines.
6477
@@ -84,17 +97,19 @@ This module includes coding activities that guide you through the process of bui
8497
8598
1. On the Visual Studio Code **File** menu, click **Save**.
8699
87-
1. In the EXPLORER panel, to open a Terminal at your TestProject folder location, right-click **TestProject**, and then select **Open in Integrated Terminal**.
100+
1. In the EXPLORER view, to open a Terminal at your TestProject folder location, right-click **TestProject**, and then select **Open in Integrated Terminal**.
88101
89102
Notice that the Terminal panel includes a command prompt that displays a folder path. For example:
90103
91-
`C:\Users\someuser\Desktop\CsharpProjects\TestProject>`
104+
```powershell
105+
C:\Users\someuser\Desktop\CsharpProjects\TestProject>
106+
```
92107
93-
When you use the Terminal to run .NET CLI commands, this folder location is where the commands run. Ensure that your code folder matches the folder path displayed in the command prompt before you build or run your code.
108+
When you use the Terminal to run .NET CLI commands, commands run from the displayed folder location. Ensure that your code folder matches the folder path displayed in the command prompt before you build or run your code.
94109
95110
1. At the Terminal command prompt, to run your code, type **dotnet run** and then press Enter.
96111
97-
Notice that a number from 1 to 6 is displayed in the console output (the number of dots on the dice). If you run the code enough times, you will eventually see each of the numbers displayed.
112+
Notice that a number from 1 to 6 is displayed in the console output (the number of dots on the dice). If you run the code enough times, you'll see each of the numbers 1-6 displayed.
98113
99114
1. Take a minute to examine the syntax used to access the `Next()` and `WriteLine()` methods.
100115

0 commit comments

Comments
 (0)