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: xml/System.Collections.Generic/HashSet`1.xml
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1310,9 +1310,10 @@ The following example demonstrates how to merge two disparate sets. This example
1310
1310
<Parameters />
1311
1311
<Docs>
1312
1312
<typeparamname="TAlternate">The alternate type of instance for performing lookups.</typeparam>
1313
-
<summary>Gets an instance of a type that can be used to perform operations on the current <seecref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamrefname="TAlternate"/> instead of a <typeparamrefname="T"/>.</summary>
1313
+
<summary>Gets an instance of a type that can be used to perform operations on the current <seecref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamrefname="TAlternate"/> instead of a <typeparamrefname="T"/>.</summary>
1314
1314
<returns>The created lookup instance.</returns>
1315
-
<remarks>The set must use a comparer that implements <seecref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamrefname="TAlternate"/> and <typeparamrefname="T"/>. If it doesn't, an exception is thrown.</remarks>
1315
+
<remarks>The set must use a comparer that implements <seecref="T:System.Collections.Generic.IAlternateEqualityComparer`2" /> with <typeparamrefname="TAlternate" /> and <typeparamrefname="T" />. If it doesn't, an exception is thrown.</remarks>
1316
+
<exceptioncref="T:System.InvalidOperationException">The set's comparer is not compatible with <typeparamrefname="TAlternate" />.</exception>
1316
1317
</Docs>
1317
1318
</Member>
1318
1319
<MemberMemberName="GetEnumerator">
@@ -2625,9 +2626,10 @@ The following example demonstrates how to merge two disparate sets. This example
2625
2626
<Docs>
2626
2627
<typeparamname="TAlternate">The alternate type of instance for performing lookups.</typeparam>
2627
2628
<paramname="lookup">The created lookup instance when the method returns true, or a default instance that should not be used if the method returns false.</param>
2628
-
<summary>Gets an instance of a type that can be used to perform operations on the current <seecref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamrefname="TAlternate"/> instead of a <typeparamrefname="T"/>.</summary>
2629
-
<returns><seelangword="true" /> if a lookup could be created; otherwise, <seelangword="false" />.</returns>
2630
-
<remarks>The set must use a comparer that implements <seecref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamrefname="TAlternate"/> and <typeparamrefname="T"/>. If it doesn't, the method returns <seelangword="false" />.</remarks>
2629
+
<summary>Gets an instance of a type that can be used to perform operations on the current <seecref="T:System.Collections.Generic.HashSet`1" /> using a <typeparamrefname="TAlternate" /> instead of a <typeparamrefname="T" />.</summary>
2630
+
<returns>
2631
+
<seelangword="true" /> if a lookup could be created; otherwise, <seelangword="false" />.</returns>
2632
+
<remarks>The set must use a comparer that implements <seecref="T:System.Collections.Generic.IAlternateEqualityComparer`2" /> with <typeparamrefname="TAlternate" /> and <typeparamrefname="T" />. If it doesn't, the method returns <seelangword="false" />.</remarks>
0 commit comments