Skip to content

Commit d1935de

Browse files
authored
Port System.Linq.Enumerable.ToDictionary* docs (dotnet#9193)
* Port System.Linq.Enumerable.ToDictionary* docs * Typo * Typo * Fix error
1 parent b151223 commit d1935de

File tree

1 file changed

+33
-25
lines changed

1 file changed

+33
-25
lines changed

xml/System.Linq/Enumerable.xml

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12994,7 +12994,7 @@ In Visual Basic query expression syntax, an `Aggregate Into Sum()` clause transl
1299412994
<format type="text/markdown"><![CDATA[
1299512995

1299612996
## Remarks
12997-
12997+
1299812998
Items in `source` that are `null` are excluded from the computation of the sum. This method returns zero if `source` contains no elements or all elements are `null`.
1299912999

1300013000
In Visual Basic query expression syntax, an `Aggregate Into Sum()` clause translates to an invocation of <xref:System.Linq.Enumerable.Sum%2A>.
@@ -15015,12 +15015,14 @@ If `count` is not a positive number, this method returns an empty enumerable col
1501515015
</Parameter>
1501615016
</Parameters>
1501715017
<Docs>
15018-
<typeparam name="TKey">To be added.</typeparam>
15019-
<typeparam name="TValue">To be added.</typeparam>
15020-
<param name="source">To be added.</param>
15021-
<summary>To be added.</summary>
15022-
<returns>To be added.</returns>
15018+
<typeparam name="TKey">The type of the keys from elements of <paramref name="source"/>.</typeparam>
15019+
<typeparam name="TValue">The type of the values from elements of <paramref name="source"/>.</typeparam>
15020+
<param name="source">The enumeration to create a dictionary from.</param>
15021+
<summary>Creates a dictionary from an enumeration according to the default comparer for the key type.</summary>
15022+
<returns>A dictionary that contains keys and values from <paramref name="source"/> and uses the default comparer for the key type.</returns>
1502315023
<remarks>To be added.</remarks>
15024+
<exception cref="T:System.ArgumentNullException"><paramref name="source"/> is a <see langword="null" /> reference.</exception>
15025+
<exception cref="T:System.ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception>
1502415026
</Docs>
1502515027
</Member>
1502615028
<Member MemberName="ToDictionary&lt;TKey,TValue&gt;">
@@ -15070,12 +15072,14 @@ If `count` is not a positive number, this method returns an empty enumerable col
1507015072
</Parameter>
1507115073
</Parameters>
1507215074
<Docs>
15073-
<typeparam name="TKey">To be added.</typeparam>
15074-
<typeparam name="TValue">To be added.</typeparam>
15075-
<param name="source">To be added.</param>
15076-
<summary>To be added.</summary>
15077-
<returns>To be added.</returns>
15075+
<typeparam name="TKey">The type of the keys from elements of <paramref name="source"/>.</typeparam>
15076+
<typeparam name="TValue">The type of the values from elements of <paramref name="source"/>.</typeparam>
15077+
<param name="source">The enumeration to create a dictionary from.</param>
15078+
<summary>Creates a dictionary from an enumeration according to the default comparer for the key type.</summary>
15079+
<returns>A dictionary that contains keys and values from <paramref name="source"/> and uses default comparer for the key type.</returns>
1507815080
<remarks>To be added.</remarks>
15081+
<exception cref="T:System.ArgumentNullException"><paramref name="source"/> is a <see langword="null" /> reference.</exception>
15082+
<exception cref="T:System.ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception>
1507915083
</Docs>
1508015084
</Member>
1508115085
<Member MemberName="ToDictionary&lt;TKey,TValue&gt;">
@@ -15129,13 +15133,15 @@ If `count` is not a positive number, this method returns an empty enumerable col
1512915133
</Parameter>
1513015134
</Parameters>
1513115135
<Docs>
15132-
<typeparam name="TKey">To be added.</typeparam>
15133-
<typeparam name="TValue">To be added.</typeparam>
15134-
<param name="source">To be added.</param>
15135-
<param name="comparer">To be added.</param>
15136-
<summary>To be added.</summary>
15137-
<returns>To be added.</returns>
15138-
<remarks>To be added.</remarks>
15136+
<typeparam name="TKey">The type of the keys from elements of <paramref name="source"/>.</typeparam>
15137+
<typeparam name="TValue">The type of the values from elements of <paramref name="source"/>.</typeparam>
15138+
<param name="source">The enumeration to create a dictionary from.</param>
15139+
<param name="comparer">An equality comparer to compare keys.</param>
15140+
<summary>Creates a dictionary from an enumeration according to specified key comparer.</summary>
15141+
<returns>A dictionary that contains keys and values from <paramref name="source"/>.</returns>
15142+
<remarks>If <paramref name="comparer"/> is <see langword="null" />, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default"/> is used to compare keys.</remarks>
15143+
<exception cref="T:System.ArgumentNullException"><paramref name="source"/> is a <see langword="null" /> reference.</exception>
15144+
<exception cref="T:System.ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception>
1513915145
</Docs>
1514015146
</Member>
1514115147
<Member MemberName="ToDictionary&lt;TKey,TValue&gt;">
@@ -15193,13 +15199,15 @@ If `count` is not a positive number, this method returns an empty enumerable col
1519315199
</Parameter>
1519415200
</Parameters>
1519515201
<Docs>
15196-
<typeparam name="TKey">To be added.</typeparam>
15197-
<typeparam name="TValue">To be added.</typeparam>
15198-
<param name="source">To be added.</param>
15199-
<param name="comparer">To be added.</param>
15200-
<summary>To be added.</summary>
15201-
<returns>To be added.</returns>
15202-
<remarks>To be added.</remarks>
15202+
<typeparam name="TKey">The type of the keys from elements of <paramref name="source"/>.</typeparam>
15203+
<typeparam name="TValue">The type of the values from elements of <paramref name="source"/>.</typeparam>
15204+
<param name="source">The enumeration to create a dictionary from.</param>
15205+
<param name="comparer">An equality comparer to compare keys.</param>
15206+
<summary>Creates a dictionary from an enumeration according to specified key equality comparer.</summary>
15207+
<returns>A dictionary that contains keys and values from <paramref name="source"/>.</returns>
15208+
<remarks>If <paramref name="comparer"/> is <see langword="null" />, the default equality comparer <see cref="P:System.Collections.Generic.EqualityComparer`1.Default"/> is used to compare keys.</remarks>
15209+
<exception cref="T:System.ArgumentNullException"><paramref name="source"/> is a <see langword="null" /> reference.</exception>
15210+
<exception cref="T:System.ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception>
1520315211
</Docs>
1520415212
</Member>
1520515213
<Member MemberName="ToDictionary&lt;TSource,TKey&gt;">

0 commit comments

Comments
 (0)