Skip to content

Commit 7a6f59c

Browse files
authored
changed files by pdets auto publish service, publishid[e76e9389-32ea-48ca-b6ea-1f97e030ee0c] and do [publish].
1 parent 3722710 commit 7a6f59c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

learn-pr/wwl-azure/implement-collection-types/7-knowledge-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ quiz:
4040
explanation: "Incorrect. `HashSet<Account>` ensures uniqueness but doesn't support key-based look-up, which is required in this scenario."
4141
- content: "Which of these collections in C# supports dynamic resizing and access to elements by index?"
4242
choices:
43-
- content: "List&#60;T&#62;"
43+
- content: "`List<T>`"
4444
isCorrect: true
45-
explanation: "Correct. List&#60;T&#62; supports dynamic resizing and allows access to elements by their index, making it versatile for various scenarios."
45+
explanation: "Correct. `List<T>` supports dynamic resizing and allows access to elements by their index, making it versatile for various scenarios."
4646
- content: "`Dictionary<TKey, TValue>`"
4747
isCorrect: false
4848
explanation: "Incorrect. `Dictionary<TKey, TValue>` stores elements as key/value pairs and doesn't provide index-based access."

learn-pr/wwl-azure/implement-collection-types/includes/3-implement-ordered-collections-typed-list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Ordered collections in C#, such as the `List<T>` class, perform common operations like adding, removing, and iterating through items. An example where `List<T>` is managing a list of students or books.
22

3-
## Use List<T> for managing ordered collections
3+
## Use `List<T>` for managing ordered collections
44

55
`List<T>` is a generic collection designed for scenarios where you need to store and manage an ordered sequence of elements of a specific type (`T`). It provides type safety, better performance, and flexibility compared to non-generic collections like `ArrayList`, eliminating the need for type casting when accessing elements.
66

@@ -16,7 +16,7 @@ Ordered collections in C#, such as the `List<T>` class, perform common operation
1616
> [!NOTE]
1717
> `List<T>` automatically expands its capacity when needed, but this expansion can affect performance. To optimize, set an initial capacity based on the estimated size of the collection.
1818
19-
## Add, remove, and iterate through items in a List<T>
19+
## Add, remove, and iterate through items in a `List<T>`
2020

2121
`List<T>` provides methods for adding, removing, and iterating through items efficiently. These operations are straightforward and commonly used in application development.
2222

@@ -49,7 +49,7 @@ This example demonstrates how to add items to a `List<T>` while preserving exist
4949
> [!TIP]
5050
> LINQ queries can simplify filtering, ordering, and grouping operations on `List<T>`.
5151
52-
## Manage a list of students or books by using List<T>
52+
## Manage a list of students or books by using `List<T>`
5353

5454
`List<T>` is ideal for managing collections of objects, such as students or books. You can define a custom class for the items and apply `List<T>` to store and manipulate them.
5555

0 commit comments

Comments
 (0)