Skip to content

Commit 167cbc9

Browse files
buyaa-ngewarren
andauthored
Apply suggestions from code review
Co-authored-by: Genevieve Warren <[email protected]>
1 parent 13eb226 commit 167cbc9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

xml/System.Collections.Generic/Dictionary`2.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,9 +1303,9 @@
13031303
<Parameters />
13041304
<Docs>
13051305
<typeparam name="TAlternateKey">The alternate type of a key for performing lookups.</typeparam>
1306-
<summary>Gets an instance of a type that may be used to perform operations on the current <see cref="T:System.Collections.Generic.Dictionary`2"/> using a <typeparamref name="TAlternateKey"/> as a key instead of a <typeparamref name="TKey"/>.</summary>
1306+
<summary>Gets an instance of a type that can be used to perform operations on the current <see cref="T:System.Collections.Generic.Dictionary`2"/> using a <typeparamref name="TAlternateKey"/> as a key instead of a <typeparamref name="TKey"/>.</summary>
13071307
<returns>The created lookup instance.</returns>
1308-
<remarks>The dictionary must be using a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternateKey"/> and <typeparamref name="TKey"/>. If it doesn't, an exception will be thrown.</remarks>
1308+
<remarks>The dictionary must use a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternateKey"/> and <typeparamref name="TKey"/>. If it doesn't, an exception is thrown.</remarks>
13091309
<exception cref="T:System.InvalidOperationException">The dictionary's comparer is not compatible with <typeparamref name="TAlternateKey"/>.</exception>
13101310
</Docs>
13111311
</Member>
@@ -3413,9 +3413,9 @@ Unlike the <xref:System.Collections.Generic.Dictionary%602.Add%2A> method, this
34133413
<Docs>
34143414
<typeparam name="TAlternateKey">The alternate type of a key for performing lookups.</typeparam>
34153415
<param name="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>
3416-
<summary>Gets an instance of a type that may be used to perform operations on the current <see cref="T:System.Collections.Generic.Dictionary`2"/> using a <typeparamref name="TAlternateKey"/> as a key instead of a <typeparamref name="TKey"/>.</summary>
3416+
<summary>Gets an instance of a type that can be used to perform operations on the current <see cref="T:System.Collections.Generic.Dictionary`2"/> using a <typeparamref name="TAlternateKey"/> as a key instead of a <typeparamref name="TKey"/>.</summary>
34173417
<returns><see langword="true" /> if a lookup could be created; otherwise, <see langword="false" />.</returns>
3418-
<remarks>The dictionary must be using a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternateKey"/> and <typeparamref name="TKey"/>. If it doesn't, the method will return false.</remarks>
3418+
<remarks>The dictionary must use a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternateKey"/> and <typeparamref name="TKey"/>. If it doesn't, the method returns <see langword="false" />.</remarks>
34193419
</Docs>
34203420
</Member>
34213421
<Member MemberName="TryGetValue">

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,9 +1310,9 @@ The following example demonstrates how to merge two disparate sets. This example
13101310
<Parameters />
13111311
<Docs>
13121312
<typeparam name="TAlternate">The alternate type of instance for performing lookups.</typeparam>
1313-
<summary>Gets an instance of a type that may be used to perform operations on the current <see cref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamref name="TAlternate"/> instead of a <typeparamref name="T"/>.</summary>
1313+
<summary>Gets an instance of a type that can be used to perform operations on the current <see cref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamref name="TAlternate"/> instead of a <typeparamref name="T"/>.</summary>
13141314
<returns>The created lookup instance.</returns>
1315-
<remarks>The set must be using a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternate"/> and <typeparamref name="T"/>. If it doesn't, an exception will be thrown.</remarks>
1315+
<remarks>The set must use a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternate"/> and <typeparamref name="T"/>. If it doesn't, an exception is thrown.</remarks>
13161316
</Docs>
13171317
</Member>
13181318
<Member MemberName="GetEnumerator">
@@ -2625,9 +2625,9 @@ The following example demonstrates how to merge two disparate sets. This example
26252625
<Docs>
26262626
<typeparam name="TAlternate">The alternate type of instance for performing lookups.</typeparam>
26272627
<param name="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 may be used to perform operations on the current <see cref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamref name="TAlternate"/> instead of a <typeparamref name="T"/>.</summary>
2628+
<summary>Gets an instance of a type that can be used to perform operations on the current <see cref="T:System.Collections.Generic.HashSet`1"/> using a <typeparamref name="TAlternate"/> instead of a <typeparamref name="T"/>.</summary>
26292629
<returns><see langword="true" /> if a lookup could be created; otherwise, <see langword="false" />.</returns>
2630-
<remarks>The set must be using a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternate"/> and <typeparamref name="T"/>. If it doesn't, the method returns false.</remarks>
2630+
<remarks>The set must use a comparer that implements <see cref="T:System.Collections.Generic.IAlternateEqualityComparer`2"/> with <typeparamref name="TAlternate"/> and <typeparamref name="T"/>. If it doesn't, the method returns <see langword="false" />.</remarks>
26312631
</Docs>
26322632
</Member>
26332633
<Member MemberName="TryGetValue">

0 commit comments

Comments
 (0)