Skip to content

Commit 9b92e76

Browse files
authored
changed files by pdets auto publish service, publishid[0ba7b393-6b26-44cf-874e-b01c90f98384] and do [publish].
1 parent 5375e13 commit 9b92e76

9 files changed

+23
-23
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.wwl.implement-enum-struct-record-types.use-enums-representing-named-constants-csharp
3-
title: Use enums to represent named constants
2+
uid: learn.wwl.implement-enum-struct-record-types.use-enums-represent-named-constants-csharp
3+
title: Use enums to represent named constants in C#
44
metadata:
5-
title: Use enums to represent named constants
5+
title: Use enums to represent named constants in C#
66
description: "Learn how to use enums in C# to define named constants and improve code readability."
77
ms.date: 03/28/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit
1111
durationInMinutes: 6
1212
content: |
13-
[!include[](includes/2-use-enums-representing-named-constants-csharp.md)]
13+
[!include[](includes/2-use-enums-represent-named-constants-csharp.md)]
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.wwl.implement-enum-struct-record-types.create-structs-encapsulating-data-csharp
3-
title: Create encapsulated data with structs
2+
uid: learn.wwl.implement-enum-struct-record-types.create-structs-encapsulate-data-csharp
3+
title: Create encapsulated data with structs in C#
44
metadata:
5-
title: Create encapsulated data with structs
5+
title: Create encapsulated data with structs in C#
66
description: "Learn how to use structs in C# to group related data into lightweight, efficient containers."
77
ms.date: 03/28/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit
1111
durationInMinutes: 7
1212
content: |
13-
[!include[](includes/3-create-structs-encapsulating-data-csharp.md)]
13+
[!include[](includes/3-create-structs-encapsulate-data-csharp.md)]

learn-pr/wwl-azure/implement-enum-struct-record-types/4-apply-records-immutable-data-models-csharp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### YamlMime:ModuleUnit
22
uid: learn.wwl.implement-enum-struct-record-types.apply-records-immutable-data-models-csharp
3-
title: Apply records for immutable data models
3+
title: Apply records for immutable data models in C#
44
metadata:
5-
title: Apply records for immutable data models
5+
title: Apply records for immutable data models in C#
66
description: "Learn how to use records in C# to create immutable data models with value-based equality."
77
ms.date: 03/28/2025
88
author: wwlpublish

learn-pr/wwl-azure/implement-enum-struct-record-types/6-knowledge-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ quiz:
2121
explanation: "Correct. Enums are used to represent a set of predefined values with meaningful names, improving code readability and maintainability."
2222
- content: "To store multiple values in a single variable."
2323
isCorrect: false
24-
explanation: "Incorrect. Enums do not store multiple values; they represent a single value from a predefined set of constants."
24+
explanation: "Incorrect. Enums don't store multiple values; they represent a single value from a predefined set of constants."
2525
- content: "To perform mathematical operations on integral types."
2626
isCorrect: false
27-
explanation: "Incorrect. Enums are not designed for mathematical operations but for representing fixed sets of values."
27+
explanation: "Incorrect. Enums aren't designed for mathematical operations but for representing fixed sets of values."
2828
- content: "What keyword is used to define a struct in C#?"
2929
choices:
30-
- content: "struct"
30+
- content: "Struct"
3131
isCorrect: true
3232
explanation: "Correct. The 'struct' keyword is used to define a struct in C#. It allows creating a value type that encapsulates related data."
33-
- content: "class"
33+
- content: "Class"
3434
isCorrect: false
3535
explanation: "Incorrect. The 'class' keyword is used to define reference types, not value types like structs."
36-
- content: "interface"
36+
- content: "Interface"
3737
isCorrect: false
3838
explanation: "Incorrect. The 'interface' keyword is used to define contracts for classes or structs, not the struct itself."
3939
- content: "What is the primary advantage of using records in C# for data modeling?"
@@ -46,4 +46,4 @@ quiz:
4646
explanation: "Incorrect. Records are designed for simple, immutable data models rather than complex behavior-focused operations."
4747
- content: "They provide value-based equality and immutability."
4848
isCorrect: true
49-
explanation: "Correct. Records offer value-based equality and immutability, making them ideal for scenarios where data should not change after creation."
49+
explanation: "Correct. Records offer value-based equality and immutability, making them ideal for scenarios where data shouldn't change after creation."

learn-pr/wwl-azure/implement-enum-struct-record-types/includes/5-exercise-implement-enum-struct-record-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ When you're finished with the exercise, return here for:
1111
- Summary of your learning.
1212
- Badge for completing this module.
1313

14-
[![Button to launch exercise.](../media/button-start-exercise.png)](https://go.microsoft.com/fwlink/?linkid=<2313307>&azure-portal=true)
14+
[![Button to launch exercise.](../media/button-start-exercise.png)](https://go.microsoft.com/fwlink/?linkid=2313307&azure-portal=true)

learn-pr/wwl-azure/implement-enum-struct-record-types/includes/7-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After completing this module, you're now able to:
66
- Design and implement structs for encapsulating related data, ensuring immutability and efficient performance.
77
- Create and utilize records for modeling immutable data with value-based equality and hierarchical structures.
88

9-
More Reading:
9+
More reading:
1010

1111
- [Enums (C# Programming Guide)](/dotnet/csharp/programming-guide/enumeration-types)
1212
- [Structs (C# Programming Guide)](/dotnet/csharp/programming-guide/classes-and-structs/structs)

learn-pr/wwl-azure/implement-enum-struct-record-types/index.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### YamlMime:Module
22
uid: learn.wwl.implement-enum-struct-record-types
33
metadata:
4-
title: Implement enum, struct, and record types
5-
description: "&lt;module title&gt;"
4+
title: Implement Enum, Struct, and Record Types
5+
description: "Learn to create organized, maintainable code with enum, struct, and record types in C#."
66
ms.date: 03/28/2025
77
author: wwlpublish
88
ms.author: eric
@@ -28,16 +28,16 @@ prerequisites: |
2828
- Familiar with classes, abstract classes, interfaces and inheritance.
2929
iconUrl: /training/achievements/generic-badge.svg
3030
levels:
31-
- beginner
31+
- Learn how to organize your code with enum, struct, and record types in C#.
3232
roles:
3333
- developer
3434
products:
3535
- azure
3636
- vs-code
3737
units:
3838
- learn.wwl.implement-enum-struct-record-types.introduction
39-
- learn.wwl.implement-enum-struct-record-types.use-enums-representing-named-constants-csharp
40-
- learn.wwl.implement-enum-struct-record-types.create-structs-encapsulating-data-csharp
39+
- learn.wwl.implement-enum-struct-record-types.use-enums-represent-named-constants-csharp
40+
- learn.wwl.implement-enum-struct-record-types.create-structs-encapsulate-data-csharp
4141
- learn.wwl.implement-enum-struct-record-types.apply-records-immutable-data-models-csharp
4242
- learn.wwl.implement-enum-struct-record-types.exercise-implement-enum-struct-record-types
4343
- learn.wwl.implement-enum-struct-record-types.knowledge-check

0 commit comments

Comments
 (0)