Skip to content

Commit d8f40c0

Browse files
ChristianoKissBillWagner
authored andcommitted
Added remarks for Sorted<T>.Max and Sorted<T>.Min properties regarding the default returning value of T when the set has no elements. (#3580)
1 parent 32b14c3 commit d8f40c0

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

xml/System.Collections.Generic/SortedSet`1.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,14 @@
13791379
<Docs>
13801380
<summary>Gets the maximum value in the <see cref="T:System.Collections.Generic.SortedSet`1" />, as defined by the comparer.</summary>
13811381
<value>The maximum value in the set.</value>
1382-
<remarks>To be added.</remarks>
1382+
<remarks>
1383+
<format type="text/markdown"><![CDATA[
1384+
1385+
## Remarks
1386+
If the <xref:System.Collections.Generic.SortedSet%601> has no elements, then the <xref:System.Collections.Generic.SortedSet%601.Max%2A> property returns the default value of `T`.
1387+
1388+
]]></format>
1389+
</remarks>
13831390
</Docs>
13841391
</Member>
13851392
<Member MemberName="Min">
@@ -1413,7 +1420,14 @@
14131420
<Docs>
14141421
<summary>Gets the minimum value in the <see cref="T:System.Collections.Generic.SortedSet`1" />, as defined by the comparer.</summary>
14151422
<value>The minimum value in the set.</value>
1416-
<remarks>To be added.</remarks>
1423+
<remarks>
1424+
<format type="text/markdown"><![CDATA[
1425+
1426+
## Remarks
1427+
If the <xref:System.Collections.Generic.SortedSet%601> has no elements, then the <xref:System.Collections.Generic.SortedSet%601.Min%2A> property returns the default value of `T`.
1428+
1429+
]]></format>
1430+
</remarks>
14171431
</Docs>
14181432
</Member>
14191433
<Member MemberName="OnDeserialization">

0 commit comments

Comments
 (0)