Skip to content

Commit 33a6583

Browse files
carlossanloptdykstra
authored andcommitted
Document System.Collections.Generic.CollectionExtensions (#3459)
1 parent 32de543 commit 33a6583

File tree

1 file changed

+32
-28
lines changed

1 file changed

+32
-28
lines changed

xml/System.Collections.Generic/CollectionExtensions.xml

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</Base>
2020
<Interfaces />
2121
<Docs>
22-
<summary>To be added.</summary>
22+
<summary>Provides extension methods for generic collections.</summary>
2323
<remarks>To be added.</remarks>
2424
</Docs>
2525
<Members>
@@ -52,13 +52,14 @@
5252
<Parameter Name="key" Type="TKey" />
5353
</Parameters>
5454
<Docs>
55-
<typeparam name="TKey">To be added.</typeparam>
56-
<typeparam name="TValue">To be added.</typeparam>
57-
<param name="dictionary">To be added.</param>
58-
<param name="key">To be added.</param>
59-
<summary>To be added.</summary>
60-
<returns>To be added.</returns>
55+
<typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
56+
<typeparam name="TValue">The type of the values in the dictionary.</typeparam>
57+
<param name="dictionary">A dictionary with keys of type <typeparamref name="TKey" /> and values of type <typeparamref name="TValue" />.</param>
58+
<param name="key">The key of the value to get.</param>
59+
<summary>Tries to get the value associated with the specified <paramref name="key" /> in the <paramref name="dictionary" />.</summary>
60+
<returns>A <typeparamref name="TValue" /> instance. When the method is successful, the returned object is the value associated with the specified <paramref name="key" />. When the method fails, it returns the <see langword="default" /> value for <typeparamref name="TValue" />.</returns>
6161
<remarks>To be added.</remarks>
62+
<exception cref="T:System.ArgumentNullException"><paramref name="dictionary" /> is <see langword="null" />.</exception>
6263
</Docs>
6364
</Member>
6465
<Member MemberName="GetValueOrDefault&lt;TKey,TValue&gt;">
@@ -91,14 +92,15 @@
9192
<Parameter Name="defaultValue" Type="TValue" />
9293
</Parameters>
9394
<Docs>
94-
<typeparam name="TKey">To be added.</typeparam>
95-
<typeparam name="TValue">To be added.</typeparam>
96-
<param name="dictionary">To be added.</param>
97-
<param name="key">To be added.</param>
98-
<param name="defaultValue">To be added.</param>
99-
<summary>To be added.</summary>
100-
<returns>To be added.</returns>
95+
<typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
96+
<typeparam name="TValue">The type of the values in the dictionary.</typeparam>
97+
<param name="dictionary">A dictionary with keys of type <typeparamref name="TKey" /> and values of type <typeparamref name="TValue" />.</param>
98+
<param name="key">The key of the value to get.</param>
99+
<param name="defaultValue">The default value to return when the <paramref name="dictionary" /> cannot find a value associated with the specified <paramref name="key" />.</param>
100+
<summary>Tries to get the value associated with the specified key in the <paramref name="dictionary" />.</summary>
101+
<returns>A <typeparamref name="TValue" /> instance. When the method is successful, the returned object is the value associated with the specified <paramref name="key" />. When the method fails, it returns <paramref name="defaultValue" />.</returns>
101102
<remarks>To be added.</remarks>
103+
<exception cref="T:System.ArgumentNullException"><paramref name="dictionary" /> is <see langword="null" />.</exception>
102104
</Docs>
103105
</Member>
104106
<Member MemberName="Remove&lt;TKey,TValue&gt;">
@@ -131,14 +133,15 @@
131133
<Parameter Name="value" Type="TValue" RefType="out" />
132134
</Parameters>
133135
<Docs>
134-
<typeparam name="TKey">To be added.</typeparam>
135-
<typeparam name="TValue">To be added.</typeparam>
136-
<param name="dictionary">To be added.</param>
137-
<param name="key">To be added.</param>
138-
<param name="value">To be added.</param>
139-
<summary>To be added.</summary>
140-
<returns>To be added.</returns>
136+
<typeparam name="TKey">The type of the keys in the <paramref name="dictionary" />.</typeparam>
137+
<typeparam name="TValue">The type of the values in the <paramref name="dictionary" />.</typeparam>
138+
<param name="dictionary">A dictionary with keys of type <typeparamref name="TKey" /> and values of type <typeparamref name="TValue" />.</param>
139+
<param name="key">The key of the value to remove.</param>
140+
<param name="value">When this method returns <see langword="true" />, the removed value; when this method returns <see langword="false" />, the <see langword="default" /> value for <typeparamref name="TValue" />.</param>
141+
<summary>Tries to remove the value with the specified <paramref name="key" /> from the <paramref name="dictionary" />.</summary>
142+
<returns><see langword="true" /> when a value is found in the <paramref name="dictionary" /> with the specified <paramref name="key" />; <see langword="false" /> when the <paramref name="dictionary" /> cannot find a value associated with the specified <paramref name="key" />.</returns>
141143
<remarks>To be added.</remarks>
144+
<exception cref="T:System.ArgumentNullException"><paramref name="dictionary" /> is <see langword="null" />.</exception>
142145
</Docs>
143146
</Member>
144147
<Member MemberName="TryAdd&lt;TKey,TValue&gt;">
@@ -171,14 +174,15 @@
171174
<Parameter Name="value" Type="TValue" />
172175
</Parameters>
173176
<Docs>
174-
<typeparam name="TKey">To be added.</typeparam>
175-
<typeparam name="TValue">To be added.</typeparam>
176-
<param name="dictionary">To be added.</param>
177-
<param name="key">To be added.</param>
178-
<param name="value">To be added.</param>
179-
<summary>To be added.</summary>
180-
<returns>To be added.</returns>
177+
<typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
178+
<typeparam name="TValue">The type of the values in the dictionary.</typeparam>
179+
<param name="dictionary">A dictionary with keys of type <typeparamref name="TKey" /> and values of type <typeparamref name="TValue" />.</param>
180+
<param name="key">The key of the value to add.</param>
181+
<param name="value">The value to add.</param>
182+
<summary>Tries to add the specified <paramref name="key" /> and <paramref name="value" /> to the <paramref name="dictionary" />.</summary>
183+
<returns><see langword="true" /> when the <paramref name="key" /> and <paramref name="value" /> are successfully added to the <paramref name="dictionary" />; <see langword="false" /> when the <paramref name="dictionary" /> already contains the specified <paramref name="key" />, in which case nothing gets added.</returns>
181184
<remarks>To be added.</remarks>
185+
<exception cref="T:System.ArgumentNullException"><paramref name="dictionary" /> is <see langword="null" />.</exception>
182186
</Docs>
183187
</Member>
184188
</Members>

0 commit comments

Comments
 (0)