Skip to content

Commit 5e9a1fb

Browse files
committed
Address feedback - use tool to port exceptions
1 parent e42c4c8 commit 5e9a1fb

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,10 @@
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="System.ArgumentException"><paramref name="collection" /> contains one or more duplicated keys.</exception>
337+
<exception cref="T:System.ArgumentNullException">
338+
<paramref name="collection" /> is <see langword="null" />.</exception>
339+
<exception cref="T:System.ArgumentException">
340+
<paramref name="collection" /> contains one or more duplicated keys.</exception>
338341
</Docs>
339342
</Member>
340343
<Member MemberName=".ctor">
@@ -572,7 +575,10 @@
572575
<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>
573576
<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>
574577
<remarks>To be added.</remarks>
575-
<exception cref="System.ArgumentException"><paramref name="collection" /> contains one or more duplicated keys.</exception>
578+
<exception cref="T:System.ArgumentNullException">
579+
<paramref name="collection" /> is <see langword="null" />.</exception>
580+
<exception cref="T:System.ArgumentException">
581+
<paramref name="collection" /> contains one or more duplicated keys.</exception>
576582
</Docs>
577583
</Member>
578584
<Member MemberName=".ctor">
@@ -1514,7 +1520,8 @@
15141520
<returns>
15151521
<see langword="true" /> if the element is successfully found and removed; otherwise, <see langword="false" />.</returns>
15161522
<remarks>To be added.</remarks>
1517-
<exception cref="System.ArgumentNullException"><paramref name="key" /> is <see langword="null" />.</exception>
1523+
<exception cref="T:System.ArgumentNullException">
1524+
<paramref name="key" /> is <see langword="null" />.</exception>
15181525
</Docs>
15191526
</Member>
15201527
<Member MemberName="System.Collections.Generic.ICollection&lt;System.Collections.Generic.KeyValuePair&lt;TKey,TValue&gt;&gt;.Add">

xml/System.Collections/BitArray.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,8 @@ The current <xref:System.Collections.BitArray> is updated and returned.
971971
972972
]]></format>
973973
</remarks>
974-
<exception cref="System.ArgumentOutOfRangeException"><paramref name="count" /> is less than zero.</exception>
974+
<exception cref="T:System.ArgumentOutOfRangeException">
975+
<paramref name="count" /> is less than zero.</exception>
975976
</Docs>
976977
</Member>
977978
<Member MemberName="Length">
@@ -1186,7 +1187,8 @@ The current <xref:System.Collections.BitArray> is updated and returned.
11861187
11871188
]]></format>
11881189
</remarks>
1189-
<exception cref="System.ArgumentOutOfRangeException"><paramref name="count" /> is less than zero.</exception>
1190+
<exception cref="T:System.ArgumentOutOfRangeException">
1191+
<paramref name="count" /> is less than zero.</exception>
11901192
</Docs>
11911193
</Member>
11921194
<Member MemberName="Set">

0 commit comments

Comments
 (0)