Skip to content

Commit d67a324

Browse files
committed
Add exceptions
1 parent f98df66 commit d67a324

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@
334334
<param name="collection">The <see cref="T:System.Collections.Generic.IEnumerable`1" /> whose elements are copied to the new <see cref="T:System.Collections.Generic.Dictionary`2" />.</param>
335335
<summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Dictionary`2" /> class that contains elements copied from the specified <see cref="T:System.Collections.Generic.IEnumerable`1" />.</summary>
336336
<remarks>To be added.</remarks>
337+
<exception cref="ArgumentException"><paramref name="collection" /> contains one or more duplicated keys.</exception>
337338
</Docs>
338339
</Member>
339340
<Member MemberName=".ctor">
@@ -571,6 +572,7 @@
571572
<param name="comparer">The <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> implementation to use when comparing keys, or <see langword="null" /> to use the default <see cref="T:System.Collections.Generic.EqualityComparer`1" /> for the type of the key.</param>
572573
<summary>Initializes a new instance of the <see cref="T:System.Collections.Generic.Dictionary`2" /> class that contains elements copied from the specified <see cref="T:System.Collections.Generic.IEnumerable`1" /> and uses the specified <see cref="T:System.Collections.Generic.IEqualityComparer`1" />.</summary>
573574
<remarks>To be added.</remarks>
575+
<exception cref="ArgumentException"><paramref name="collection" /> contains one or more duplicated keys.</exception>
574576
</Docs>
575577
</Member>
576578
<Member MemberName=".ctor">
@@ -1512,6 +1514,7 @@
15121514
<returns>
15131515
<see langword="true" /> if the element is successfully found and removed; otherwise, <see langword="false" />.</returns>
15141516
<remarks>To be added.</remarks>
1517+
<exception cref="ArgumentNullException"><paramref name="key" /> is <see langword="null" />.</exception>
15151518
</Docs>
15161519
</Member>
15171520
<Member MemberName="System.Collections.Generic.ICollection&lt;System.Collections.Generic.KeyValuePair&lt;TKey,TValue&gt;&gt;.Add">

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,7 @@ finally {
13381338
<returns>
13391339
<see langword="true" /> if the object is successfully removed; <see langword="false" /> if the <see cref="T:System.Collections.Generic.Queue`1" /> is empty.</returns>
13401340
<remarks>To be added.</remarks>
1341+
<exception cref="ArgumentNullException"><paramref name="key" /> is <see langword="null" />.</exception>
13411342
</Docs>
13421343
</Member>
13431344
<Member MemberName="TryPeek">

xml/System.Collections/BitArray.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ The current <xref:System.Collections.BitArray> is updated and returned.
971971
972972
]]></format>
973973
</remarks>
974+
<exception cref="ArgumentOutOfRangeException"><paramref name="count" /> is less than zero.</exception>
974975
</Docs>
975976
</Member>
976977
<Member MemberName="Length">
@@ -1185,6 +1186,7 @@ The current <xref:System.Collections.BitArray> is updated and returned.
11851186
11861187
]]></format>
11871188
</remarks>
1189+
<exception cref="ArgumentOutOfRangeException"><paramref name="count" /> is less than zero.</exception>
11881190
</Docs>
11891191
</Member>
11901192
<Member MemberName="Set">

0 commit comments

Comments
 (0)