1082 references to ThrowIfNegative
Microsoft.AspNetCore.Components.Server (2)
src\Shared\PooledArrayBufferWriter.cs (2)
116
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
146
ArgumentOutOfRangeException.
ThrowIfNegative
(sizeHint);
Microsoft.AspNetCore.Http.Connections (4)
HttpConnectionDispatcherOptions.cs (2)
71
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
88
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (2)
82
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
97
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
114
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
156
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
34
ArgumentOutOfRangeException.
ThrowIfNegative
(maxRedirects);
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Buffers\ViewBufferTextWriter.cs (3)
84
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
85
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
188
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
src\Shared\PooledArrayBufferWriter.cs (2)
116
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
146
ArgumentOutOfRangeException.
ThrowIfNegative
(sizeHint);
Microsoft.AspNetCore.OutputCaching (5)
FormatterBinaryReader.cs (4)
133
ArgumentOutOfRangeException.
ThrowIfNegative
(bytes);
150
ArgumentOutOfRangeException.
ThrowIfNegative
(bytes);
160
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
177
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
RecyclableArrayBufferWriter.cs (1)
82
ArgumentOutOfRangeException.
ThrowIfNegative
(sizeHint);
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
258
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
Microsoft.AspNetCore.Routing (1)
Template\RouteTemplate.cs (1)
104
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (2)
82
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
97
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
Microsoft.AspNetCore.WebUtilities (5)
FileBufferingWriteStream.cs (1)
44
ArgumentOutOfRangeException.
ThrowIfNegative
(memoryThreshold);
HttpRequestStreamReader.cs (2)
156
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
217
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (2)
82
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
97
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
Microsoft.Extensions.Features (2)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (2)
82
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
97
ArgumentOutOfRangeException.
ThrowIfNegative
(value, paramName);
Microsoft.Net.Http.Headers (3)
ContentRangeHeaderValue.cs (3)
37
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
67
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
82
ArgumentOutOfRangeException.
ThrowIfNegative
(to);
PresentationCore (134)
MS\Internal\FontCache\FontCacheUtil.cs (1)
63
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
740
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
MS\Internal\FontFace\FontDriver.cs (1)
171
ArgumentOutOfRangeException.
ThrowIfNegative
(faceIndex);
MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
205
ArgumentOutOfRangeException.
ThrowIfNegative
(tokenIndex);
MS\Internal\FontFace\TypefaceCollection.cs (1)
82
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (6)
380
ArgumentOutOfRangeException.
ThrowIfNegative
(bitCount);
428
ArgumentOutOfRangeException.
ThrowIfNegative
(bitCount);
429
ArgumentOutOfRangeException.
ThrowIfNegative
(unitsToEncode);
516
ArgumentOutOfRangeException.
ThrowIfNegative
(bitCount);
588
ArgumentOutOfRangeException.
ThrowIfNegative
(bitCount);
589
ArgumentOutOfRangeException.
ThrowIfNegative
(unitsToDecode);
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
284
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
MS\Internal\PartialArray.cs (1)
148
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
MS\Internal\TextFormatting\TextFormatterImp.cs (4)
481
ArgumentOutOfRangeException.
ThrowIfNegative
(paragraphWidth);
487
ArgumentOutOfRangeException.
ThrowIfNegative
(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize, "paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize");
491
ArgumentOutOfRangeException.
ThrowIfNegative
(paragraphProperties.DefaultIncrementalTab, "paragraphProperties.DefaultIncrementalTab");
508
ArgumentOutOfRangeException.
ThrowIfNegative
(characterHit.TrailingLength, nameof(cchLength));
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
190
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
133
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (3)
403
ArgumentOutOfRangeException.
ThrowIfNegative
(characterOffset);
460
ArgumentOutOfRangeException.
ThrowIfNegative
(characterOffset);
463
ArgumentOutOfRangeException.
ThrowIfNegative
(characterLength);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
48
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PartialList.cs (1)
154
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
66
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\IO\Packaging\PackWebRequest.cs (1)
405
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Windows\FreezableCollection.cs (2)
394
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
504
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Generated\TextDecorationCollection.cs (2)
295
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
405
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\InterOp\D3DImage.cs (2)
71
ArgumentOutOfRangeException.
ThrowIfNegative
(dpiX);
72
ArgumentOutOfRangeException.
ThrowIfNegative
(dpiY);
System\Windows\Media\Animation\Generated\KeyFrames.cs (21)
144
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
285
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
426
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
567
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
708
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
849
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
990
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1131
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1272
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1413
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1554
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1695
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1836
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
1977
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2118
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2259
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2400
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2541
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2682
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2823
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
2964
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (2)
305
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
415
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\CharacterMetricsDictionary.cs (2)
136
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
193
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
125
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
159
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (2)
301
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
411
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\FamilyMapCollection.cs (2)
271
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
364
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\FamilyTypefaceCollection.cs (2)
250
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
357
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Fonts.cs (1)
335
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Windows\Media\FormattedText.cs (3)
306
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
1274
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
1297
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Windows\Media\Generated\DoubleCollection.cs (2)
254
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
377
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\DrawingCollection.cs (2)
317
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
427
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\GeneralTransformCollection.cs (2)
303
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
413
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\GeometryCollection.cs (2)
317
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
427
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\GradientStopCollection.cs (2)
303
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
413
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\Int32Collection.cs (2)
254
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
377
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\PathFigureCollection.cs (2)
304
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
414
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\PathSegmentCollection.cs (2)
303
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
413
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\PointCollection.cs (2)
254
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
377
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\TextEffectCollection.cs (2)
303
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
413
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\TransformCollection.cs (2)
317
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
427
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\Generated\VectorCollection.cs (2)
254
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
377
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media\GlyphRun.cs (1)
457
ArgumentOutOfRangeException.
ThrowIfNegative
(renderingEmSize);
System\Windows\Media\GlyphTypeface.cs (2)
1832
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
1917
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (3)
66
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
282
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
301
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Windows\Media\Imaging\WriteableBitmap.cs (7)
515
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
835
ArgumentOutOfRangeException.
ThrowIfNegative
(sourceRect.X, nameof(sourceRect));
836
ArgumentOutOfRangeException.
ThrowIfNegative
(sourceRect.Y, nameof(sourceRect));
837
ArgumentOutOfRangeException.
ThrowIfNegative
(sourceRect.Width, nameof(sourceRect));
838
ArgumentOutOfRangeException.
ThrowIfNegative
(sourceRect.Height, nameof(sourceRect));
844
ArgumentOutOfRangeException.
ThrowIfNegative
(destinationX);
845
ArgumentOutOfRangeException.
ThrowIfNegative
(destinationY);
System\Windows\Media\TextEffect.cs (1)
54
ArgumentOutOfRangeException.
ThrowIfNegative
(positionCount);
System\Windows\Media\textformatting\CharacterBufferReference.cs (1)
87
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetToFirstChar);
System\Windows\Media\textformatting\CharacterString.cs (1)
98
ArgumentOutOfRangeException.
ThrowIfNegative
(characterLength);
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
188
ArgumentOutOfRangeException.
ThrowIfNegative
(maxLineWidth);
System\Windows\Media\VisualCollection.cs (8)
197
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
220
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
340
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
349
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
708
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
758
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
789
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
790
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (2)
299
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
409
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media3D\Generated\MaterialCollection.cs (2)
313
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
423
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media3D\Generated\Model3DCollection.cs (2)
313
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
423
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media3D\Generated\Point3DCollection.cs (2)
250
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
373
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media3D\Generated\Transform3DCollection.cs (2)
313
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
423
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media3D\Generated\Vector3DCollection.cs (2)
250
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
373
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Media3D\Visual3DCollection.cs (4)
108
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
151
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
167
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
262
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
PresentationFramework (57)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
420
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
MS\Internal\Annotations\ObservableDictionary.cs (1)
192
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
MS\Internal\Data\CollectionViewProxy.cs (1)
354
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
MS\Internal\Data\CompositeCollectionView.cs (1)
201
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
MS\Internal\Data\IndexedEnumerable.cs (1)
221
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
MS\Internal\Data\RBTree.cs (2)
578
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
631
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
MS\Internal\Documents\PageCache.cs (3)
699
ArgumentOutOfRangeException.
ThrowIfNegative
(start);
758
ArgumentOutOfRangeException.
ThrowIfNegative
(start);
794
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
MS\Internal\Documents\RowCache.cs (7)
246
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
260
ArgumentOutOfRangeException.
ThrowIfNegative
(pageNumber);
274
ArgumentOutOfRangeException.
ThrowIfNegative
(pageNumber);
304
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
506
ArgumentOutOfRangeException.
ThrowIfNegative
(pivotPage);
645
ArgumentOutOfRangeException.
ThrowIfNegative
(pivotPage);
800
ArgumentOutOfRangeException.
ThrowIfNegative
(startPage);
MS\Internal\WeakDictionary.cs (1)
295
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
MS\Internal\WeakHashSet.cs (1)
42
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
91
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
206
ArgumentOutOfRangeException.
ThrowIfNegative
(row);
208
ArgumentOutOfRangeException.
ThrowIfNegative
(column);
System\Windows\Automation\Peers\GridViewColumnHeaderAutomationPeer.cs (2)
93
ArgumentOutOfRangeException.
ThrowIfNegative
(width);
94
ArgumentOutOfRangeException.
ThrowIfNegative
(height);
System\Windows\Automation\Peers\TableAutomationPeer.cs (2)
128
ArgumentOutOfRangeException.
ThrowIfNegative
(row);
130
ArgumentOutOfRangeException.
ThrowIfNegative
(column);
System\Windows\Controls\DataGridCellsPanel.cs (1)
2153
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Controls\GridViewColumnCollection.cs (2)
356
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
424
ArgumentOutOfRangeException.
ThrowIfNegative
(index, indexName);
System\Windows\Controls\ItemCollection.cs (3)
300
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
343
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
535
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Controls\MultipleCopiesCollection.cs (1)
285
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Controls\PasswordBox.cs (2)
1080
ArgumentOutOfRangeException.
ThrowIfNegative
(start);
1081
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
System\Windows\Controls\TextBox.cs (12)
157
ArgumentOutOfRangeException.
ThrowIfNegative
(start);
158
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
241
ArgumentOutOfRangeException.
ThrowIfNegative
(lineIndex);
265
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
296
ArgumentOutOfRangeException.
ThrowIfNegative
(lineIndex);
372
ArgumentOutOfRangeException.
ThrowIfNegative
(lineIndex);
400
ArgumentOutOfRangeException.
ThrowIfNegative
(lineIndex);
437
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
481
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
552
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
808
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
849
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
386
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
1696
ArgumentOutOfRangeException.
ThrowIfNegative
(itemIndex);
System\Windows\Data\CollectionView.cs (1)
665
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Windows\Documents\TextElementCollection.cs (1)
608
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Windows\Markup\Baml2006\SharedStream.cs (3)
52
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
54
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
169
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
285
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Windows\Media\Animation\Generated\KeyFrames.cs (1)
143
ArgumentOutOfRangeException.
ThrowIfNegative
(keyFrameProgress);
System\Windows\StyleHelper.cs (1)
5445
ArgumentOutOfRangeException.
ThrowIfNegative
(childIndex);
System.Collections (20)
System\Collections\BitArray.cs (5)
45
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
604
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
668
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
720
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
752
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Generic\LinkedList.cs (2)
198
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
461
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Generic\PriorityQueue.cs (2)
116
ArgumentOutOfRangeException.
ThrowIfNegative
(initialCapacity);
578
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
System\Collections\Generic\SortedDictionary.cs (4)
546
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
570
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
707
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
731
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Generic\SortedList.cs (1)
90
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
System\Collections\Generic\SortedSet.cs (3)
517
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
519
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
554
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Generic\Stack.cs (3)
44
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
181
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
303
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
System.Collections.Concurrent (6)
System\Collections\Concurrent\ConcurrentBag.cs (1)
280
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Concurrent\ConcurrentDictionary.cs (3)
170
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
710
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1846
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Concurrent\ConcurrentStack.cs (2)
394
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
398
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
System.Collections.NonGeneric (6)
System\Collections\Queue.cs (2)
54
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
134
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\SortedList.cs (2)
97
ArgumentOutOfRangeException.
ThrowIfNegative
(initialCapacity);
340
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Collections\Stack.cs (2)
43
ArgumentOutOfRangeException.
ThrowIfNegative
(initialCapacity);
120
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.Collections.Specialized (8)
System\Collections\Specialized\ListDictionary.cs (2)
208
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
366
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
380
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
604
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Specialized\NameValueCollection.cs (1)
205
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Specialized\OrderedDictionary.cs (3)
317
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
334
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
560
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\Schema\ColumnAttribute.cs (1)
48
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\ContextStack.cs (1)
52
ArgumentOutOfRangeException.
ThrowIfNegative
(level);
System.Console (7)
System\Console.cs (3)
652
ArgumentOutOfRangeException.
ThrowIfNegative
(bufferSize);
664
ArgumentOutOfRangeException.
ThrowIfNegative
(bufferSize);
676
ArgumentOutOfRangeException.
ThrowIfNegative
(bufferSize);
System\IO\SyncTextReader.cs (4)
122
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
123
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
134
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
135
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Data.Common (35)
System\Data\SQLTypes\SQLBytes.cs (14)
194
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
254
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
290
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
305
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
308
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetInBuffer);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
347
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
376
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
380
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetInBuffer);
383
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
675
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
694
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
701
ArgumentOutOfRangeException.
ThrowIfNegative
(lPosition, nameof(offset));
708
ArgumentOutOfRangeException.
ThrowIfNegative
(lPosition, nameof(offset));
System\Data\SQLTypes\SQLChars.cs (13)
195
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
259
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
298
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
301
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetInBuffer);
303
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
346
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
351
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetInBuffer);
354
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
598
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
649
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
651
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
665
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
667
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Data\SQLTypes\SqlXml.cs (8)
347
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
366
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
373
ArgumentOutOfRangeException.
ThrowIfNegative
(lPosition, nameof(offset));
380
ArgumentOutOfRangeException.
ThrowIfNegative
(lPosition, nameof(offset));
398
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
400
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
434
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
436
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Formats.Tar (3)
System\Formats\Tar\PosixTarEntry.cs (2)
64
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
87
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Formats\Tar\SeekableSubReadStream.cs (1)
37
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System.IO.Compression.Brotli (1)
System\IO\Compression\enc\BrotliEncoder.cs (1)
112
ArgumentOutOfRangeException.
ThrowIfNegative
(inputSize);
System.IO.MemoryMappedFiles (3)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (2)
399
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
433
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
System\IO\MemoryMappedFiles\MemoryMappedViewStream.cs (1)
27
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System.IO.Pipes (4)
System\IO\Pipes\NamedPipeServerStream.cs (2)
108
ArgumentOutOfRangeException.
ThrowIfNegative
(inBufferSize);
109
ArgumentOutOfRangeException.
ThrowIfNegative
(outBufferSize);
System\IO\Pipes\PipeStream.cs (2)
37
ArgumentOutOfRangeException.
ThrowIfNegative
(bufferSize);
52
ArgumentOutOfRangeException.
ThrowIfNegative
(outBufferSize);
System.Linq (2)
System\Linq\Lookup.cs (2)
269
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
317
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System.Linq.Expressions (6)
System\Dynamic\Utils\ContractUtils.cs (2)
141
ArgumentOutOfRangeException.
ThrowIfNegative
(count, countName);
142
ArgumentOutOfRangeException.
ThrowIfNegative
(offset, offsetName);
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (4)
39
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
148
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
382
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
383
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Linq.Parallel (2)
System\Linq\ParallelEnumerable.cs (2)
439
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
5910
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.Net.Http (20)
System\Net\Http\ByteArrayContent.cs (2)
29
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
32
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
110
ArgumentOutOfRangeException.
ThrowIfNegative
(value.GetValueOrDefault());
System\Net\Http\Headers\ContentRangeHeaderValue.cs (6)
41
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
42
ArgumentOutOfRangeException.
ThrowIfNegative
(to);
44
ArgumentOutOfRangeException.
ThrowIfNegative
(from);
57
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
68
ArgumentOutOfRangeException.
ThrowIfNegative
(to);
69
ArgumentOutOfRangeException.
ThrowIfNegative
(from);
System\Net\Http\Headers\HeaderUtilities.cs (1)
43
ArgumentOutOfRangeException.
ThrowIfNegative
(d);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
86
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Net\Http\Headers\RangeItemHeaderValue.cs (2)
29
ArgumentOutOfRangeException.
ThrowIfNegative
(from.GetValueOrDefault(), nameof(from));
33
ArgumentOutOfRangeException.
ThrowIfNegative
(to.GetValueOrDefault(), nameof(to));
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
33
ArgumentOutOfRangeException.
ThrowIfNegative
(quality);
System\Net\Http\Headers\WarningHeaderValue.cs (1)
279
ArgumentOutOfRangeException.
ThrowIfNegative
(code);
System\Net\Http\HttpClientHandler.cs (1)
231
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\Http\HttpResponseMessage.cs (2)
70
ArgumentOutOfRangeException.
ThrowIfNegative
((int)value, nameof(value));
154
ArgumentOutOfRangeException.
ThrowIfNegative
((int)statusCode, nameof(statusCode));
System\Net\Http\MultipartContent.cs (1)
570
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
162
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System.Net.HttpListener (5)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
141
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
144
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Net\HttpListenerResponse.cs (1)
95
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\Managed\HttpListenerTimeoutManager.Managed.cs (2)
67
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
87
ArgumentOutOfRangeException.
ThrowIfNegative
(timeoutValue, nameof(value));
System.Net.Mail (3)
System\Net\Mail\SmtpClient.cs (2)
84
ArgumentOutOfRangeException.
ThrowIfNegative
(port);
256
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\Mime\QuotedPrintableStream.cs (1)
71
ArgumentOutOfRangeException.
ThrowIfNegative
(lineLength);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
55
ArgumentOutOfRangeException.
ThrowIfNegative
(timeout);
System.Net.Primitives (5)
System\Net\Cookie.cs (1)
691
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\CookieCollection.cs (1)
39
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Net\CredentialCache.cs (2)
53
ArgumentOutOfRangeException.
ThrowIfNegative
(port);
149
ArgumentOutOfRangeException.
ThrowIfNegative
(port);
System\Net\IPAddress.cs (1)
393
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System.Net.Requests (5)
System\Net\FileWebRequest.cs (1)
65
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\FtpWebRequest.cs (1)
419
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\HttpWebRequest.cs (1)
336
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\ServicePoint\ServicePointManager.cs (1)
56
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\TimerThread.cs (1)
115
ArgumentOutOfRangeException.
ThrowIfNegative
(durationMilliseconds);
System.Net.Sockets (17)
System\Net\Sockets\MulticastOption.cs (4)
28
ArgumentOutOfRangeException.
ThrowIfNegative
(interfaceIndex);
72
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
93
ArgumentOutOfRangeException.
ThrowIfNegative
(ifindex);
127
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Net\Sockets\SendPacketsElement.cs (4)
33
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
34
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
57
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
58
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Net\Sockets\Socket.cs (4)
512
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
527
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
616
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
2599
ArgumentOutOfRangeException.
ThrowIfNegative
(receiveSize);
System\Net\Sockets\SocketPal.Unix.cs (1)
1879
ArgumentOutOfRangeException.
ThrowIfNegative
(arrEndOffset);
System\Net\Sockets\TCPListener.cs (1)
137
ArgumentOutOfRangeException.
ThrowIfNegative
(backlog);
System\Net\Sockets\UDPClient.cs (3)
315
ArgumentOutOfRangeException.
ThrowIfNegative
(bytes);
434
ArgumentOutOfRangeException.
ThrowIfNegative
(ifindex);
503
ArgumentOutOfRangeException.
ThrowIfNegative
(ifindex);
System.Net.WebSockets (3)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
141
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
144
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Net\WebSockets\WebSocketReceiveResult.cs (1)
21
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Net.WebSockets.Client (2)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
141
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
144
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.ObjectModel (3)
System\Collections\CollectionHelpers.cs (1)
24
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
216
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
237
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.Private.CoreLib (398)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
783
ArgumentOutOfRangeException.
ThrowIfNegative
(groupSizeCount | bufferSize, string.Empty); // If we overflow
src\libraries\System.Private.CoreLib\src\System\Array.cs (7)
78
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
92
ArgumentOutOfRangeException.
ThrowIfNegative
(length1);
93
ArgumentOutOfRangeException.
ThrowIfNegative
(length2);
108
ArgumentOutOfRangeException.
ThrowIfNegative
(length1);
109
ArgumentOutOfRangeException.
ThrowIfNegative
(length2);
110
ArgumentOutOfRangeException.
ThrowIfNegative
(length3);
210
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (1)
794
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (3)
41
ArgumentOutOfRangeException.
ThrowIfNegative
(srcOffset);
42
ArgumentOutOfRangeException.
ThrowIfNegative
(dstOffset);
43
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
58
ArgumentOutOfRangeException.
ThrowIfNegative
(minimumLength);
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
107
ArgumentOutOfRangeException.
ThrowIfNegative
(minimumLength);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (51)
192
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
193
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
327
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
328
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
470
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
471
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
531
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
532
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
553
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
577
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
578
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
605
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
606
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
636
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
637
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
762
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
763
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
822
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
823
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
824
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
844
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
845
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
968
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
969
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
986
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
987
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1025
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1026
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1034
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1035
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1810
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1811
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2064
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2065
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2216
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2217
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2283
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2297
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2298
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2330
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2331
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2341
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2342
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2363
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
2433
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
2454
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2455
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2472
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2473
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2495
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2496
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
866
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
867
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (3)
41
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
369
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
385
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (4)
263
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
578
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
1195
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
1230
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
155
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
309
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
24
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (11)
2336
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
2337
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
2390
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
2391
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetIn);
2392
ArgumentOutOfRangeException.
ThrowIfNegative
(offsetOut);
2797
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
2798
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
3058
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
3059
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
3135
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
3136
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (4)
55
ArgumentOutOfRangeException.
ThrowIfNegative
(skipFrames);
67
ArgumentOutOfRangeException.
ThrowIfNegative
(skipFrames);
100
ArgumentOutOfRangeException.
ThrowIfNegative
(skipFrames);
113
ArgumentOutOfRangeException.
ThrowIfNegative
(skipFrames);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (2)
59
ArgumentOutOfRangeException.
ThrowIfNegative
(id);
74
ArgumentOutOfRangeException.
ThrowIfNegative
(task);
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
677
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (4)
384
ArgumentOutOfRangeException.
ThrowIfNegative
(length1);
385
ArgumentOutOfRangeException.
ThrowIfNegative
(length2);
387
ArgumentOutOfRangeException.
ThrowIfNegative
(offset1);
388
ArgumentOutOfRangeException.
ThrowIfNegative
(offset2);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
206
ArgumentOutOfRangeException.
ThrowIfNegative
(culture);
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
678
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
438
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (1)
519
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (2)
392
ArgumentOutOfRangeException.
ThrowIfNegative
(index, nameof(gregorianYear));
872
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
449
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (4)
70
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
71
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
117
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
118
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
342
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
178
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
420
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
159
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
628
ArgumentOutOfRangeException.
ThrowIfNegative
(year);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (7)
298
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
299
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
395
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
417
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
418
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
436
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
482
ArgumentOutOfRangeException.
ThrowIfNegative
(numBytes);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (2)
233
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
234
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
91
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (2)
104
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
119
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (4)
46
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
85
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
86
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (8)
352
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
353
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
431
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
432
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1053
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1054
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1264
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1265
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (6)
375
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
376
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
735
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
736
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
887
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
888
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (6)
90
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
91
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
291
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
292
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
309
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (2)
92
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
93
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (10)
74
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
75
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
264
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
265
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
294
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
295
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
394
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
395
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
407
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
408
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
148
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
149
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (12)
44
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
45
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
283
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
317
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
318
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
331
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
512
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
543
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
544
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
549
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
577
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
601
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (6)
84
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
85
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
155
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
156
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
285
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
571
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (2)
632
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
635
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
75
ArgumentOutOfRangeException.
ThrowIfNegative
(maxValue);
120
ArgumentOutOfRangeException.
ThrowIfNegative
(maxValue);
277
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
394
ArgumentOutOfRangeException.
ThrowIfNegative
(maxValue);
422
ArgumentOutOfRangeException.
ThrowIfNegative
(maxValue);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (1)
36
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (5)
46
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
64
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
83
ArgumentOutOfRangeException.
ThrowIfNegative
(byteLen);
281
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
282
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (4)
220
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
221
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
307
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
308
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
29
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
383
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
475
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\String.cs (13)
101
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
102
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
153
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
154
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
205
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
206
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
264
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
265
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
294
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
416
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
417
ArgumentOutOfRangeException.
ThrowIfNegative
(sourceIndex);
420
ArgumentOutOfRangeException.
ThrowIfNegative
(destinationIndex);
485
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (10)
763
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
764
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1114
ArgumentOutOfRangeException.
ThrowIfNegative
(totalWidth);
1132
ArgumentOutOfRangeException.
ThrowIfNegative
(totalWidth);
1148
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
1149
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1696
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1758
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
2268
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
2275
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
839
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
857
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (9)
100
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
163
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
164
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
225
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
226
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
227
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
228
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
276
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
277
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (13)
53
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
54
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
69
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
92
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
93
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
119
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
120
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
140
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
141
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
143
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
144
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
174
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
175
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (9)
98
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
161
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
162
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
222
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
223
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
225
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
226
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
275
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
276
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (13)
48
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
49
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
68
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
82
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
83
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
109
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
110
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
127
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
128
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
130
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
131
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
161
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
162
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (13)
132
ArgumentOutOfRangeException.
ThrowIfNegative
(codePage);
147
ArgumentOutOfRangeException.
ThrowIfNegative
(codePage);
553
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
554
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
574
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
641
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
642
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
699
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
700
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
776
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
848
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
849
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
908
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
154
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (24)
119
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
120
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
121
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
155
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
269
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
304
ArgumentOutOfRangeException.
ThrowIfNegative
(capacity);
359
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
364
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
391
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
655
ArgumentOutOfRangeException.
ThrowIfNegative
(repeatCount);
721
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
722
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
768
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
769
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
804
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
805
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
873
ArgumentOutOfRangeException.
ThrowIfNegative
(destinationIndex);
885
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
936
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
977
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
978
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
1360
ArgumentOutOfRangeException.
ThrowIfNegative
(startIndex);
1361
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
2259
ArgumentOutOfRangeException.
ThrowIfNegative
(valueCount);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (20)
89
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
90
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
129
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
146
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
147
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
181
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
182
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
212
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
213
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
230
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
231
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
254
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
270
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
271
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
301
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
302
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
319
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
320
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1754
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
1773
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (20)
97
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
98
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
137
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
154
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
155
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
189
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
190
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
220
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
221
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
238
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
239
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
262
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
278
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
279
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
309
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
327
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
328
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1061
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
1080
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (20)
133
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
134
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
173
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
190
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
191
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
225
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
226
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
256
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
257
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
274
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
275
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
298
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
314
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
315
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
345
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
346
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
363
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
364
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
717
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
746
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (2)
796
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
827
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
177
ArgumentOutOfRangeException.
ThrowIfNegative
(spinCount);
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
24
ArgumentOutOfRangeException.
ThrowIfNegative
(initialCount);
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (2)
124
ArgumentOutOfRangeException.
ThrowIfNegative
(maxStackSize);
144
ArgumentOutOfRangeException.
ThrowIfNegative
(maxStackSize);
src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
371
ArgumentOutOfRangeException.
ThrowIfNegative
(genericParameterCount);
649
ArgumentOutOfRangeException.
ThrowIfNegative
(position);
src\libraries\System.Private.CoreLib\src\System\Version.cs (10)
32
ArgumentOutOfRangeException.
ThrowIfNegative
(major);
33
ArgumentOutOfRangeException.
ThrowIfNegative
(minor);
34
ArgumentOutOfRangeException.
ThrowIfNegative
(build);
35
ArgumentOutOfRangeException.
ThrowIfNegative
(revision);
45
ArgumentOutOfRangeException.
ThrowIfNegative
(major);
46
ArgumentOutOfRangeException.
ThrowIfNegative
(minor);
47
ArgumentOutOfRangeException.
ThrowIfNegative
(build);
57
ArgumentOutOfRangeException.
ThrowIfNegative
(major);
58
ArgumentOutOfRangeException.
ThrowIfNegative
(minor);
383
ArgumentOutOfRangeException.
ThrowIfNegative
(parsedComponent, componentName);
src\System\Array.CoreCLR.cs (3)
48
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
52
ArgumentOutOfRangeException.
ThrowIfNegative
(sourceIndex - srcLB, nameof(sourceIndex));
57
ArgumentOutOfRangeException.
ThrowIfNegative
(destinationIndex - dstLB, nameof(destinationIndex));
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
43
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
src\System\GC.CoreCLR.cs (2)
193
ArgumentOutOfRangeException.
ThrowIfNegative
(generation);
241
ArgumentOutOfRangeException.
ThrowIfNegative
(generation);
src\System\Reflection\Emit\DynamicILGenerator.cs (3)
905
ArgumentOutOfRangeException.
ThrowIfNegative
(codeSize);
921
ArgumentOutOfRangeException.
ThrowIfNegative
(exceptionsSize);
937
ArgumentOutOfRangeException.
ThrowIfNegative
(signatureSize);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
364
ArgumentOutOfRangeException.
ThrowIfNegative
(size);
System.Private.DataContractSerialization (90)
System\Runtime\Serialization\DataContractSerializer.cs (1)
137
ArgumentOutOfRangeException.
ThrowIfNegative
(maxItemsInObjectGraph);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
602
ArgumentOutOfRangeException.
ThrowIfNegative
(maxItemsInObjectGraph);
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
720
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
725
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
742
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
747
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
779
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
784
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
820
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
825
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (8)
361
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
362
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
377
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
378
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
403
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
404
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
692
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
693
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Text\Base64Encoding.cs (15)
31
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
53
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
56
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
104
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
108
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
113
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
177
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
181
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
186
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
260
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
263
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
269
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
344
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
347
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
353
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
System\Text\BinHexEncoding.cs (7)
13
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
27
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
30
ArgumentOutOfRangeException.
ThrowIfNegative
(charCount);
34
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
66
ArgumentOutOfRangeException.
ThrowIfNegative
(byteIndex);
69
ArgumentOutOfRangeException.
ThrowIfNegative
(byteCount);
74
ArgumentOutOfRangeException.
ThrowIfNegative
(charIndex);
System\Xml\UniqueId.cs (5)
69
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
98
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
101
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
204
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
284
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
System\Xml\XmlBaseReader.cs (9)
503
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1130
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1133
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1158
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1161
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1346
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1349
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1382
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1385
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlBaseWriter.cs (6)
1027
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1028
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1079
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1080
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1442
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1443
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlBinaryReader.cs (4)
48
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
51
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1229
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1232
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlBinaryWriter.cs (2)
1279
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1282
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlCanonicalWriter.cs (18)
208
ArgumentOutOfRangeException.
ThrowIfNegative
(prefixOffset);
211
ArgumentOutOfRangeException.
ThrowIfNegative
(prefixLength);
216
ArgumentOutOfRangeException.
ThrowIfNegative
(localNameOffset);
219
ArgumentOutOfRangeException.
ThrowIfNegative
(localNameLength);
384
ArgumentOutOfRangeException.
ThrowIfNegative
(prefixOffset);
387
ArgumentOutOfRangeException.
ThrowIfNegative
(prefixLength);
392
ArgumentOutOfRangeException.
ThrowIfNegative
(nsOffset);
395
ArgumentOutOfRangeException.
ThrowIfNegative
(nsLength);
435
ArgumentOutOfRangeException.
ThrowIfNegative
(prefixOffset);
438
ArgumentOutOfRangeException.
ThrowIfNegative
(prefixLength);
443
ArgumentOutOfRangeException.
ThrowIfNegative
(localNameOffset);
446
ArgumentOutOfRangeException.
ThrowIfNegative
(localNameLength);
506
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
509
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
561
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
564
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
598
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
601
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlDictionaryReader.cs (2)
1009
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
1012
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlDictionaryWriter.cs (2)
440
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
443
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\XmlUTF8TextReader.cs (2)
560
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
563
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Private.Uri (1)
System\Uri.cs (1)
1418
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.Private.Xml (94)
System\Xml\Base64Decoder.cs (4)
44
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
45
ArgumentOutOfRangeException.
ThrowIfNegative
(startPos);
63
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
64
ArgumentOutOfRangeException.
ThrowIfNegative
(startPos);
System\Xml\Base64Encoder.cs (2)
29
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
30
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
691
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
748
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
System\Xml\BinHexDecoder.cs (4)
44
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
45
ArgumentOutOfRangeException.
ThrowIfNegative
(startPos);
65
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
66
ArgumentOutOfRangeException.
ThrowIfNegative
(startPos);
System\Xml\BinHexEncoder.cs (2)
14
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
15
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\Core\ReadContentAsBinaryHelper.cs (8)
66
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
67
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
109
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
110
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
152
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
153
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
195
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
196
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Core\XmlCharCheckingReader.cs (4)
482
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
483
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
530
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
531
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Core\XmlCharCheckingWriter.cs (2)
267
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
268
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (2)
214
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
215
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\Core\XmlReader.cs (1)
581
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
System\Xml\Core\XmlSubtreeReader.cs (2)
1584
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1585
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Core\XmlTextEncoder.cs (4)
114
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
115
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
440
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
441
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
System\Xml\Core\XmlTextReaderImpl.cs (12)
1067
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
1129
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
1595
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1596
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1642
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1643
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1688
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1689
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1735
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1736
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1795
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1796
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Core\XmlTextReaderImplAsync.cs (10)
391
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
392
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
447
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
448
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
512
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
513
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
568
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
569
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
620
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
621
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Core\XmlTextWriter.cs (1)
353
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
System\Xml\Core\XmlWellFormedWriter.cs (6)
1064
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1065
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1090
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1091
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1142
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1143
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\Core\XmlWellFormedWriterAsync.cs (6)
1002
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1003
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1028
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1029
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
1080
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
1081
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Xml\Core\XsdCachingReader.cs (2)
282
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
355
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
System\Xml\Core\XsdValidatingReader.cs (2)
1166
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
1274
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
System\Xml\Dom\XmlNodeReader.cs (1)
358
ArgumentOutOfRangeException.
ThrowIfNegative
(attributeIndex);
System\Xml\NameTable.cs (1)
97
ArgumentOutOfRangeException.
ThrowIfNegative
(len);
System\Xml\Resolvers\XmlPreloadedResolver.cs (2)
295
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
296
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
System\Xml\Schema\XmlSchemaCollection.cs (2)
230
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
242
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
193
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
246
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System\Xml\Schema\XmlSchemaSet.cs (1)
668
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System\Xml\Schema\XsdDuration.cs (7)
51
ArgumentOutOfRangeException.
ThrowIfNegative
(years);
52
ArgumentOutOfRangeException.
ThrowIfNegative
(months);
53
ArgumentOutOfRangeException.
ThrowIfNegative
(days);
54
ArgumentOutOfRangeException.
ThrowIfNegative
(hours);
55
ArgumentOutOfRangeException.
ThrowIfNegative
(minutes);
56
ArgumentOutOfRangeException.
ThrowIfNegative
(seconds);
57
ArgumentOutOfRangeException.
ThrowIfNegative
(nanoseconds);
System\Xml\Xsl\XsltOld\ReaderOutput.cs (2)
265
ArgumentOutOfRangeException.
ThrowIfNegative
(i);
614
ArgumentOutOfRangeException.
ThrowIfNegative
(attrib);
System.Private.Xml.Linq (2)
System\Xml\Linq\XNodeReader.cs (2)
560
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
697
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.Reflection.Emit (1)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
150
ArgumentOutOfRangeException.
ThrowIfNegative
(iOffset);
System.Runtime.Numerics (3)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
783
ArgumentOutOfRangeException.
ThrowIfNegative
(groupSizeCount | bufferSize, string.Empty); // If we overflow
System\Numerics\BigInteger.cs (2)
963
ArgumentOutOfRangeException.
ThrowIfNegative
(exponent.Sign, nameof(exponent));
1023
ArgumentOutOfRangeException.
ThrowIfNegative
(exponent);
System.Security.Cryptography (86)
System\Security\Cryptography\DSA.cs (8)
140
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
143
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
197
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
200
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
313
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
370
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
373
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (1)
50
ArgumentOutOfRangeException.
ThrowIfNegative
(dwKeySize);
System\Security\Cryptography\ECDsa.cs (8)
54
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
57
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
111
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
114
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
730
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
733
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
790
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
793
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Security\Cryptography\HashAlgorithm.cs (2)
80
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
238
ArgumentOutOfRangeException.
ThrowIfNegative
(inputOffset);
System\Security\Cryptography\HashProvider.cs (2)
24
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
25
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Security\Cryptography\IncrementalHash.cs (2)
90
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
91
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Security\Cryptography\Kmac128.cs (7)
102
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
143
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
235
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
295
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
331
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
409
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
455
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\Kmac256.cs (7)
102
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
143
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
235
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
295
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
331
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
409
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
455
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\KmacXof128.cs (7)
102
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
143
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
235
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
295
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
331
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
409
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
455
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\KmacXof256.cs (7)
102
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
143
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
235
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
295
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
331
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
409
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
455
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\PemEncoding.cs (2)
311
ArgumentOutOfRangeException.
ThrowIfNegative
(labelLength);
312
ArgumentOutOfRangeException.
ThrowIfNegative
(dataLength);
System\Security\Cryptography\RandomNumberGenerator.cs (5)
161
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
207
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
234
ArgumentOutOfRangeException.
ThrowIfNegative
(length);
399
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
400
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (1)
79
ArgumentOutOfRangeException.
ThrowIfNegative
(saltSize);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (2)
83
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
209
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\RSA.cs (4)
388
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
391
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
651
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
654
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
24
ArgumentOutOfRangeException.
ThrowIfNegative
(dwKeySize);
System\Security\Cryptography\Shake128.cs (6)
97
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
142
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
189
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
355
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
461
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\Shake256.cs (6)
97
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
142
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
189
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
310
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
355
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
461
ArgumentOutOfRangeException.
ThrowIfNegative
(outputLength);
System\Security\Cryptography\SymmetricAlgorithm.cs (2)
315
ArgumentOutOfRangeException.
ThrowIfNegative
(plaintextLength);
396
ArgumentOutOfRangeException.
ThrowIfNegative
(plaintextLength);
System\Security\Cryptography\UniversalCryptoTransform.cs (3)
72
ArgumentOutOfRangeException.
ThrowIfNegative
(inputOffset);
94
ArgumentOutOfRangeException.
ThrowIfNegative
(inputOffset);
95
ArgumentOutOfRangeException.
ThrowIfNegative
(inputCount);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
139
ArgumentOutOfRangeException.
ThrowIfNegative
(crlNumber);
323
ArgumentOutOfRangeException.
ThrowIfNegative
(crlNumber);
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
111
ArgumentOutOfRangeException.
ThrowIfNegative
(pathLengthConstraint);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\GroupCollection.cs (1)
114
ArgumentOutOfRangeException.
ThrowIfNegative
(arrayIndex);
System.Threading (3)
System\Threading\Barrier.cs (1)
221
ArgumentOutOfRangeException.
ThrowIfNegative
(participantCount);
System\Threading\CountdownEvent.cs (2)
50
ArgumentOutOfRangeException.
ThrowIfNegative
(initialCount);
382
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Web.HttpUtility (2)
System\Web\Util\HttpEncoder.cs (2)
619
ArgumentOutOfRangeException.
ThrowIfNegative
(offset);
622
ArgumentOutOfRangeException.
ThrowIfNegative
(count);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
134
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
System.Xaml (6)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (6)
366
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
688
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
1247
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
1497
ArgumentOutOfRangeException.
ThrowIfNegative
(value);
1844
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
2219
ArgumentOutOfRangeException.
ThrowIfNegative
(index);
UIAutomationClient (1)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
405
ArgumentOutOfRangeException.
ThrowIfNegative
(milliseconds);