Skip to content

Commit 274e33a

Browse files
committed
Document exceptions and alternates for Enumerable.ToHashSet
1 parent 17b55a4 commit 274e33a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xml/System.Linq/Enumerable.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13378,6 +13378,9 @@ If `count` is not a positive number, this method returns an empty enumerable col
1337813378
<summary>Creates a <see cref="T:System.Collections.Generic.HashSet`1" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" />.</summary>
1337913379
<returns>A <see cref="T:System.Collections.Generic.HashSet`1" /> that contains values of type <paramref name="TSource" /> selected from the input sequence.</returns>
1338013380
<remarks>To be added.</remarks>
13381+
<exception cref="T:System.ArgumentNullException">
13382+
<paramref name="source" /> is <see langword="null" />.</exception>
13383+
<altmember cref="M:System.Linq.Enumerable.ToHashSet``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEqualityComparer{``0})" />
1338113384
</Docs>
1338213385
</Member>
1338313386
<Member MemberName="ToHashSet&lt;TSource&gt;">
@@ -13423,6 +13426,9 @@ If `count` is not a positive number, this method returns an empty enumerable col
1342313426
<summary>Creates a <see cref="T:System.Collections.Generic.HashSet`1" /> from an <see cref="T:System.Collections.Generic.IEnumerable`1" /> using the <paramref name="comparer" /> to compare keys.</summary>
1342413427
<returns>A <see cref="T:System.Collections.Generic.HashSet`1" /> that contains values of type <paramref name="TSource" /> selected from the input sequence.</returns>
1342513428
<remarks>To be added.</remarks>
13429+
<exception cref="T:System.ArgumentNullException">
13430+
<paramref name="source" /> is <see langword="null" />.</exception>
13431+
<altmember cref="M:System.Linq.Enumerable.ToHashSet``1(System.Collections.Generic.IEnumerable{``0})" />
1342613432
</Docs>
1342713433
</Member>
1342813434
<Member MemberName="ToList&lt;TSource&gt;">

0 commit comments

Comments
 (0)