722 references to ArgumentOutOfRangeException
illink (6)
ILLink.RoslynAnalyzer (1)
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
InMemory.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticLocation.cs (2)
22throw new ArgumentOutOfRangeException(nameof(line), "line must be >= -1"); 27throw new ArgumentOutOfRangeException(nameof(column), "column must be >= -1");
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Helpers\DiagnosticResult.cs (2)
19throw new ArgumentOutOfRangeException(nameof(line), "line must be >= -1"); 24throw new ArgumentOutOfRangeException(nameof(column), "column must be >= -1");
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Helpers\DiagnosticResult.cs (2)
19throw new ArgumentOutOfRangeException(nameof(line), "line must be >= -1"); 24throw new ArgumentOutOfRangeException(nameof(column), "column must be >= -1");
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSRuntime.cs (1)
141throw new ArgumentOutOfRangeException(nameof(data), "Exceeded the maximum byte array transfer limit for a call.");
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\BrowserFile.cs (1)
25throw new ArgumentOutOfRangeException(nameof(Size), $"Size must be a non-negative value. Value provided: {value}.");
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsPolicy.cs (1)
128throw new ArgumentOutOfRangeException(nameof(value), Resources.PreflightMaxAgeOutOfRange);
Infrastructure\CorsResult.cs (1)
70throw new ArgumentOutOfRangeException(nameof(value), Resources.PreflightMaxAgeOutOfRange);
Microsoft.AspNetCore.Cryptography.Internal (1)
Cng\BCRYPT_KEY_LENGTHS_STRUCT.cs (1)
25throw new ArgumentOutOfRangeException(nameof(keyLengthInBits), message);
Microsoft.AspNetCore.DataProtection (2)
Error.cs (1)
71return new ArgumentOutOfRangeException(paramName, Resources.Common_ValueMustBeNonNegative);
KeyManagement\KeyManagementOptions.cs (1)
134throw new ArgumentOutOfRangeException(nameof(value), Resources.KeyManagementOptions_MinNewKeyLifetimeViolated);
Microsoft.AspNetCore.Http.Abstractions (2)
HostString.cs (1)
52throw new ArgumentOutOfRangeException(nameof(port), Resources.Exception_PortMustBeGreaterThanZero);
HttpProtocol.cs (1)
121_ => throw new ArgumentOutOfRangeException(nameof(version), "Version doesn't map to a known HTTP protocol.")
Microsoft.AspNetCore.Http.Features (1)
WebSocketAcceptContext.cs (1)
65throw new ArgumentOutOfRangeException(nameof(ServerMaxWindowBits),
Microsoft.AspNetCore.HttpLogging (3)
W3CLoggerOptions.cs (3)
33throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FileSizeLimit)} must be positive."); 51throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(RetainedFileCountLimit)} must be between 1 and 10,000 (inclusive)"); 99throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FlushInterval)} must be positive.");
Microsoft.AspNetCore.HttpOverrides (2)
IPNetwork.cs (2)
30throw new ArgumentOutOfRangeException(nameof(prefixLength), "The prefix length was out of range."); 131throw new ArgumentOutOfRangeException(nameof(networkSpan), "The prefix length was out of range.");
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1185throw new ArgumentOutOfRangeException(nameof(value), "Date of death can't be before date of birth.");
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1360throw new ArgumentOutOfRangeException(nameof(value), "Date of death can't be before date of birth.");
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (2)
608throw new ArgumentOutOfRangeException(nameof(rows), Resources.HtmlHelper_TextAreaParameterOutOfRange); 613throw new ArgumentOutOfRangeException(
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheEntryFormatterTests.cs (1)
121_ => throw new ArgumentOutOfRangeException(nameof(value), "token is not hex: " + value.ToString())
Microsoft.AspNetCore.Rewrite (2)
BackReferenceCollection.cs (1)
38throw new ArgumentOutOfRangeException(null, $"Cannot access back reference at index {index}. Only {_backReferences.Count} back references were captured.");
IISUrlRewrite\ConditionCollection.cs (1)
36throw new ArgumentOutOfRangeException(null, $"Cannot access condition at index {index}. Only {_conditions.Count} conditions were captured.");
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.FeatureCollection.cs (2)
447throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 486throw new ArgumentOutOfRangeException(nameof(errorCode), "'errorCode' cannot be negative");
IISServerOptions.cs (1)
74throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Http2Limits.cs (2)
167throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.FormatArgumentTimeSpanGreaterOrEqual(Heartbeat.Interval)); 192throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.FormatArgumentTimeSpanGreaterOrEqual(Heartbeat.Interval));
HttpsConnectionAdapterOptions.cs (1)
110throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired);
Internal\Http\Http1OutputProducer.cs (2)
255throw new ArgumentOutOfRangeException(nameof(bytes), "Can't advance past buffer size."); 265throw new ArgumentOutOfRangeException(nameof(bytes), "Can't advance past buffer size.");
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
215throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
KestrelServerLimits.cs (10)
63throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 83throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberOrNullRequired); 104throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberRequired); 123throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberRequired); 142throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberRequired); 164throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 183throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired); 202throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired); 227throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveNumberOrNullRequired); 253throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
MinDataRate.cs (2)
23throw new ArgumentOutOfRangeException(nameof(bytesPerSecond), CoreStrings.PositiveNumberOrNullMinDataRateRequired); 28throw new ArgumentOutOfRangeException(nameof(gracePeriod), CoreStrings.FormatMinimumGracePeriodRequired(Heartbeat.Interval.TotalSeconds));
TlsHandshakeCallbackOptions.cs (1)
37throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (1)
100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Session (4)
DistributedSession.cs (4)
148throw new ArgumentOutOfRangeException(nameof(key), 364throw new ArgumentOutOfRangeException(nameof(num), Resources.Exception_InvalidToSerializeIn2Bytes); 379throw new ArgumentOutOfRangeException(nameof(num), Resources.Exception_InvalidToSerializeIn3Bytes); 395throw new ArgumentOutOfRangeException(nameof(num), Resources.Exception_NumberShouldNotBeNegative);
Microsoft.AspNetCore.WebUtilities (1)
FileBufferingWriteStream.cs (1)
49throw new ArgumentOutOfRangeException(nameof(bufferLimit), $"{nameof(bufferLimit)} must be larger than {nameof(memoryThreshold)}.");
Microsoft.Build (1)
Logging\BinaryLogger\Postprocessing\StreamExtensions.cs (1)
19throw new ArgumentOutOfRangeException(nameof(bytesCount), ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Binlog_StreamUtils_UnsupportedSkipOffset",
Microsoft.Build.Framework (7)
SegmentedArray.cs (6)
74throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 76throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 78throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 139throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 141throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 145throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
ThrowHelper.cs (1)
220return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
Microsoft.Extensions.Logging.AzureAppServices (7)
AzureFileLoggerOptions.cs (2)
30throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FileSizeLimit)} must be positive."); 47throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(RetainedFileCountLimit)} must be positive.");
BatchingLoggerOptions.cs (3)
27throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(FlushPeriod)} must be positive."); 45throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be non-negative."); 62throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BatchSize)} must be positive.");
BatchingLoggerProvider.cs (2)
43throw new ArgumentOutOfRangeException(nameof(loggerOptions.BatchSize), $"{nameof(loggerOptions.BatchSize)} must be a positive number."); 49throw new ArgumentOutOfRangeException(nameof(loggerOptions.FlushPeriod), $"{nameof(loggerOptions.FlushPeriod)} must be longer than zero.");
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
395throw new ArgumentOutOfRangeException(nameof(options), "No-wrapper options should have been filtered out before calling this method.");
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
Microsoft.JSInterop (1)
Implementation\JSStreamReference.cs (1)
38throw new ArgumentOutOfRangeException(nameof(maxAllowedSize), $"The incoming data stream of length {Length} exceeds the maximum allowed length {maxAllowedSize}.");
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (2)
51throw new ArgumentOutOfRangeException("major", 57throw new ArgumentOutOfRangeException("minor",
PresentationCore (25)
MS\Internal\FontFace\FontDriver.cs (1)
177throw new ArgumentOutOfRangeException("faceIndex", SR.FaceIndexValidOnlyForTTC);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
878throw new ArgumentOutOfRangeException("value", SR.InvalidDrawingAttributesHeight); 885throw new ArgumentOutOfRangeException("value", SR.InvalidDrawingAttributesWidth);
MS\Internal\IO\Packaging\NetStream.cs (1)
257throw new ArgumentOutOfRangeException("origin", SR.SeekOriginInvalid);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
67throw new ArgumentOutOfRangeException("bufferLengthInBits", SR.InvalidBufferLength);
System\Windows\Documents\DocumentPaginator.cs (1)
79throw new ArgumentOutOfRangeException("pageNumber", SR.PaginatorNegativePageNumber);
System\Windows\Ink\DrawingAttributes.cs (2)
173throw new ArgumentOutOfRangeException("Height", SR.InvalidDrawingAttributesHeight); 200throw new ArgumentOutOfRangeException("Width", SR.InvalidDrawingAttributesWidth);
System\Windows\Ink\Stroke2.cs (1)
205throw new ArgumentOutOfRangeException("diameter", SR.InvalidDiameter);
System\Windows\Ink\StrokeCollection2.cs (1)
78throw new ArgumentOutOfRangeException("diameter", SR.InvalidDiameter);
System\Windows\Input\Stylus\Common\StylusPoint.cs (7)
83throw new ArgumentOutOfRangeException("x", SR.InvalidStylusPointXYNaN); 87throw new ArgumentOutOfRangeException("y", SR.InvalidStylusPointXYNaN); 95throw new ArgumentOutOfRangeException("pressureFactor", SR.InvalidPressureValue); 177throw new ArgumentOutOfRangeException("X", SR.InvalidStylusPointXYNaN); 197throw new ArgumentOutOfRangeException("Y", SR.InvalidStylusPointXYNaN); 232throw new ArgumentOutOfRangeException("PressureFactor", SR.InvalidPressureValue); 392throw new ArgumentOutOfRangeException("value", SR.InvalidMinMaxForButton);
System\Windows\Media\Animation\KeyTime.cs (2)
40throw new ArgumentOutOfRangeException("percent", SR.Format(SR.Animation_KeyTime_InvalidPercentValue, percent)); 59throw new ArgumentOutOfRangeException("timeSpan", SR.Format(SR.Animation_KeyTime_LessThanZero, timeSpan));
System\Windows\Media\Animation\RepeatBehavior.cs (2)
53throw new ArgumentOutOfRangeException("count", SR.Format(SR.Timing_RepeatBehaviorInvalidIterationCount, count)); 70throw new ArgumentOutOfRangeException("duration", SR.Format(SR.Timing_RepeatBehaviorInvalidRepeatDuration, duration));
System\Windows\Media\FormattedText.cs (2)
1347throw new ArgumentOutOfRangeException("value", SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1350throw new ArgumentOutOfRangeException("value", SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\GlyphTypeface.cs (1)
1071throw new ArgumentOutOfRangeException("glyphIndex", SR.Format(SR.GlyphIndexOutOfRange, glyphIndex));
System\Windows\Media\VisualCollection.cs (1)
266throw new ArgumentOutOfRangeException(nameof(value), SR.VisualCollection_NotEnoughCapacity);
PresentationFramework (28)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
319throw new ArgumentOutOfRangeException("index",
MS\Internal\Documents\ContentElementCollection.cs (2)
79throw new ArgumentOutOfRangeException("index", SR.TableCollectionOutOfRangeNeedNonNegNum); 111throw new ArgumentOutOfRangeException("index", SR.TableCollectionOutOfRangeNeedNonNegNum);
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
78throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber); 151throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber);
MS\Internal\Ink\InkCanvasSelection.cs (1)
929throw new ArgumentOutOfRangeException("source", SR.InvalidDiameter);
MS\Internal\IO\Packaging\ByteStream.cs (3)
207throw new ArgumentOutOfRangeException("offset", 269throw new ArgumentOutOfRangeException("count", 276throw new ArgumentOutOfRangeException("offset",
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
129Exception e = new ArgumentOutOfRangeException(nameof(index), ErrorStrings.ArgumentOutOfRange_IndexLargerThanMaxValue);
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (2)
162throw new ArgumentOutOfRangeException("horizontalPercent", SR.Format(SR.ScrollViewer_OutOfRange, "horizontalPercent", horizontalPercent.ToString(CultureInfo.InvariantCulture), "0", "100")); 166throw new ArgumentOutOfRangeException("verticalPercent", SR.Format(SR.ScrollViewer_OutOfRange, "verticalPercent", verticalPercent.ToString(CultureInfo.InvariantCulture), "0", "100"));
System\Windows\Controls\Calendar.cs (1)
581throw new ArgumentOutOfRangeException("d", SR.Calendar_OnSelectedDateChanged_InvalidValue);
System\Windows\Controls\DataGridColumnCollection.cs (1)
71throw new ArgumentOutOfRangeException("index", SR.Format(SR.DataGrid_ColumnIndexOutOfRange, item.Header));
System\Windows\Controls\DatePicker.cs (1)
1132DatePickerDateValidationErrorEventArgs dateValidationError = new DatePickerDateValidationErrorEventArgs(new ArgumentOutOfRangeException("text", SR.Calendar_OnSelectedDateChanged_InvalidValue), text);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
695throw new ArgumentOutOfRangeException(parameterName, SR.Format(SR.ScrollViewer_CannotBeNaN, parameterName));
System\Windows\Data\CompositeCollection.cs (1)
252throw new ArgumentOutOfRangeException("removeIndex",
System\Windows\Documents\DocumentSequence.cs (3)
253throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber); 278throw new ArgumentOutOfRangeException("fixedDocPageNumber", SR.IDPNegativePageNumber); 303throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber);
System\Windows\Documents\FixedDocument.cs (2)
334throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber); 379throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber);
System\Windows\FrameworkContentElement.cs (1)
2126throw new ArgumentOutOfRangeException("value", SR.TemplateChildIndexOutOfRange);
System\Windows\FrameworkElement.cs (1)
6253throw new ArgumentOutOfRangeException("value", SR.TemplateChildIndexOutOfRange);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
364throw new ArgumentOutOfRangeException("assemblyId", SR.Format(SR.AssemblyIdOutOfSequence, assemblyId)); 389throw new ArgumentOutOfRangeException("typeId", SR.Format(SR.TypeIdOutOfSequence, typeId)); 413throw new ArgumentOutOfRangeException("propertyId", SR.Format(SR.PropertyIdOutOfSequence, propertyId)); 431throw new ArgumentOutOfRangeException("stringId", SR.Format(SR.StringIdOutOfSequence, stringId));
ReachFramework (13)
PrintConfig\DocumentNUp.cs (1)
524throw new ArgumentOutOfRangeException("value",
PrintConfig\PageCopyCount.cs (1)
93throw new ArgumentOutOfRangeException("value",
PrintConfig\PageMediaSize.cs (1)
570throw new ArgumentOutOfRangeException((mediaSizeWidth <= 0) ? "mediaSizeWidth" : "mediaSizeHeight",
PrintConfig\PageResolution.cs (2)
357throw new ArgumentOutOfRangeException("value", 384throw new ArgumentOutOfRangeException("value",
PrintConfig\PageScaling.cs (1)
532throw new ArgumentOutOfRangeException("squareScale",
PrintConfig\PrtTicket_Public_Simple.cs (7)
411throw new ArgumentOutOfRangeException("value", 809throw new ArgumentOutOfRangeException("value", 815throw new ArgumentOutOfRangeException("value", 1051throw new ArgumentOutOfRangeException("value", 1057throw new ArgumentOutOfRangeException("value", 1114throw new ArgumentOutOfRangeException("value", 1161throw new ArgumentOutOfRangeException("value",
System.Collections.Concurrent (2)
System\Collections\Concurrent\BlockingCollection.cs (1)
1666throw new ArgumentOutOfRangeException(
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
164throw new ArgumentOutOfRangeException(nameof(concurrencyLevel), SR.ConcurrentDictionary_ConcurrencyLevelMustBePositiveOrNegativeOne);
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (1)
364throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
Validation\Requires.cs (1)
105throw new ArgumentOutOfRangeException(parameterName, message);
System.Collections.NonGeneric (9)
System\Collections\CollectionBase.cs (4)
74throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 120throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 126throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 192throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
System\Collections\SortedList.cs (5)
199throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 384throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 412if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 514if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 542if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System.Console (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\ConsoleKeyInfo.cs (1)
22throw new ArgumentOutOfRangeException(nameof(key), SR.ArgumentOutOfRange_ConsoleKey);
System.Data.Common (3)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
88ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, message);
System\Data\DataException.cs (1)
341internal static Exception _ArgumentOutOfRange(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentOutOfRangeException(paramName, msg));
System\Data\DataSetUtil.cs (1)
30return new ArgumentOutOfRangeException(parameterName, message);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
68throw new ArgumentOutOfRangeException(nameof(initialCapacity), SR.ArgumentOutOfRange_NeedNonNegNum);
System.Formats.Tar (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
273throw new ArgumentOutOfRangeException(nameof(value), SR.DateTimeOutOfRange);
System.IO.Compression.Brotli (4)
System\IO\Compression\enc\BrotliEncoder.cs (4)
79throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 97throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window, BrotliUtils.WindowBits_Min, BrotliUtils.WindowBits_Max)); 210throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 214throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window, BrotliUtils.WindowBits_Min, BrotliUtils.WindowBits_Max));
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System.IO.MemoryMappedFiles (10)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (7)
297throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 354throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 403throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_PositiveOrDefaultSizeRequired); 413throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 437throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_PositiveOrDefaultSizeRequired); 447throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 524throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_PositiveOrDefaultCapacityRequired);
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
28throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityGEFileSizeRequired);
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
88throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed);
System.IO.Pipes (17)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\Pipes\AnonymousPipeClientStream.cs (1)
93throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System\IO\Pipes\AnonymousPipeServerStream.cs (2)
72throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable); 152throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System\IO\Pipes\NamedPipeClientStream.cs (3)
68throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid); 72throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid); 76throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
System\IO\Pipes\NamedPipeServerStream.cs (5)
98throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 102throw new ArgumentOutOfRangeException(nameof(transmissionMode), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 106throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid); 115throw new ArgumentOutOfRangeException(nameof(maxNumberOfServerInstances), SR.ArgumentOutOfRange_MaxNumServerInstances); 123throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
System\IO\Pipes\PipeStream.cs (3)
35throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 46throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 50throw new ArgumentOutOfRangeException(nameof(transmissionMode), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System\IO\Pipes\PipeStream.Unix.cs (2)
196throw new ArgumentOutOfRangeException(nameof(pipeName), SR.ArgumentOutOfRange_AnonymousReserved); 413throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg);
System.Memory.Data (1)
System\BinaryData.cs (1)
307throw new ArgumentOutOfRangeException(nameof(stream), SR.ArgumentOutOfRange_StreamLengthMustBeNonNegativeInt32);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
289throw new ArgumentOutOfRangeException(nameof(InitialHttp2StreamWindowSize), message);
System.Net.HttpListener (2)
System\Net\HttpListenerPrefixCollection.cs (2)
44throw new ArgumentOutOfRangeException(nameof(array), SR.net_array_too_small); 60throw new ArgumentOutOfRangeException(nameof(array), SR.net_array_too_small);
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
629throw new ArgumentOutOfRangeException(nameof(hostName),
System.Net.Primitives (2)
System\Net\CookieContainer.cs (2)
124throw new ArgumentOutOfRangeException(nameof(perDomainCapacity), SR.Format(SR.net_cookie_capacity_range, "PerDomainCapacity", 0, capacity)); 150throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.net_cookie_capacity_range, "Capacity", 0, m_maxCookiesPerDomain));
System.Net.Quic (2)
System\Net\Quic\QuicStream.Stream.cs (2)
61throw new ArgumentOutOfRangeException(nameof(value), SR.net_quic_timeout_use_gt_zero); 80throw new ArgumentOutOfRangeException(nameof(value), SR.net_quic_timeout_use_gt_zero);
System.Net.Requests (8)
System\Net\FileWebRequest.cs (1)
101throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero);
System\Net\FtpWebRequest.cs (2)
360throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 398throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero);
System\Net\HttpWebRequest.cs (5)
299throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 315throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 854throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 1496throw new ArgumentOutOfRangeException(from < 0 ? nameof(from) : nameof(to), SR.net_rangetoosmall); 1500throw new ArgumentOutOfRangeException(nameof(from), SR.net_fromto);
System.Net.Sockets (7)
System\Net\Sockets\NetworkStream.cs (2)
132throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 155throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero);
System\Net\Sockets\Socket.cs (4)
1905throw new ArgumentOutOfRangeException(nameof(receivedAddress), SR.net_sockets_address_small); 2280throw new ArgumentOutOfRangeException(nameof(checkRead), SR.Format(SR.net_sockets_toolarge_select, nameof(checkRead), MaxSelect.ToString())); 2284throw new ArgumentOutOfRangeException(nameof(checkWrite), SR.Format(SR.net_sockets_toolarge_select, nameof(checkWrite), MaxSelect.ToString())); 2288throw new ArgumentOutOfRangeException(nameof(checkError), SR.Format(SR.net_sockets_toolarge_select, nameof(checkError), MaxSelect.ToString()));
System\Net\Sockets\Socket.Tasks.cs (1)
441throw new ArgumentOutOfRangeException(nameof(receivedAddress), SR.net_sockets_address_small);
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (1)
663throw new ArgumentOutOfRangeException(nameof(ranges), "Number of dimensions to slice does not equal the number of dimensions in the span");
System\Numerics\Tensors\netcore\Tensor.cs (2)
323throw new ArgumentOutOfRangeException(nameof(filter), "Number of dimensions does not equal the number of dimensions in the span"); 431throw new ArgumentOutOfRangeException(nameof(start), "Number of dimensions to slice does not equal the number of dimensions in the span");
System\ThrowHelper.cs (1)
79throw new ArgumentOutOfRangeException("value", SR.ThrowArgument_ValueNonNegative);
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
37throw new ArgumentOutOfRangeException(nameof(dictionaryCreationThreshold), SR.ArgumentOutOfRange_InvalidThreshold);
System.Private.CoreLib (268)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
src\libraries\System.Private.CoreLib\src\System\Char.cs (3)
1039throw new ArgumentOutOfRangeException(nameof(utf32), SR.ArgumentOutOfRange_InvalidUTF32); 1079throw new ArgumentOutOfRangeException( 1085throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (31)
39if (capacity < 0) throw new ArgumentOutOfRangeException(nameof(capacity), SR.Format(SR.ArgumentOutOfRange_MustBeNonNegNum, nameof(capacity))); 78throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 123if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 128if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 359throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 375throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 376if (count < 0 || startIndex > _size - count) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 387if (index < 0 || index > _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 408if (index < 0 || index > _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 453throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 478throw new ArgumentOutOfRangeException(startIndex >= _size ? nameof(startIndex) : nameof(count), SR.ArgumentOutOfRange_BiggerThanCollection); 516if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 594if (index < 0 || index > _size - count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 722if (value < Count) throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 865if (startIndex < 0 || startIndex > Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 866if (count < 0 || startIndex > Count - count) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 895if (index < 0 || index > Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 933if (startIndex < 0 || startIndex >= _list.Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 934if (count < 0 || count > startIndex + 1) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 1009throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2234if (value < Count) throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 2365throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2376throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2379throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_Count); 2389if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2399if (index < 0 || index > _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2432throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 2444if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2485if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2510if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 2516if (index < 0 || index >= _baseSize) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
265throw new ArgumentOutOfRangeException(nameof(loadFactor), SR.ArgumentOutOfRange_HashtableLoadFactor);
src\libraries\System.Private.CoreLib\src\System\CurrentSystemTimeZone.cs (1)
118throw new ArgumentOutOfRangeException(nameof(year), SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
131static void ThrowOutOfRange() => throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_AddValue);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (9)
222private static void ThrowTicksOutOfRange() => throw new ArgumentOutOfRangeException("ticks", SR.ArgumentOutOfRange_DateTimeBadTicks); 224private static void ThrowMillisecondOutOfRange() => throw new ArgumentOutOfRangeException("millisecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, MillisPerSecond - 1)); 225private static void ThrowMicrosecondOutOfRange() => throw new ArgumentOutOfRangeException("microsecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, MicrosecondsPerMillisecond - 1)); 226private static void ThrowDateArithmetic(int param) => throw new ArgumentOutOfRangeException(param switch { 0 => "value", 1 => "t", _ => "months" }, SR.ArgumentOutOfRange_DateArithmetic); 227private static void ThrowAddOutOfRange() => throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_AddValue); 983if (months < -120000 || months > 120000) throw new ArgumentOutOfRangeException(nameof(months), SR.ArgumentOutOfRange_DateTimeBadMonths); 1044throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_DateTimeBadYears); 1292throw new ArgumentOutOfRangeException(nameof(fileTime), SR.ArgumentOutOfRange_FileTimeInvalid); 1740throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_FileTimeInvalid);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (9)
150throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 172throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 194throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 255throw new ArgumentOutOfRangeException(nameof(microsecond), SR.ArgumentOutOfRange_BadHourMinuteSecond); 332throw new ArgumentOutOfRangeException(nameof(microsecond), SR.ArgumentOutOfRange_BadHourMinuteSecond); 633throw new ArgumentOutOfRangeException(nameof(seconds), 648throw new ArgumentOutOfRangeException(nameof(milliseconds), 984throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_OffsetOutOfRange); 1001throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_UTCOutOfRange);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
686throw new ArgumentOutOfRangeException(nameof(decimals), SR.ArgumentOutOfRange_DecimalRound);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (2)
63throw new ArgumentOutOfRangeException(nameof(id), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue)); 78throw new ArgumentOutOfRangeException(nameof(task), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue));
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
696throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (2)
392throw new ArgumentOutOfRangeException(nameof(string1), SR.ArgumentOutOfRange_OffsetLength); 396throw new ArgumentOutOfRangeException(nameof(string2), SR.ArgumentOutOfRange_OffsetLength);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
521throw new ArgumentOutOfRangeException(nameof(types),
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
258throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
107throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (10)
81throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_NeedNonNegNum); 130throw new ArgumentOutOfRangeException( 144throw new ArgumentOutOfRangeException(nameof(era), SR.ArgumentOutOfRange_InvalidEraValue); 199throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 213throw new ArgumentOutOfRangeException( 244throw new ArgumentOutOfRangeException( 360throw new ArgumentOutOfRangeException(nameof(time), SR.ArgumentOutOfRange_Era); 440throw new ArgumentOutOfRangeException( 480throw new ArgumentOutOfRangeException( 528throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (2)
163throw new ArgumentOutOfRangeException( 413throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (4)
73throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 75throw new ArgumentOutOfRangeException(nameof(unicode), SR.ArgumentOutOfRange_IndexCountBuffer); 120throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 122throw new ArgumentOutOfRangeException(nameof(ascii), SR.ArgumentOutOfRange_IndexCountBuffer);
src\libraries\System.Private.CoreLib\src\System\Globalization\ISOWeek.cs (4)
89throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_Year); 116throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_Year); 121throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week_ISO); 129throw new ArgumentOutOfRangeException(nameof(dayOfWeek), SR.ArgumentOutOfRange_DayOfWeek);
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (2)
94throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 316throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond);
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (2)
62throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 384throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
591throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay);
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
149throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_NeedNonNegNum);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
236throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexCount);
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
72throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.Format(SR.ArgumentOutOfRange_MustBePositive, nameof(bufferSize)));
src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
45throw new ArgumentOutOfRangeException(nameof(searchOption), SR.ArgumentOutOfRange_Enum);
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
75throw new ArgumentOutOfRangeException(nameof(access), SR.ArgumentOutOfRange_Enum);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (5)
264throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 314throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_StreamLength); 527throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_StreamLength); 550throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_StreamLength); 557throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_StreamLength);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (2)
82throw new ArgumentOutOfRangeException(badArg, SR.ArgumentOutOfRange_Enum); 88throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_Enum);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (6)
299throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 338throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 527throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 552throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 582throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired); 606throw new ArgumentOutOfRangeException(nameof(position), SR.ArgumentOutOfRange_PositionLessThanCapacityRequired);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (4)
158throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 161throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 163throw new ArgumentOutOfRangeException(nameof(access), SR.ArgumentOutOfRange_Enum); 322throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_UnmanagedMemStreamLength);
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
151throw new ArgumentOutOfRangeException(nameof(mode), SR.Lazy_ctor_ModeInvalid);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
338throw new ArgumentOutOfRangeException("minValue", SR.Format(SR.Argument_MinMaxValue, "minValue", "maxValue"));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
36throw new ArgumentOutOfRangeException(nameof(type), SR.ArgumentOutOfRange_Enum);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (2)
92throw new ArgumentOutOfRangeException(nameof(numBytes), SR.ArgumentOutOfRange_AddressSpace); 95throw new ArgumentOutOfRangeException(nameof(numBytes), SR.ArgumentOutOfRange_UIntPtrMax);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (4)
79throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_Capacity); 177throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 224throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString); 256throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexString);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (4)
388throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 394throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 480throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 489throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
src\libraries\System.Private.CoreLib\src\System\String.cs (4)
160throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR); 166throw new ArgumentOutOfRangeException(nameof(ptr), SR.ArgumentOutOfRange_PartialWCHAR); 220throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_PartialWCHAR); 279throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
1171throw new ArgumentOutOfRangeException(nameof(startIndex), startIndex < 0 ? SR.ArgumentOutOfRange_StartIndex : SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2272throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2277throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength);
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
850throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 867throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (2)
231throw new ArgumentOutOfRangeException(nameof(bytes), 235throw new ArgumentOutOfRangeException(nameof(chars),
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (5)
57throw new ArgumentOutOfRangeException(nameof(bytes), 96throw new ArgumentOutOfRangeException(nameof(bytes), 100throw new ArgumentOutOfRangeException(nameof(charIndex), 147throw new ArgumentOutOfRangeException(nameof(bytes), 151throw new ArgumentOutOfRangeException(nameof(chars),
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (2)
229throw new ArgumentOutOfRangeException(nameof(chars), 233throw new ArgumentOutOfRangeException(nameof(bytes),
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (4)
46throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 51throw new ArgumentOutOfRangeException(nameof(charUnknownLow), 110throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 115throw new ArgumentOutOfRangeException(nameof(CharUnknownLow),
src\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.cs (2)
56throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 61throw new ArgumentOutOfRangeException(nameof(charUnknownLow),
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (5)
52throw new ArgumentOutOfRangeException(nameof(chars), 86throw new ArgumentOutOfRangeException(nameof(chars), 90throw new ArgumentOutOfRangeException(nameof(byteIndex), 134throw new ArgumentOutOfRangeException(nameof(chars), 138throw new ArgumentOutOfRangeException(nameof(bytes),
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (2)
121throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), 125throw new ArgumentOutOfRangeException(nameof(charUnknownLow),
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
248throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
165throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (31)
127throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength); 152throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_Capacity); 272throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_Capacity); 276throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 336throw new ArgumentOutOfRangeException(nameof(chunkLength), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 362throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 367throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexLength); 395throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_SmallCapacity); 479throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 487throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 689throw new ArgumentOutOfRangeException(nameof(repeatCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 735throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 784throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 823throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 840throw new ArgumentOutOfRangeException(nameof(Capacity), SR.ArgumentOutOfRange_Capacity); 889throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 941throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 981throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1295throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1322throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1333throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1348throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1364throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1400throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2084throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2088throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2213throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2218throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2306throw new ArgumentOutOfRangeException(nameof(valueCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 2554throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity); 2643throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (12)
93throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 150throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 153throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 185throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 188throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 234throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 274throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 277throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 323throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 348throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1766throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1786throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (13)
101throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 158throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 161throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 193throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 196throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 242throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 282throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 285throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 331throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 464throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 808throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1073throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1099throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (10)
137throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 194throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 197throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 229throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 232throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 278throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 318throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 321throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 367throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 739throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (2)
819throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 855throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (2)
87throw new ArgumentOutOfRangeException( 109throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (1)
538new ArgumentOutOfRangeException(nameof(options), SR.TaskT_ConfigureAwait_InvalidOptions));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (4)
1512throw new ArgumentOutOfRangeException(nameof(creationOptions), SR.Task_FromAsync_LongRunning); 1514throw new ArgumentOutOfRangeException(nameof(creationOptions), SR.Task_FromAsync_PreferFairness); 3018throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_ContinueWith_ESandLR); 3037throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_MultiTaskContinuation_FireOptions);
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
519throw new ArgumentOutOfRangeException(nameof(state), SR.ArgumentOutOfRange_Enum);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
1384throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal); 1401throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (13)
230throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 236throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 242throw new ArgumentOutOfRangeException(null, SR.Overflow_TimeSpanTooLong); 248throw new ArgumentOutOfRangeException(name, SR.ArgumentOutOfRange_RoundingDigits); 254throw new ArgumentOutOfRangeException(name, SR.ArgumentOutOfRange_RoundingDigits_MathF); 632throw new ArgumentOutOfRangeException("precision", SR.Format(SR.Argument_PrecisionTooLarge, StandardFormat.MaxPrecision)); 638throw new ArgumentOutOfRangeException("symbol", SR.Argument_BadFormatSpecifier); 644throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_NeedNonNegNum); 650throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_Enum); 716return new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNum); 718return new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 751return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource)); 761return new ArgumentOutOfRangeException(GetArgumentName(argument) + "[" + paramNumber.ToString() + "]", GetResourceString(resource));
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
84throw new ArgumentOutOfRangeException(nameof(ticks), SR.ArgumentOutOfRange_TimeOnlyBadTicks);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
2149throw new ArgumentOutOfRangeException(nameof(baseUtcOffset), SR.ArgumentOutOfRange_UtcOffset);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (4)
81throw new ArgumentOutOfRangeException(nameof(month), SR.ArgumentOutOfRange_MonthParam); 87throw new ArgumentOutOfRangeException(nameof(day), SR.ArgumentOutOfRange_DayParam); 93throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week); 99throw new ArgumentOutOfRangeException(nameof(dayOfWeek), SR.ArgumentOutOfRange_DayOfWeek);
src\System\GC.CoreCLR.cs (5)
80throw new ArgumentOutOfRangeException(nameof(kind), 197throw new ArgumentOutOfRangeException(nameof(mode), SR.ArgumentOutOfRange_Enum); 407throw new ArgumentOutOfRangeException(nameof(maxGenerationThreshold), 416throw new ArgumentOutOfRangeException(nameof(largeObjectHeapThreshold), 495throw new ArgumentOutOfRangeException(nameof(totalSize), SR.ArgumentOutOfRangeException_NoGCRegionSizeTooLarge);
src\System\Reflection\RuntimeModule.cs (5)
55throw new ArgumentOutOfRangeException(nameof(metadataToken), 138throw new ArgumentOutOfRangeException(nameof(metadataToken), 168throw new ArgumentOutOfRangeException(nameof(metadataToken), 276throw new ArgumentOutOfRangeException(nameof(metadataToken), 307throw new ArgumentOutOfRangeException(nameof(metadataToken),
src\System\RuntimeHandles.cs (3)
1331throw new ArgumentOutOfRangeException(nameof(typeToken), 1384throw new ArgumentOutOfRangeException(nameof(methodToken), 1437throw new ArgumentOutOfRangeException(nameof(fieldToken),
System.Private.DataContractSerialization (91)
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
723throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 728throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 745throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 750throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 782throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.JsonOffsetExceedsBufferSize, buffer.Length)); 787throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - offset)); 823throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 828throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (4)
365throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index)); 381throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index)); 407throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index)); 696throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.JsonSizeExceedsRemainingBufferSpace, buffer.Length - index));
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
55throw new ArgumentOutOfRangeException(nameof(i), SR.XmlElementAttributes); 148throw new ArgumentOutOfRangeException(nameof(i), SR.XmlElementAttributes);
System\Text\Base64Encoding.cs (15)
55throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 58throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - index)); 106throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 110throw new ArgumentOutOfRangeException(nameof(charCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 115throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 179throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 183throw new ArgumentOutOfRangeException(nameof(charCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 188throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 248throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2)); 262throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 265throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 271throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 346throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 349throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 355throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length));
System\Text\BinHexEncoding.cs (7)
29throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 32throw new ArgumentOutOfRangeException(nameof(charCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 36throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 54throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.ValueMustBeInRange, 0, int.MaxValue / 2)); 68throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.Format(SR.OffsetExceedsBufferSize, bytes.Length)); 71throw new ArgumentOutOfRangeException(nameof(byteCount), SR.Format(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 76throw new ArgumentOutOfRangeException(nameof(charIndex), SR.Format(SR.OffsetExceedsBufferSize, chars.Length));
System\Xml\UniqueId.cs (7)
71throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, guid.Length)); 100throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 103throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 206throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 209throw new ArgumentOutOfRangeException(nameof(chars), SR.Format(SR.XmlArrayTooSmallOutput, count)); 286throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 289throw new ArgumentOutOfRangeException(nameof(buffer), SR.Format(SR.XmlArrayTooSmallOutput, guidLength));
System\Xml\XmlBaseReader.cs (10)
502throw new ArgumentOutOfRangeException(nameof(index), SR.XmlElementAttributes); 505throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.OffsetExceedsBufferSize, _attributeCount)); 1132throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 1135throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 1160throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 1163throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 1348throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 1351throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 1384throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 1387throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
System\Xml\XmlBaseWriter.cs (3)
1030throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 1082throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 1445throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
System\Xml\XmlBinaryReader.cs (4)
50throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 53throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset)); 1231throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 1234throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlBinaryReaderSession.cs (1)
26throw new ArgumentOutOfRangeException(nameof(id), SR.XmlInvalidID);
System\Xml\XmlBinaryWriter.cs (2)
1281throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 1284throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlCanonicalWriter.cs (21)
210throw new ArgumentOutOfRangeException(nameof(prefixOffset), SR.Format(SR.OffsetExceedsBufferSize, prefixBuffer.Length)); 213throw new ArgumentOutOfRangeException(nameof(prefixLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset)); 218throw new ArgumentOutOfRangeException(nameof(localNameOffset), SR.Format(SR.OffsetExceedsBufferSize, localNameBuffer.Length)); 221throw new ArgumentOutOfRangeException(nameof(localNameLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, localNameBuffer.Length - localNameOffset)); 364throw new ArgumentOutOfRangeException(nameof(ns), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue / maxBytesPerChar)); 367throw new ArgumentOutOfRangeException(nameof(ns), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue / maxBytesPerChar)); 386throw new ArgumentOutOfRangeException(nameof(prefixOffset), SR.Format(SR.OffsetExceedsBufferSize, prefixBuffer.Length)); 389throw new ArgumentOutOfRangeException(nameof(prefixLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset)); 394throw new ArgumentOutOfRangeException(nameof(nsOffset), SR.Format(SR.OffsetExceedsBufferSize, nsBuffer.Length)); 397throw new ArgumentOutOfRangeException(nameof(nsLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, nsBuffer.Length - nsOffset)); 400throw new ArgumentOutOfRangeException(nameof(nsLength), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue)); 437throw new ArgumentOutOfRangeException(nameof(prefixOffset), SR.Format(SR.OffsetExceedsBufferSize, prefixBuffer.Length)); 440throw new ArgumentOutOfRangeException(nameof(prefixLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset)); 445throw new ArgumentOutOfRangeException(nameof(localNameOffset), SR.Format(SR.OffsetExceedsBufferSize, localNameBuffer.Length)); 448throw new ArgumentOutOfRangeException(nameof(localNameLength), SR.Format(SR.SizeExceedsRemainingBufferSpace, localNameBuffer.Length - localNameOffset)); 508throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 511throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 563throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 566throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset)); 600throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, chars.Length)); 603throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset));
System\Xml\XmlDictionaryReader.cs (2)
1011throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 1014throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlDictionaryString.cs (1)
30throw new ArgumentOutOfRangeException(nameof(key), SR.Format(SR.ValueMustBeInRange, MinKey, MaxKey));
System\Xml\XmlDictionaryWriter.cs (2)
442throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, array.Length)); 445throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, array.Length - offset));
System\Xml\XmlUTF8TextReader.cs (2)
562throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.OffsetExceedsBufferSize, buffer.Length)); 565throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset));
System.Reflection.Metadata (4)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (1)
428throw new ArgumentOutOfRangeException(nameof(typeHandle), SR.Format(SR.UnexpectedHandleKind, typeHandle.Kind));
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (1)
90throw new ArgumentOutOfRangeException(nameof(typeSystemRowCounts), SR.Format(SR.RowCountOutOfRange, i));
System\Reflection\Throw.cs (2)
137throw new ArgumentOutOfRangeException(parameterName, message); 143throw new ArgumentOutOfRangeException(parameterName, SR.BlobTooLarge);
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCache.cs (2)
260throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "SlidingExpiration", ObjectCache.NoSlidingExpiration, s_oneYear)); 269throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "Priority", CacheItemPriority.Default, CacheItemPriority.NotRemovable));
System.Runtime.Numerics (1)
System\ThrowHelper.cs (1)
27throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_NeedNonNegNum);
System.Runtime.Serialization.Formatters (5)
System\Runtime\Serialization\ObjectManager.cs (5)
619throw new ArgumentOutOfRangeException(nameof(objectID), SR.ArgumentOutOfRange_ObjectID); 668throw new ArgumentOutOfRangeException(nameof(objectID), SR.ArgumentOutOfRange_ObjectID); 929throw new ArgumentOutOfRangeException(objectToBeFixed <= 0 ? nameof(objectToBeFixed) : nameof(objectRequired), SR.Serialization_IdTooSmall); 947throw new ArgumentOutOfRangeException(objectToBeFixed <= 0 ? nameof(objectToBeFixed) : nameof(objectRequired), SR.Serialization_IdTooSmall); 968throw new ArgumentOutOfRangeException(arrayToBeFixed <= 0 ? nameof(arrayToBeFixed) : nameof(objectRequired), SR.Serialization_IdTooSmall);
System.Security.Cryptography (28)
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (2)
622throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_KOut_Too_Large); 627throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_NeedNonNegNum);
System\Security\Cryptography\AsnEncodedDataCollection.cs (2)
73throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 92throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Base64Transforms.cs (1)
386public static void ThrowArgumentOutOfRange(ExceptionArgument argument) => throw new ArgumentOutOfRangeException(argument.ToString(), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Security\Cryptography\DSASignatureFormat.cs (1)
45new ArgumentOutOfRangeException(
System\Security\Cryptography\HKDF.cs (2)
95throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength)); 220throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength));
System\Security\Cryptography\OidCollection.cs (2)
79throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 97throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\PemEncoding.cs (2)
314throw new ArgumentOutOfRangeException(nameof(labelLength), SR.Argument_PemEncoding_EncodedSizeTooLarge); 316throw new ArgumentOutOfRangeException(nameof(dataLength), SR.Argument_PemEncoding_EncodedSizeTooLarge);
System\Security\Cryptography\SymmetricAlgorithm.cs (5)
338throw new ArgumentOutOfRangeException(nameof(plaintextLength), SR.Cryptography_PlaintextTooLarge); 343throw new ArgumentOutOfRangeException(nameof(paddingMode), SR.Cryptography_InvalidPaddingMode); 417throw new ArgumentOutOfRangeException(nameof(plaintextLength), SR.Cryptography_PlaintextTooLarge); 422throw new ArgumentOutOfRangeException(nameof(paddingMode), SR.Cryptography_InvalidPaddingMode); 1619throw new ArgumentOutOfRangeException(nameof(paddingMode), SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\UniversalCryptoTransform.cs (4)
76throw new ArgumentOutOfRangeException(nameof(inputCount), SR.Cryptography_MustTransformWholeBlock); 78throw new ArgumentOutOfRangeException(nameof(inputCount), SR.Argument_InvalidOffLen); 83throw new ArgumentOutOfRangeException(nameof(outputOffset), SR.Argument_InvalidOffLen); 98throw new ArgumentOutOfRangeException(nameof(inputCount), SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (3)
23throw new ArgumentOutOfRangeException(nameof(emailAddress), SR.Arg_EmptyOrNullString); 31throw new ArgumentOutOfRangeException(nameof(dnsName), SR.Arg_EmptyOrNullString); 53throw new ArgumentOutOfRangeException(nameof(upn), SR.Arg_EmptyOrNullString);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
47throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 65throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
44throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 84throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System.Text.Encoding.CodePages (65)
System\Text\DBCSCodePageEncoding.cs (4)
1121throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1133throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1141throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1151throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\DecoderNLS.cs (12)
86throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 89throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 104throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 130throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 133throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 136throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 159throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 182throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 185throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 188throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 191throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 215throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncoderBestFitFallback.cs (2)
100throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 103throw new ArgumentOutOfRangeException(nameof(charUnknownLow), SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
System\Text\EncoderNLS.cs (12)
84throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 87throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 102throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 119throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 122throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 125throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 147throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 167throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 170throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 173throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 176throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 200throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncodingNLS.cs (19)
55throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 58throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 89throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 109throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 112throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 115throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 149throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 152throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 155throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 184throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 201throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 204throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 223throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 241throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 244throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 247throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 276throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 293throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 296throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer);
System\Text\GB18030Encoding.cs (4)
745throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 757throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 765throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 776throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISCIIEncoding.cs (4)
79throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 91throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 101throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 113throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISO2022Encoding.cs (4)
1694throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1739throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1747throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1775throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\SBCSCodePageEncoding.cs (4)
906throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 917throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 924throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 934throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System.Text.Json (5)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
34throw new ArgumentOutOfRangeException(nameof(value), SR.JsonDocumentDoesNotSupportComments);
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
643throw new ArgumentOutOfRangeException(nameof(value), SR.JsonSerializerDoesNotSupportComments);
System\Text\Json\ThrowHelper.cs (3)
41return new ArgumentOutOfRangeException(parameterName, message); 53throw new ArgumentOutOfRangeException(paramName, SR.ArrayIndexNegative); 59throw new ArgumentOutOfRangeException(nameof(typeToConvert), SR.Format(SR.SerializerConverterFactoryInvalidArgument, typeToConvert.FullName));
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\ThrowHelper.cs (1)
20throw new ArgumentOutOfRangeException(GetStringForExceptionArgument(arg), GetStringForExceptionResource(resource));
System.Threading (2)
System\Threading\Barrier.cs (2)
345throw new ArgumentOutOfRangeException(nameof(participantCount), 440throw new ArgumentOutOfRangeException(nameof(participantCount),
System.Threading.Tasks.Dataflow (6)
Base\DataflowBlock.cs (2)
878if (!Common.IsValidTimeout(timeout)) throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1); 963if (!Common.IsValidTimeout(timeout)) throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
Blocks\BatchBlock.cs (2)
49if (batchSize < 1) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_GenericPositive); 51if (dataflowBlockOptions.BoundedCapacity > 0 && dataflowBlockOptions.BoundedCapacity < batchSize) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_BatchSizeMustBeNoGreaterThanBoundedCapacity);
Blocks\BatchedJoinBlock.cs (2)
57if (batchSize < 1) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_GenericPositive); 305if (batchSize < 1) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_GenericPositive);
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1664throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsScroll.cs (1)
287throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsTab.cs (1)
501throw new ArgumentOutOfRangeException("horizontalPercent", SR.ScrollBarOutOfRange);
WinShimmer (1)
Program.cs (1)
22throw new ArgumentOutOfRangeException("args", $"WinShimmer was provided {args.Length} arguments instead of 3");