Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions xml/System.Collections.Generic/SortedSet`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
<format type="text/markdown"><![CDATA[
## Remarks
Does NOT store duplicate value. For example: if you want to have a stored list of 3, 4, 4, 1 it will generate a list 1, 3, 4.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mentioned just below - "Duplicate elements are not allowed".

A <xref:System.Collections.Generic.SortedSet%601> object maintains a sorted order without affecting performance as elements are inserted and deleted. Duplicate elements are not allowed. Changing the sort values of existing items is not supported and may lead to unexpected behavior.
For a thread safe alternative to <xref:System.Collections.Generic.SortedSet%601>, see <xref:System.Collections.Immutable.ImmutableSortedSet%601>
Expand Down