Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa51dac

Browse files
ts2dogewarren
authored andcommitted
OverflowException in ConcurrentDictionary<,> (dotnet#3705)
I removed the incorrect explanation of OverflowException thrown by ConcurrentDictionary<,> members. I replaced it with the explanation which is found in ConcurrentDictionary.cs.
1 parent 617a966 commit fa51dac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xml/System.Collections.Concurrent/ConcurrentDictionary`2.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@
490490
</remarks>
491491
<exception cref="T:System.ArgumentNullException">
492492
<paramref name="key" />, <paramref name="addValueFactory" />, or <paramref name="updateValueFactory" /> is <see langword="null" />.</exception>
493-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
493+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
494494
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
495495
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
496496
</Docs>
@@ -550,7 +550,7 @@
550550
</remarks>
551551
<exception cref="T:System.ArgumentNullException">
552552
<paramref name="key" /> or <paramref name="updateValueFactory" /> is <see langword="null" />.</exception>
553-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
553+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
554554
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
555555
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
556556
</Docs>
@@ -741,7 +741,7 @@
741741
742742
]]></format>
743743
</remarks>
744-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
744+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
745745
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
746746
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
747747
</Docs>
@@ -885,7 +885,7 @@
885885
</remarks>
886886
<exception cref="T:System.ArgumentNullException">
887887
<paramref name="key" /> or <paramref name="valueFactory" /> is <see langword="null" />.</exception>
888-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
888+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
889889
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
890890
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
891891
</Docs>
@@ -930,7 +930,7 @@
930930
<remarks>To be added.</remarks>
931931
<exception cref="T:System.ArgumentNullException">
932932
<paramref name="key" /> is <see langword="null" />.</exception>
933-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
933+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
934934
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
935935
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
936936
</Docs>
@@ -1368,7 +1368,7 @@
13681368
<exception cref="T:System.ArgumentNullException">
13691369
<paramref name="key" /> is <see langword="null" />.</exception>
13701370
<exception cref="T:System.ArgumentException">An element with the same key already exists in the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />.</exception>
1371-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
1371+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
13721372
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
13731373
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
13741374
</Docs>
@@ -1673,7 +1673,7 @@
16731673
-or-
16741674

16751675
A value with the same key already exists in the <see cref="T:System.Collections.Generic.Dictionary`2" />.</exception>
1676-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
1676+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
16771677
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
16781678
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
16791679
</Docs>
@@ -2148,7 +2148,7 @@
21482148
</remarks>
21492149
<exception cref="T:System.ArgumentNullException">
21502150
<paramref name="key" /> is <see langword="null" />.</exception>
2151-
<exception cref="T:System.OverflowException">The dictionary already contains the maximum number of elements (<see cref="F:System.Int32.MaxValue" />).</exception>
2151+
<exception cref="T:System.OverflowException">The dictionary contains too many elements.</exception>
21522152
<related type="Article" href="https://msdn.microsoft.com/library/2e7ca21f-786c-4367-96be-0cf3f3dcc6bd">Thread-Safe Collections</related>
21532153
<related type="Article" href="https://msdn.microsoft.com/library/81b64b95-13f7-4532-9249-ab532f629598">How to: Add and Remove Items from a ConcurrentDictionary</related>
21542154
</Docs>

0 commit comments

Comments
 (0)