You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,8 @@ A collection of unique items that preserves their original insertion order. It c
100
100
101
101
**Useful for:** Tracking a sequence of unique events, processing queue for unique jobs.
102
102
103
+
> ⚠️ Note that this is an **ordered** collection, not a **sorted** one.
104
+
103
105
```csharp
104
106
// Add returns true if the item was new
105
107
if (history.Add("user_logged_in"))
@@ -169,6 +171,8 @@ A one-to-many collection that maps a key to a **unique set** of values that ma
169
171
170
172
**Useful for:** Tracking user achievements in the exact order they were earned, managing ordered unique dependencies for a build system, storing timelines of unique events per entity.
171
173
174
+
> ⚠️ Note that this is an **ordered** collection, not a **sorted** one.
175
+
172
176
```csharp
173
177
// Track the unique products a user viewed, in order.
0 commit comments