1915 instantiations of ArgumentOutOfRangeException
AssemblyStripper (4)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Binary\Image.cs (1)
151 throw new ArgumentOutOfRangeException ("Cannot map the rva to any section");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\CilWorker.cs (3)
342 throw new ArgumentOutOfRangeException ("Target instruction not in method body"); 356 throw new ArgumentOutOfRangeException ("Target instruction not in method body"); 384 throw new ArgumentOutOfRangeException ("Target instruction not in method body");
CodeGenerator (2)
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (2)
59throw new ArgumentOutOfRangeException(nameof(bitsIndexStart)); 64throw new ArgumentOutOfRangeException(nameof(bitsCount));
dotnet-dev-certs (1)
ReporterEventListener.cs (1)
31_ => throw new ArgumentOutOfRangeException(nameof(eventData), eventData.Level, $"The value of argument '{nameof(eventData.Level)}' ({eventData.Level}) is invalid for Enum type '{nameof(EventLevel)}'.")
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
29throw new ArgumentOutOfRangeException(nameof(serverType), serverType, null);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
29throw new ArgumentOutOfRangeException(nameof(serverType), serverType, null);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
29throw new ArgumentOutOfRangeException(nameof(serverType), serverType, null);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
29throw new ArgumentOutOfRangeException(nameof(serverType), serverType, null);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
29throw new ArgumentOutOfRangeException(nameof(serverType), serverType, null);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (1)
29throw new ArgumentOutOfRangeException(nameof(serverType), serverType, null);
illink (10)
ILLink.RoslynAnalyzer (1)
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
InMemory.FunctionalTests (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
installer.tasks (1)
StaticFileRegeneration\TpnSectionHeader.cs (1)
88throw new ArgumentOutOfRangeException();
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.Antiforgery (2)
Internal\BinaryBlob.cs (2)
30throw new ArgumentOutOfRangeException(nameof(bitLength)); 34throw new ArgumentOutOfRangeException(nameof(data));
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\EmbeddedSyntax\EmbeddedSeparatedSyntaxNodeList.cs (1)
72throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
97throw new ArgumentOutOfRangeException(nameof(MaxAge), MaxAge.Value, "The value must not be a negative TimeSpan.");
Microsoft.AspNetCore.Components (9)
src\Components\Shared\src\ArrayBuilder.cs (1)
214throw new ArgumentOutOfRangeException("index");
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
451throw new ArgumentOutOfRangeException(nameof(arrayIndex));
src\Http\Routing\src\Constraints\LengthRouteConstraint.cs (4)
32throw new ArgumentOutOfRangeException(nameof(length), length, errorMessage); 49throw new ArgumentOutOfRangeException(nameof(minLength), minLength, errorMessage); 55throw new ArgumentOutOfRangeException(nameof(maxLength), maxLength, errorMessage); 62throw new ArgumentOutOfRangeException(nameof(minLength), minLength, errorMessage);
src\Http\Routing\src\Constraints\MaxLengthRouteConstraint.cs (1)
32throw new ArgumentOutOfRangeException(nameof(maxLength), maxLength, errorMessage);
src\Http\Routing\src\Constraints\MinLengthRouteConstraint.cs (1)
32throw new ArgumentOutOfRangeException(nameof(minLength), minLength, errorMessage);
src\Http\Routing\src\Constraints\RangeRouteConstraint.cs (1)
34throw new ArgumentOutOfRangeException(nameof(min), min, errorMessage);
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 (9)
BlazorPack\Requires.cs (1)
28throw new ArgumentOutOfRangeException(paramName);
Circuits\RemoteJSRuntime.cs (1)
141throw new ArgumentOutOfRangeException(nameof(data), "Exceeded the maximum byte array transfer limit for a call.");
src\Components\Shared\src\ArrayBuilder.cs (1)
214throw new ArgumentOutOfRangeException("index");
src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
112=> throw new ArgumentOutOfRangeException(name);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReader.cs (5)
239throw new ArgumentOutOfRangeException(nameof(count)); 256throw new ArgumentOutOfRangeException("Rewind went past the start of the memory."); 355throw new ArgumentOutOfRangeException(nameof(count)); 411throw new ArgumentOutOfRangeException(nameof(count)); 444throw new ArgumentOutOfRangeException(nameof(count));
Microsoft.AspNetCore.Components.Web (2)
Forms\InputFile\BrowserFile.cs (1)
25throw new ArgumentOutOfRangeException(nameof(Size), $"Size must be a non-negative value. Value provided: {value}.");
JSComponents\JSComponentInterop.cs (1)
87throw new ArgumentOutOfRangeException($"{nameof(parameterCount)} must be between 0 and {MaxParameters}.");
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\WebAssemblyConsoleLogger.cs (1)
155throw new ArgumentOutOfRangeException(nameof(logLevel));
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\ArrayBuilder.cs (1)
214throw new ArgumentOutOfRangeException("index");
src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
112=> throw new ArgumentOutOfRangeException(name);
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.Cryptography.KeyDerivation (9)
KeyDerivation.cs (1)
36throw new ArgumentOutOfRangeException(nameof(prf));
PBKDF2\NetCorePbkdf2Provider.cs (1)
37throw new ArgumentOutOfRangeException(nameof(prf));
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (7)
16throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-zero value."); 22throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative value."); 28throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative and non-zero value."); 34throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be less than or equal to '{other}'."); 40throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be less than '{other}'."); 46throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than or equal to '{other}'."); 52throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than '{other}'.");
Microsoft.AspNetCore.DataProtection (8)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (5)
130throw new ArgumentOutOfRangeException(nameof(algorithm)); 147throw new ArgumentOutOfRangeException(nameof(algorithm)); 162throw new ArgumentOutOfRangeException(nameof(algorithm)); 180throw new ArgumentOutOfRangeException(nameof(algorithm)); 196throw new ArgumentOutOfRangeException(nameof(algorithm));
DataProtectionBuilderExtensions.cs (1)
407throw new ArgumentOutOfRangeException(Resources.FormatLifetimeMustNotBeNegative(nameof(lifetime)));
Error.cs (1)
71return new ArgumentOutOfRangeException(paramName, Resources.Common_ValueMustBeNonNegative);
KeyManagement\KeyManagementOptions.cs (1)
134throw new ArgumentOutOfRangeException(nameof(value), Resources.KeyManagementOptions_MinNewKeyLifetimeViolated);
Microsoft.AspNetCore.DataProtection.Abstractions (7)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (7)
16throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-zero value."); 22throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative value."); 28throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative and non-zero value."); 34throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be less than or equal to '{other}'."); 40throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be less than '{other}'."); 46throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than or equal to '{other}'."); 52throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than '{other}'.");
Microsoft.AspNetCore.Hosting (4)
Internal\HostingApplicationDiagnostics.cs (1)
557throw new ArgumentOutOfRangeException(nameof(index));
Internal\HostingRequestFinishedLog.cs (1)
47_ => throw new ArgumentOutOfRangeException(nameof(index)),
Internal\HostingRequestStartingLog.cs (1)
35_ => throw new ArgumentOutOfRangeException(nameof(index)),
Internal\HostingRequestUnhandledLog.cs (1)
30_ => throw new ArgumentOutOfRangeException(nameof(index)),
Microsoft.AspNetCore.Http (4)
Internal\ReferenceReadStream.cs (1)
56throw new ArgumentOutOfRangeException(nameof(value), value, $"The Position must be within the length of the Stream: {Length}");
SendFileFallback.cs (2)
28throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 33throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
299throw new ArgumentOutOfRangeException(nameof(arrayIndex));
Microsoft.AspNetCore.Http.Abstractions (23)
EndpointFilterInvocationContextOfT.Generated.cs (20)
25_ => new ArgumentOutOfRangeException(nameof(index)) 96_ => throw new ArgumentOutOfRangeException(nameof(index)) 149_ => new ArgumentOutOfRangeException(nameof(index)) 225_ => throw new ArgumentOutOfRangeException(nameof(index)) 280_ => new ArgumentOutOfRangeException(nameof(index)) 361_ => throw new ArgumentOutOfRangeException(nameof(index)) 418_ => new ArgumentOutOfRangeException(nameof(index)) 504_ => throw new ArgumentOutOfRangeException(nameof(index)) 563_ => new ArgumentOutOfRangeException(nameof(index)) 654_ => throw new ArgumentOutOfRangeException(nameof(index)) 715_ => new ArgumentOutOfRangeException(nameof(index)) 811_ => throw new ArgumentOutOfRangeException(nameof(index)) 874_ => new ArgumentOutOfRangeException(nameof(index)) 975_ => throw new ArgumentOutOfRangeException(nameof(index)) 1040_ => new ArgumentOutOfRangeException(nameof(index)) 1146_ => throw new ArgumentOutOfRangeException(nameof(index)) 1213_ => new ArgumentOutOfRangeException(nameof(index)) 1324_ => throw new ArgumentOutOfRangeException(nameof(index)) 1393_ => new ArgumentOutOfRangeException(nameof(index)) 1509_ => throw new ArgumentOutOfRangeException(nameof(index))
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.")
Routing\RouteValueDictionary.cs (1)
451throw new ArgumentOutOfRangeException(nameof(arrayIndex));
Microsoft.AspNetCore.Http.Connections (1)
Internal\ConnectionLogScope.cs (1)
29throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Http.Connections.Client (8)
Internal\ConnectionLogScope.cs (1)
37throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (7)
16throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-zero value."); 22throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative value."); 28throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be a non-negative and non-zero value."); 34throw new ArgumentOutOfRangeException(paramName, value, $"'{paramName}' must be less than or equal to '{other}'."); 40throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be less than '{other}'."); 46throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than or equal to '{other}'."); 52throw new ArgumentOutOfRangeException(paramName, value, $"'{value}' must be greater than '{other}'.");
Microsoft.AspNetCore.Http.Extensions (3)
SendFileResponseExtensions.cs (2)
129throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 134throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Http.Features (1)
WebSocketAcceptContext.cs (1)
65throw new ArgumentOutOfRangeException(nameof(ServerMaxWindowBits),
Microsoft.AspNetCore.HttpLogging (4)
BufferingStream.cs (1)
219private static Exception CreateArgumentOutOfRangeException(string argumentName) { return new ArgumentOutOfRangeException(argumentName); }
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.InternalTesting.Tests (1)
ExceptionAssertTest.cs (1)
32throw new ArgumentOutOfRangeException("foo", 10, "exception message.");
Microsoft.AspNetCore.Mvc.Core (35)
Diagnostics\MvcDiagnostics.cs (28)
58_ => throw new ArgumentOutOfRangeException(nameof(index)) 109_ => throw new ArgumentOutOfRangeException(nameof(index)) 160_ => throw new ArgumentOutOfRangeException(nameof(index)) 211_ => throw new ArgumentOutOfRangeException(nameof(index)) 262_ => throw new ArgumentOutOfRangeException(nameof(index)) 313_ => throw new ArgumentOutOfRangeException(nameof(index)) 364_ => throw new ArgumentOutOfRangeException(nameof(index)) 415_ => throw new ArgumentOutOfRangeException(nameof(index)) 466_ => throw new ArgumentOutOfRangeException(nameof(index)) 517_ => throw new ArgumentOutOfRangeException(nameof(index)) 568_ => throw new ArgumentOutOfRangeException(nameof(index)) 619_ => throw new ArgumentOutOfRangeException(nameof(index)) 670_ => throw new ArgumentOutOfRangeException(nameof(index)) 721_ => throw new ArgumentOutOfRangeException(nameof(index)) 772_ => throw new ArgumentOutOfRangeException(nameof(index)) 823_ => throw new ArgumentOutOfRangeException(nameof(index)) 874_ => throw new ArgumentOutOfRangeException(nameof(index)) 925_ => throw new ArgumentOutOfRangeException(nameof(index)) 976_ => throw new ArgumentOutOfRangeException(nameof(index)) 1035_ => throw new ArgumentOutOfRangeException(nameof(index)) 1086_ => throw new ArgumentOutOfRangeException(nameof(index)) 1137_ => throw new ArgumentOutOfRangeException(nameof(index)) 1188_ => throw new ArgumentOutOfRangeException(nameof(index)) 1239_ => throw new ArgumentOutOfRangeException(nameof(index)) 1290_ => throw new ArgumentOutOfRangeException(nameof(index)) 1341_ => throw new ArgumentOutOfRangeException(nameof(index)) 1384_ => throw new ArgumentOutOfRangeException(nameof(index)) 1427_ => throw new ArgumentOutOfRangeException(nameof(index))
Formatters\MediaType.cs (2)
52throw new ArgumentOutOfRangeException(nameof(offset)); 59throw new ArgumentOutOfRangeException(nameof(length));
Formatters\MediaTypeCollection.cs (1)
34throw new ArgumentOutOfRangeException(nameof(index));
ModelBinding\Validation\ValidationVisitor.cs (1)
125throw new ArgumentOutOfRangeException(nameof(value));
MvcCoreLoggerExtensions.cs (1)
303throw new ArgumentOutOfRangeException(nameof(index));
MvcOptions.cs (1)
250throw new ArgumentOutOfRangeException(nameof(value));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
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.Razor (2)
Diagnostics\MvcDiagnostics.cs (2)
68_ => throw new ArgumentOutOfRangeException(nameof(index)) 129_ => throw new ArgumentOutOfRangeException(nameof(index))
Microsoft.AspNetCore.Mvc.RazorPages (12)
Diagnostics\MvcDiagnostics.cs (12)
65_ => throw new ArgumentOutOfRangeException(nameof(index)) 132_ => throw new ArgumentOutOfRangeException(nameof(index)) 183_ => throw new ArgumentOutOfRangeException(nameof(index)) 234_ => throw new ArgumentOutOfRangeException(nameof(index)) 285_ => throw new ArgumentOutOfRangeException(nameof(index)) 336_ => throw new ArgumentOutOfRangeException(nameof(index)) 387_ => throw new ArgumentOutOfRangeException(nameof(index)) 438_ => throw new ArgumentOutOfRangeException(nameof(index)) 489_ => throw new ArgumentOutOfRangeException(nameof(index)) 540_ => throw new ArgumentOutOfRangeException(nameof(index)) 591_ => throw new ArgumentOutOfRangeException(nameof(index)) 642_ => throw new ArgumentOutOfRangeException(nameof(index))
Microsoft.AspNetCore.Mvc.ViewFeatures (16)
AttributeDictionary.cs (3)
231throw new ArgumentOutOfRangeException(nameof(arrayIndex)); 410throw new ArgumentOutOfRangeException(nameof(arrayIndex)); 515throw new ArgumentOutOfRangeException(nameof(arrayIndex));
Buffers\ViewBuffer.cs (1)
78throw new ArgumentOutOfRangeException(nameof(index));
Buffers\ViewBufferTextWriter.cs (1)
191throw new ArgumentOutOfRangeException(nameof(count));
DefaultHtmlGenerator.cs (2)
608throw new ArgumentOutOfRangeException(nameof(rows), Resources.HtmlHelper_TextAreaParameterOutOfRange); 613throw new ArgumentOutOfRangeException(
Diagnostics\MvcDiagnostics.cs (8)
58_ => throw new ArgumentOutOfRangeException(nameof(index)) 117_ => throw new ArgumentOutOfRangeException(nameof(index)) 167_ => throw new ArgumentOutOfRangeException(nameof(index)) 218_ => throw new ArgumentOutOfRangeException(nameof(index)) 261_ => throw new ArgumentOutOfRangeException(nameof(index)) 304_ => throw new ArgumentOutOfRangeException(nameof(index)) 375_ => throw new ArgumentOutOfRangeException(nameof(index)) 446_ => throw new ArgumentOutOfRangeException(nameof(index))
ViewComponents\DefaultViewComponentInvoker.cs (1)
305throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewComponents\ViewViewComponentResultTest.cs (1)
261var expected = new ArgumentOutOfRangeException();
Microsoft.AspNetCore.OpenApi (2)
Schemas\JsonSchemaMapper\JsonSchemaMapperConfiguration.cs (1)
91static void Throw() => throw new ArgumentOutOfRangeException(nameof(value));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.OutputCaching (1)
RecyclableArrayBufferWriter.cs (1)
58=> throw new ArgumentOutOfRangeException(nameof(count));
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheEntryFormatterTests.cs (1)
121_ => throw new ArgumentOutOfRangeException(nameof(value), "token is not hex: " + value.ToString())
Microsoft.AspNetCore.Owin (5)
WebSockets\OwinWebSocketAdapter.cs (2)
191throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 206throw new ArgumentOutOfRangeException(nameof(webSocketMessageType), webSocketMessageType, string.Empty);
WebSockets\WebSocketAdapter.cs (3)
115throw new ArgumentOutOfRangeException(nameof(buffer)); 151throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 166throw new ArgumentOutOfRangeException(nameof(webSocketMessageType), webSocketMessageType, string.Empty);
Microsoft.AspNetCore.ResponseCaching (1)
src\Shared\SegmentWriteStream.cs (1)
19throw new ArgumentOutOfRangeException(nameof(segmentSize), segmentSize, $"{nameof(segmentSize)} must be greater than 0.");
Microsoft.AspNetCore.Rewrite (5)
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.");
RewriteMiddleware.cs (1)
111throw new ArgumentOutOfRangeException($"Invalid rule termination {rewriteContext.Result}");
UrlMatches\IntegerMatch.cs (1)
30throw new ArgumentOutOfRangeException(nameof(operation));
UrlMatches\StringMatch.cs (1)
19throw new ArgumentOutOfRangeException(nameof(operation));
Microsoft.AspNetCore.Routing (9)
Constraints\HttpMethodRouteConstraint.cs (1)
73throw new ArgumentOutOfRangeException(nameof(routeDirection));
Constraints\LengthRouteConstraint.cs (4)
32throw new ArgumentOutOfRangeException(nameof(length), length, errorMessage); 49throw new ArgumentOutOfRangeException(nameof(minLength), minLength, errorMessage); 55throw new ArgumentOutOfRangeException(nameof(maxLength), maxLength, errorMessage); 62throw new ArgumentOutOfRangeException(nameof(minLength), minLength, errorMessage);
Constraints\MaxLengthRouteConstraint.cs (1)
32throw new ArgumentOutOfRangeException(nameof(maxLength), maxLength, errorMessage);
Constraints\MinLengthRouteConstraint.cs (1)
32throw new ArgumentOutOfRangeException(nameof(minLength), minLength, errorMessage);
Constraints\RangeRouteConstraint.cs (1)
34throw new ArgumentOutOfRangeException(nameof(min), min, errorMessage);
Matching\CandidateSet.cs (1)
359throw new ArgumentOutOfRangeException("index");
Microsoft.AspNetCore.Server.HttpSys (17)
HttpSysOptions.cs (5)
50throw new ArgumentOutOfRangeException(nameof(value), 134throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be positive, or -1 for infinite."); 161throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be greater than zero."); 184throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be greater or equal to zero."); 217throw new ArgumentOutOfRangeException(nameof(value), value, message);
RequestProcessing\RequestStream.cs (1)
55throw new ArgumentOutOfRangeException(nameof(value), value, "The value must be greater or equal to zero.");
RequestProcessing\Response.cs (1)
77throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(CultureInfo.CurrentCulture, Resources.Exception_InvalidStatusCode, value));
RequestProcessing\ResponseBody.cs (2)
647throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 651throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty);
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
150throw new ArgumentOutOfRangeException(nameof(value), value.Value, "Cannot be negative.");
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
205throw new ArgumentOutOfRangeException(nameof(value), value.Value, "Cannot be negative.");
TimeoutManager.cs (2)
159throw new ArgumentOutOfRangeException(nameof(value)); 186throw new ArgumentOutOfRangeException(nameof(value));
UrlPrefix.cs (1)
67throw new ArgumentOutOfRangeException(nameof(scheme), scheme, Resources.Exception_UnsupportedScheme);
Microsoft.AspNetCore.Server.IIS (8)
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 (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
150throw new ArgumentOutOfRangeException(nameof(value), value.Value, "Cannot be negative.");
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
205throw new ArgumentOutOfRangeException(nameof(value), value.Value, "Cannot be negative.");
Microsoft.AspNetCore.Server.Kestrel.Core (34)
Http2Limits.cs (8)
37throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanZeroRequired); 57throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanOrEqualToZeroRequired); 77throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.FormatArgumentOutOfRange(Http2PeerSettings.MinAllowedMaxFrameSize, Http2PeerSettings.MaxAllowedMaxFrameSize)); 97throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanZeroRequired); 118throw new ArgumentOutOfRangeException(nameof(value), value, 141throw new ArgumentOutOfRangeException(nameof(value), value, 167throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.FormatArgumentTimeSpanGreaterOrEqual(Heartbeat.Interval)); 192throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.FormatArgumentTimeSpanGreaterOrEqual(Heartbeat.Interval));
Http3Limits.cs (2)
30throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanZeroRequired); 50throw new ArgumentOutOfRangeException(nameof(value), value, CoreStrings.GreaterThanZeroRequired);
HttpsConnectionAdapterOptions.cs (1)
110throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.PositiveTimeSpanRequired);
Internal\ConnectionLogScope.cs (1)
29throw new ArgumentOutOfRangeException(nameof(index));
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\HttpHeaders.cs (1)
681throw new ArgumentOutOfRangeException(CoreStrings.FormatInvalidContentLength_InvalidNumber(value));
Internal\Http\HttpProtocol.cs (1)
1459throw new ArgumentOutOfRangeException(nameof(bytes));
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
215throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
396private static Exception CreateArgumentOutOfRangeException(string argumentName) { return new ArgumentOutOfRangeException(argumentName); }
Internal\Infrastructure\ResourceCounter.cs (1)
33throw new ArgumentOutOfRangeException(CoreStrings.NonNegativeNumberRequired);
Internal\Infrastructure\TimeExtensions.cs (1)
15throw new ArgumentOutOfRangeException(nameof(timeSpan), timeSpan, string.Empty);
Internal\ThrowHelper.cs (1)
19return new ArgumentOutOfRangeException(GetArgumentName(argument));
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 (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
QuicTransportOptions.cs (1)
79throw new ArgumentOutOfRangeException(nameof(errorCode), errorCode, $"A value between 0x{MinErrorCode:x} and 0x{MaxErrorCode:x} is required.");
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer");
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (3)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 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.Shared.Tests (5)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
299throw new ArgumentOutOfRangeException(nameof(arrayIndex));
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
150throw new ArgumentOutOfRangeException(nameof(value), value.Value, "Cannot be negative.");
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
205throw new ArgumentOutOfRangeException(nameof(value), value.Value, "Cannot be negative.");
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\SegmentWriteStream.cs (1)
19throw new ArgumentOutOfRangeException(nameof(segmentSize), segmentSize, $"{nameof(segmentSize)} must be greater than 0.");
Microsoft.AspNetCore.SignalR.Client.Core (1)
Internal\ConnectionLogScope.cs (1)
38throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.SignalR.Core (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.TestHost (4)
ResponseFeature.cs (1)
41throw new ArgumentOutOfRangeException(nameof(value), value, "The status code cannot be set to a value less than 100");
TestWebSocket.cs (3)
160throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 202throw new ArgumentOutOfRangeException(nameof(buffer), buffer.Offset, string.Empty); 206throw new ArgumentOutOfRangeException(nameof(buffer), buffer.Count, string.Empty);
Microsoft.AspNetCore.WebSockets.Tests (2)
BufferStream.cs (2)
276throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 281throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty);
Microsoft.AspNetCore.WebUtilities (9)
BufferedReadStream.cs (3)
96throw new ArgumentOutOfRangeException(nameof(value), value, "Position must be positive."); 283throw new ArgumentOutOfRangeException(nameof(minCount), minCount, "The value must be smaller than the buffer size: " + _buffer.Length); 316throw new ArgumentOutOfRangeException(nameof(minCount), minCount, "The value must be smaller than the buffer size: " + _buffer.Length);
FileBufferingWriteStream.cs (1)
49throw new ArgumentOutOfRangeException(nameof(bufferLimit), $"{nameof(bufferLimit)} must be larger than {nameof(memoryThreshold)}.");
HttpRequestStreamReader.cs (2)
160throw new ArgumentOutOfRangeException(nameof(count)); 221throw new ArgumentOutOfRangeException(nameof(count));
MultipartReader.cs (1)
55throw new ArgumentOutOfRangeException(nameof(bufferSize), bufferSize, "Insufficient buffer space, the buffer must be larger than the boundary: " + boundary);
MultipartReaderStream.cs (2)
78throw new ArgumentOutOfRangeException(nameof(value), value, "The Position must be positive."); 82throw new ArgumentOutOfRangeException(nameof(value), value, "The Position must be less than length.");
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
MultipartReaderBenchmark.cs (1)
88throw new ArgumentOutOfRangeException(nameof(SectionCount));
Microsoft.Build (17)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
614throw new ArgumentOutOfRangeException();
BuildCheck\API\BuildCheckResult.cs (1)
37_ => throw new ArgumentOutOfRangeException(nameof(severity), severity, null),
Collections\RetrievableEntryHashSet\HashSet.cs (4)
340throw new ArgumentOutOfRangeException(nameof(length)); 345throw new ArgumentOutOfRangeException(nameof(index)); 665throw new ArgumentOutOfRangeException(nameof(arrayIndex)); 671throw new ArgumentOutOfRangeException(nameof(count));
ErrorUtilities.cs (1)
466throw new ArgumentOutOfRangeException(parameterName);
Evaluation\IntrinsicFunctions.cs (1)
448_ => throw new ArgumentOutOfRangeException(nameof(algo), algo, null)
Graph\ProjectInterpretation.cs (2)
102throw new ArgumentOutOfRangeException(); 545_ => throw new ArgumentOutOfRangeException(),
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (1)
149throw new ArgumentOutOfRangeException(nameof(count));
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
256throw new ArgumentOutOfRangeException(nameof(stream));
Logging\BinaryLogger\Postprocessing\StreamExtensions.cs (1)
19throw new ArgumentOutOfRangeException(nameof(bytesCount), ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Binlog_StreamUtils_UnsupportedSkipOffset",
Utilities\SimpleVersion.cs (4)
53throw new ArgumentOutOfRangeException(nameof(major)); 58throw new ArgumentOutOfRangeException(nameof(minor)); 63throw new ArgumentOutOfRangeException(nameof(build)); 68throw new ArgumentOutOfRangeException(nameof(revision));
Microsoft.Build.Engine (1)
Shared\ErrorUtilities.cs (1)
560throw new ArgumentOutOfRangeException(parameterName);
Microsoft.Build.Engine.OM.UnitTests (1)
ErrorUtilities.cs (1)
466throw new ArgumentOutOfRangeException(parameterName);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\TaskHostTaskComplete_Tests.cs (1)
61new ArgumentOutOfRangeException()),
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
148throw new ArgumentOutOfRangeException(nameof(index));
BinaryLogger_Tests.cs (1)
155throw new ArgumentOutOfRangeException(nameof(replayMode), replayMode, null);
Definition\ProjectEvaluationContext_Tests.cs (4)
87throw new ArgumentOutOfRangeException(nameof(policy), policy, null); 836throw new ArgumentOutOfRangeException(nameof(policy), policy, null); 885throw new ArgumentOutOfRangeException(nameof(policy), policy, null); 941throw new ArgumentOutOfRangeException(nameof(policy), policy, null);
Evaluation\Expander_Tests.cs (1)
3955_ => throw new ArgumentOutOfRangeException(nameof(hashType))
ProjectCache\ProjectCacheTests.cs (2)
187_ => throw new ArgumentOutOfRangeException() 820throw new ArgumentOutOfRangeException();
Microsoft.Build.Framework (12)
SegmentedArray.cs (8)
32throw new ArgumentOutOfRangeException(nameof(length)); 52throw new ArgumentOutOfRangeException(nameof(length)); 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);
SegmentedArray`1.cs (1)
73throw new ArgumentOutOfRangeException(nameof(length));
ThrowHelper.cs (3)
56throw new ArgumentOutOfRangeException(); 153throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 220return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
Microsoft.Build.Tasks.Core (3)
ErrorUtilities.cs (1)
466throw new ArgumentOutOfRangeException(parameterName);
StreamMappedString.cs (2)
159throw new ArgumentOutOfRangeException(nameof(offset)); 382throw new ArgumentOutOfRangeException(nameof(length));
Microsoft.Build.Utilities.Core (1)
ErrorUtilities.cs (1)
466throw new ArgumentOutOfRangeException(parameterName);
Microsoft.Cci.Extensions (4)
Comparers\ApiComparer.cs (1)
118throw new ArgumentOutOfRangeException("kind");
Extensions\CSharp\CSharpCciExtensions.cs (1)
92throw new ArgumentOutOfRangeException();
Extensions\CustomAttributeProvider.cs (1)
85throw new ArgumentOutOfRangeException(nameof(typeCode));
Mappings\ElementMapping.cs (1)
50throw new ArgumentOutOfRangeException("index");
Microsoft.DotNet.AsmDiff (10)
Csv\DiffDifferenceCsvColumn.cs (1)
40throw new ArgumentOutOfRangeException("differenceType");
Csv\DiffInNewCsvColumn.cs (1)
40throw new ArgumentOutOfRangeException("differenceType");
Csv\DiffInOldCsvColumn.cs (1)
40throw new ArgumentOutOfRangeException("differenceType");
Csv\DiffTokensCsvColumn.cs (1)
75throw new ArgumentOutOfRangeException("differenceType");
Csv\DiffVirtualityCsvColumn.cs (1)
45throw new ArgumentOutOfRangeException();
DiffEngine.cs (2)
74throw new ArgumentOutOfRangeException("format"); 93throw new ArgumentOutOfRangeException("format");
DiffRecorder.cs (1)
161throw new ArgumentOutOfRangeException("style");
Program.cs (2)
189throw new ArgumentOutOfRangeException(); 196throw new ArgumentOutOfRangeException();
Microsoft.DotNet.Build.Tasks.Workloads (1)
Swix\MsiSwixProject.wix.cs (1)
78throw new ArgumentOutOfRangeException(Strings.ChipOrMachineArchRequired);
Microsoft.DotNet.Helix.Client (1)
Job.cs (1)
13if (pollingIntervalMs < 5000) throw new ArgumentOutOfRangeException(nameof(pollingIntervalMs), pollingIntervalMs, "The polling interval cannot be less than 5000.");
Microsoft.DotNet.VersionTools.Tasks (1)
src\SubmitPullRequest.cs (1)
163throw new ArgumentOutOfRangeException(
Microsoft.Extensions.Caching.Abstractions (7)
CacheEntryExtensions.cs (1)
159throw new ArgumentOutOfRangeException(nameof(size), size, $"{nameof(size)} must be non-negative.");
DistributedCacheEntryOptions.cs (2)
45throw new ArgumentOutOfRangeException( 69throw new ArgumentOutOfRangeException(
MemoryCacheEntryExtensions.cs (1)
40throw new ArgumentOutOfRangeException(nameof(size), size, $"{nameof(size)} must be non-negative.");
MemoryCacheEntryOptions.cs (3)
48throw new ArgumentOutOfRangeException( 72throw new ArgumentOutOfRangeException( 108throw new ArgumentOutOfRangeException(nameof(value), value, $"{nameof(value)} must be non-negative.");
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
98=> throw new ArgumentOutOfRangeException(nameof(count));
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
305throw new ArgumentOutOfRangeException(nameof(kind));
Microsoft.Extensions.Caching.Memory (5)
CacheEntry.cs (3)
104throw new ArgumentOutOfRangeException( 125throw new ArgumentOutOfRangeException( 162throw new ArgumentOutOfRangeException(nameof(value), value, $"{nameof(value)} must be non-negative.");
MemoryCacheOptions.cs (2)
45throw new ArgumentOutOfRangeException(nameof(value), value, $"{nameof(value)} must be non-negative."); 69throw new ArgumentOutOfRangeException(nameof(value), value, $"{nameof(value)} must be between 0 and 1 inclusive.");
Microsoft.Extensions.Caching.MicroBenchmarks (2)
DistributedCacheBenchmarks.cs (1)
84_ => throw new ArgumentOutOfRangeException(nameof(Backend)),
src\Caching\Hybrid\src\Internal\RecyclableArrayBufferWriter.cs (1)
98=> throw new ArgumentOutOfRangeException(nameof(count));
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
54throw new ArgumentOutOfRangeException(
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
593throw new ArgumentOutOfRangeException(
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (1)
751throw new ArgumentOutOfRangeException(nameof(index));
ServiceLookup\CallSiteVisitor.cs (1)
35throw new ArgumentOutOfRangeException();
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
294throw new ArgumentOutOfRangeException(nameof(index));
HealthCheckLogScope.cs (1)
25throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (3)
HealthCheckRegistration.cs (3)
63throw new ArgumentOutOfRangeException(nameof(timeout)); 115throw new ArgumentOutOfRangeException(nameof(timeout)); 154throw new ArgumentOutOfRangeException(nameof(value));
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
179throw new ArgumentOutOfRangeException(nameof(index));
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.Extensions.Logging.Console (8)
ConsoleLoggerOptions.cs (3)
32throw new ArgumentOutOfRangeException(nameof(value)); 78throw new ArgumentOutOfRangeException(SR.Format(SR.QueueModeNotSupported, nameof(value))); 97throw new ArgumentOutOfRangeException(SR.Format(SR.MaxQueueLengthBadValue, nameof(value)));
ConsoleLoggerProcessor.cs (2)
28throw new ArgumentOutOfRangeException(SR.Format(SR.MaxQueueLengthBadValue, nameof(value))); 46throw new ArgumentOutOfRangeException(SR.Format(SR.QueueModeNotSupported, nameof(value)));
JsonConsoleFormatter.cs (1)
123_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
SimpleConsoleFormatter.cs (1)
164_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
SystemdConsoleFormatter.cs (1)
122_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
Microsoft.Extensions.Primitives (3)
StringValues.cs (1)
375throw new ArgumentOutOfRangeException(nameof(arrayIndex));
ThrowHelper.cs (2)
21throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 51return new ArgumentOutOfRangeException(GetArgumentName(argument));
Microsoft.Interop.ComInterfaceGenerator (5)
ComInterfaceGenerator.cs (1)
395throw new ArgumentOutOfRangeException(nameof(options), "No-wrapper options should have been filtered out before calling this method.");
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
24throw new ArgumentOutOfRangeException(nameof(direction));
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (2)
16throw new ArgumentOutOfRangeException(nameof(ordinal)); 32throw new ArgumentOutOfRangeException(nameof(ordinal));
Microsoft.Interop.LibraryImportGenerator (2)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (2)
16throw new ArgumentOutOfRangeException(nameof(ordinal)); 32throw new ArgumentOutOfRangeException(nameof(ordinal));
Microsoft.Interop.SourceGeneration (2)
GeneratedStatements.cs (1)
191_ => throw new ArgumentOutOfRangeException(nameof(stage))
Marshalling\MarshallerHelpers.cs (1)
26_ => throw new System.ArgumentOutOfRangeException(nameof(byValue))
Microsoft.JSInterop (4)
Implementation\JSStreamReference.cs (2)
26throw new ArgumentOutOfRangeException(nameof(totalLength), totalLength, "Length must be a positive value."); 38throw new ArgumentOutOfRangeException(nameof(maxAllowedSize), $"The incoming data stream of length {Length} exceeds the maximum allowed length {maxAllowedSize}.");
JSRuntime.cs (1)
205throw new ArgumentOutOfRangeException($"Element id '{id}' cannot be added to the byte arrays to be revived with length '{ByteArraysToBeRevived.Count}'.", innerException: null);
src\Components\Shared\src\ArrayBuilder.cs (1)
214throw new ArgumentOutOfRangeException("index");
Microsoft.Net.Http.Headers (13)
ContentDispositionHeaderValue.cs (4)
182throw new ArgumentOutOfRangeException(nameof(value)); 800throw new ArgumentOutOfRangeException(nameof(index)); 818throw new ArgumentOutOfRangeException(nameof(digit)); 832throw new ArgumentOutOfRangeException(nameof(next));
ContentRangeHeaderValue.cs (3)
45throw new ArgumentOutOfRangeException(nameof(to)); 50throw new ArgumentOutOfRangeException(nameof(from)); 85throw new ArgumentOutOfRangeException(nameof(@from));
HeaderUtilities.cs (2)
33throw new ArgumentOutOfRangeException(nameof(value)); 509throw new ArgumentOutOfRangeException(nameof(value), value, "The value to be formatted must be non-negative.");
RangeItemHeaderValue.cs (3)
35throw new ArgumentOutOfRangeException(nameof(from)); 39throw new ArgumentOutOfRangeException(nameof(to)); 43throw new ArgumentOutOfRangeException(nameof(from));
StringWithQualityHeaderValue.cs (1)
51throw new ArgumentOutOfRangeException(nameof(quality));
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\Collection.vb (3)
403Throw New ArgumentOutOfRangeException(NameOf(Index)) 425Throw New ArgumentOutOfRangeException(NameOf(Index)) 438Throw New ArgumentOutOfRangeException(NameOf(Index))
MonoAOTCompiler (1)
MonoAOTCompiler.cs (1)
842_ => throw new ArgumentOutOfRangeException()
MSBuild (1)
ErrorUtilities.cs (1)
466throw new ArgumentOutOfRangeException(parameterName);
MSBuildTaskHost (2)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
466throw new ArgumentOutOfRangeException(parameterName);
Immutable\ImmutableDictionary.cs (1)
118throw new ArgumentOutOfRangeException(nameof(arrayIndex));
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
465throw new ArgumentOutOfRangeException(nameof(i));
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (2)
51throw new ArgumentOutOfRangeException("major", 57throw new ArgumentOutOfRangeException("minor",
PresentationCore (75)
MS\Internal\FontCache\FontCacheUtil.cs (6)
94throw new ArgumentOutOfRangeException(); 106throw new ArgumentOutOfRangeException(); 125throw new ArgumentOutOfRangeException(); 147throw new ArgumentOutOfRangeException(); 157throw new ArgumentOutOfRangeException(); 172throw new ArgumentOutOfRangeException();
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\Ink\StylusShape.cs (4)
51throw new ArgumentOutOfRangeException("width"); 56throw new ArgumentOutOfRangeException("height"); 61throw new ArgumentOutOfRangeException("rotation"); 66throw new ArgumentOutOfRangeException("tip");
MS\Internal\IO\Packaging\NetStream.cs (1)
257throw new ArgumentOutOfRangeException("origin", SR.SeekOriginInvalid);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (11)
67throw new ArgumentOutOfRangeException("bufferLengthInBits", SR.InvalidBufferLength); 81throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 110throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 138throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 168throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 196throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 247throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 252throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsGreatThanRemainingBits); 381throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 420throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange); 449throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
System\Windows\DataObjectEventArgs.cs (1)
55throw new ArgumentOutOfRangeException("routedEvent");
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 (3)
205throw new ArgumentOutOfRangeException("diameter", SR.InvalidDiameter); 220throw new System.ArgumentOutOfRangeException("percentageWithinBounds"); 272throw new System.ArgumentOutOfRangeException("percentageWithinLasso");
System\Windows\Ink\StrokeCollection2.cs (4)
78throw new ArgumentOutOfRangeException("diameter", SR.InvalidDiameter); 96throw new System.ArgumentOutOfRangeException("percentageWithinLasso"); 166throw new System.ArgumentOutOfRangeException("percentageWithinBounds"); 448throw new System.ArgumentOutOfRangeException("percentageWithinLasso");
System\Windows\Input\Command\InputBindingCollection.cs (2)
186throw new ArgumentOutOfRangeException("index"); 210throw new ArgumentOutOfRangeException("index");
System\Windows\Input\InertiaExpansionBehavior.cs (1)
58throw new ArgumentOutOfRangeException("value");
System\Windows\Input\InertiaRotationBehavior.cs (2)
58throw new ArgumentOutOfRangeException("value"); 78throw new ArgumentOutOfRangeException("value");
System\Windows\Input\InertiaTranslationBehavior.cs (2)
58throw new ArgumentOutOfRangeException("value"); 78throw new ArgumentOutOfRangeException("value");
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\InterOp\D3DImage.cs (2)
148throw new ArgumentOutOfRangeException("backBufferType"); 250throw new ArgumentOutOfRangeException("timeout");
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\Animation\TimelineClockCollection.cs (1)
300throw new ArgumentOutOfRangeException("index");
System\Windows\Media\CharacterMetricsDictionary.cs (1)
373throw new ArgumentOutOfRangeException(SR.Format(SR.CodePointOutOfRange, key));
System\Windows\Media\Effects\ShaderEffect.cs (4)
58throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding); 85throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding); 112throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding); 139throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding);
System\Windows\Media\FormattedText.cs (3)
312throw new ArgumentOutOfRangeException("count"); 1347throw new ArgumentOutOfRangeException("value", SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1350throw new ArgumentOutOfRangeException("value", SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\GlyphRun.cs (3)
511throw new ArgumentOutOfRangeException("characterHit"); 737throw new ArgumentOutOfRangeException("characterHit"); 784throw new ArgumentOutOfRangeException("characterHit");
System\Windows\Media\GlyphTypeface.cs (1)
1071throw new ArgumentOutOfRangeException("glyphIndex", SR.Format(SR.GlyphIndexOutOfRange, glyphIndex));
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
248throw new ArgumentOutOfRangeException("timeout");
System\Windows\Media\Visual.cs (1)
2536throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Media\VisualCollection.cs (1)
266throw new ArgumentOutOfRangeException(nameof(value), SR.VisualCollection_NotEnoughCapacity);
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
847throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 879throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Media3D\Visual3D.cs (1)
1000throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
PresentationFramework (151)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
108throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Controls\InnerItemCollectionView.cs (1)
319throw new ArgumentOutOfRangeException("index",
MS\Internal\Controls\TemplatedAdorner.cs (1)
117throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Data\ClrBindingWorker.cs (1)
659throw new ArgumentOutOfRangeException("index");
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
359throw new ArgumentOutOfRangeException("index");
MS\Internal\Data\CompositeCollectionView.cs (1)
210throw new ArgumentOutOfRangeException("index");
MS\Internal\Data\IndexedEnumerable.cs (1)
254throw new ArgumentOutOfRangeException("index"); // validating the index argument
MS\Internal\Data\PropertyPathWorker.cs (1)
1578_host.ReportGetValueError(k, item, new ArgumentOutOfRangeException("index"));
MS\Internal\Documents\ContentElementCollection.cs (3)
79throw new ArgumentOutOfRangeException("index", SR.TableCollectionOutOfRangeNeedNonNegNum); 111throw new ArgumentOutOfRangeException("index", SR.TableCollectionOutOfRangeNeedNonNegNum); 763throw new ArgumentOutOfRangeException(SR.TableCollectionNotEnoughCapacity);
MS\Internal\Documents\DocumentGrid.cs (9)
435throw new ArgumentOutOfRangeException("scale"); 602throw new ArgumentOutOfRangeException("offset"); 645throw new ArgumentOutOfRangeException("offset"); 811throw new ArgumentOutOfRangeException("value"); 833throw new ArgumentOutOfRangeException("value"); 1009throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 2149throw new ArgumentOutOfRangeException("offset"); 2169throw new ArgumentOutOfRangeException("offset"); 2977throw new ArgumentOutOfRangeException("args");
MS\Internal\Documents\DocumentGridPage.cs (2)
193throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 197throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\DocumentPageHost.cs (1)
126throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
78throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber); 151throw new ArgumentOutOfRangeException("pageNumber", SR.IDPNegativePageNumber);
MS\Internal\Documents\FlowDocumentView.cs (1)
231throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\PageCache.cs (5)
367throw new ArgumentOutOfRangeException("args"); 469throw new ArgumentOutOfRangeException("parameter"); 510throw new ArgumentOutOfRangeException("parameter"); 593throw new ArgumentOutOfRangeException("parameter"); 613throw new ArgumentOutOfRangeException("args");
MS\Internal\Documents\RowCache.cs (1)
1274throw new ArgumentOutOfRangeException("args");
MS\Internal\Documents\TableColumnCollectionInternal.cs (6)
105throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 245throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 277throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 281throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 324throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 332throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (6)
109throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 193throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 226throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 230throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 410throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 418throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
MS\Internal\Documents\TextDocumentView.cs (8)
95throw new ArgumentOutOfRangeException("position"); 239throw new ArgumentOutOfRangeException("position"); 290throw new ArgumentOutOfRangeException("position"); 310throw new ArgumentOutOfRangeException("position"); 329throw new ArgumentOutOfRangeException("position"); 348throw new ArgumentOutOfRangeException("position"); 371throw new ArgumentOutOfRangeException("start"); 375throw new ArgumentOutOfRangeException("end");
MS\Internal\Documents\TextParagraphView.cs (1)
162throw new ArgumentOutOfRangeException("position");
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\IO\Packaging\ManagedIStream.cs (1)
83throw new ArgumentOutOfRangeException("origin");
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
103throw new ArgumentOutOfRangeException(nameof(index)); 129Exception e = new ArgumentOutOfRangeException(nameof(index), ErrorStrings.ArgumentOutOfRange_IndexLargerThanMaxValue);
System\Windows\Automation\Peers\GridSplitterAutomationPeer.cs (2)
55throw new ArgumentOutOfRangeException("x"); 58throw new ArgumentOutOfRangeException("y");
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\AccessText.cs (1)
536throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
150throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Calendar.cs (1)
581throw new ArgumentOutOfRangeException("d", SR.Calendar_OnSelectedDateChanged_InvalidValue);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (3)
193throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates); 246throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates); 291throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates);
System\Windows\Controls\ColumnDefinition.cs (11)
95throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 117throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 241throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 255throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 299throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 318throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 322throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 443throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 453throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 469throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 479throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
System\Windows\Controls\DataGrid.cs (1)
387throw new ArgumentOutOfRangeException("displayIndex", displayIndex, SR.DataGrid_DisplayIndexOutOfRange);
System\Windows\Controls\DataGridColumnCollection.cs (3)
71throw new ArgumentOutOfRangeException("index", SR.Format(SR.DataGrid_ColumnIndexOutOfRange, item.Header)); 481throw new ArgumentOutOfRangeException("displayIndex", oldDisplayIndex, SR.Format(SR.DataGrid_ColumnDisplayIndexOutOfRange, changingColumn.Header)); 724throw new ArgumentOutOfRangeException("displayIndex", displayIndex, SR.Format(SR.DataGrid_ColumnDisplayIndexOutOfRange, column.Header));
System\Windows\Controls\DatePicker.cs (1)
1132DatePickerDateValidationErrorEventArgs dateValidationError = new DatePickerDateValidationErrorEventArgs(new ArgumentOutOfRangeException("text", SR.Calendar_OnSelectedDateChanged_InvalidValue), text);
System\Windows\Controls\Decorator.cs (1)
179throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\DocumentViewer.cs (2)
145throw new ArgumentOutOfRangeException("pagesAcross"); 1055throw new ArgumentOutOfRangeException("pagesAcross");
System\Windows\Controls\Grid.cs (1)
329throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\GridSplitter.cs (1)
426throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\InkCanvas.cs (1)
382throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\InkPresenter.cs (2)
264throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 278throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Panel.cs (1)
383throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
224throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
473throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
130throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\PopupRoot.cs (1)
79throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
352throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 365throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 695throw new ArgumentOutOfRangeException(parameterName, SR.Format(SR.ScrollViewer_CannotBeNaN, parameterName));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
287throw new ArgumentOutOfRangeException("offset"); 304throw new ArgumentOutOfRangeException("offset");
System\Windows\Controls\Primitives\Track.cs (1)
380throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\RowDefinition.cs (11)
95throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 117throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 241throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 255throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 299throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 318throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 322throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 443throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 453throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 469throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 479throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
System\Windows\Controls\SelectedDatesCollection.cs (1)
204throw new ArgumentOutOfRangeException(SR.Calendar_OnSelectedDateChanged_InvalidValue);
System\Windows\Controls\TextBlock.cs (1)
1164throw new ArgumentOutOfRangeException("index");
System\Windows\Controls\ToolBarTray.cs (1)
484throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ViewBox.cs (1)
243throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ViewPort3D.cs (1)
191throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Data\CompositeCollection.cs (1)
252throw new ArgumentOutOfRangeException("removeIndex",
System\Windows\Data\RelativeSource.cs (1)
220throw new ArgumentOutOfRangeException(SR.RelativeSourceInvalidAncestorLevel);
System\Windows\Documents\AdornerDecorator.cs (2)
212throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 225throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\windows\Documents\CaretElement.cs (1)
111throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
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\Documents\FixedPage.cs (1)
714throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\FigureLength.cs (1)
113throw new ArgumentOutOfRangeException(SR.Format(SR.InvalidCtorParameterNoNegative, "value"));
System\Windows\FrameworkContentElement.cs (1)
2126throw new ArgumentOutOfRangeException("value", SR.TemplateChildIndexOutOfRange);
System\Windows\FrameworkElement.cs (3)
655throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 659throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange); 6253throw new ArgumentOutOfRangeException("value", SR.TemplateChildIndexOutOfRange);
System\Windows\Input\KeyboardNavigation.cs (1)
671throw new ArgumentOutOfRangeException("index", index, SR.Visual_ArgumentOutOfRange);
System\Windows\Interop\DynamicScriptObject.cs (2)
140throw new ArgumentOutOfRangeException("indexes"); 168throw new ArgumentOutOfRangeException("indexes");
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (7)
350throw new ArgumentOutOfRangeException("assemblyId"); 364throw new ArgumentOutOfRangeException("assemblyId", SR.Format(SR.AssemblyIdOutOfSequence, assemblyId)); 374throw new ArgumentOutOfRangeException("typeId"); 389throw new ArgumentOutOfRangeException("typeId", SR.Format(SR.TypeIdOutOfSequence, typeId)); 399throw new ArgumentOutOfRangeException("propertyId"); 413throw new ArgumentOutOfRangeException("propertyId", SR.Format(SR.PropertyIdOutOfSequence, propertyId)); 431throw new ArgumentOutOfRangeException("stringId", SR.Format(SR.StringIdOutOfSequence, stringId));
System\Windows\Markup\Baml2006\SharedStream.cs (2)
137throw new ArgumentOutOfRangeException(nameof(value), value, string.Empty); 241throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty);
System\Windows\Markup\XamlStream.cs (2)
172throw new ArgumentOutOfRangeException( "offset" ); 317throw new ArgumentOutOfRangeException( "offset" );
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
404throw new ArgumentOutOfRangeException("index"); 440throw new ArgumentOutOfRangeException("index");
ReachFramework (59)
AlphaFlattener\MetroDevice.cs (1)
775throw new ArgumentOutOfRangeException("maxEntries", maxEntries, string.Empty);
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
34throw new ArgumentOutOfRangeException("srid", srid, string.Empty);
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
19throw new ArgumentOutOfRangeException("maxEntries", maxEntries, string.Empty);
PrintConfig\DocumentNUp.cs (2)
524throw new ArgumentOutOfRangeException("value", 637throw new ArgumentOutOfRangeException("value");
PrintConfig\FallbackPTProvider.cs (1)
572throw new ArgumentOutOfRangeException("baseType");
PrintConfig\JobCollate.cs (1)
285throw new ArgumentOutOfRangeException("value");
PrintConfig\JobDuplex.cs (1)
283throw new ArgumentOutOfRangeException("value");
PrintConfig\JobInputBins.cs (1)
367throw new ArgumentOutOfRangeException("value");
PrintConfig\JobPageOrder.cs (1)
257throw new ArgumentOutOfRangeException("value");
PrintConfig\JobStaple.cs (1)
289throw new ArgumentOutOfRangeException("value");
PrintConfig\PageBorderless.cs (1)
258throw new ArgumentOutOfRangeException("value");
PrintConfig\PageCopyCount.cs (1)
93throw new ArgumentOutOfRangeException("value",
PrintConfig\PageDeviceFont.cs (1)
259throw new ArgumentOutOfRangeException("value");
PrintConfig\PageMediaSize.cs (2)
562throw new ArgumentOutOfRangeException("value"); 570throw new ArgumentOutOfRangeException((mediaSizeWidth <= 0) ? "mediaSizeWidth" : "mediaSizeHeight",
PrintConfig\PageMediaType.cs (1)
261throw new ArgumentOutOfRangeException("value");
PrintConfig\PageOrientation.cs (1)
257throw new ArgumentOutOfRangeException("value");
PrintConfig\PageOutputColor.cs (1)
261throw new ArgumentOutOfRangeException("value");
PrintConfig\PageOutputQuality.cs (1)
259throw new ArgumentOutOfRangeException("value");
PrintConfig\PageResolution.cs (3)
357throw new ArgumentOutOfRangeException("value", 384throw new ArgumentOutOfRangeException("value", 412throw new ArgumentOutOfRangeException("value");
PrintConfig\PageScaling.cs (1)
532throw new ArgumentOutOfRangeException("squareScale",
PrintConfig\PageTrueTypeFont.cs (1)
259throw new ArgumentOutOfRangeException("value");
PrintConfig\PhotoPrintingIntent.cs (1)
257throw new ArgumentOutOfRangeException("value");
PrintConfig\PrtCap_Public.cs (1)
117throw new ArgumentOutOfRangeException("feature");
PrintConfig\PrtTicket_Public_Simple.cs (25)
366throw new ArgumentOutOfRangeException("value"); 411throw new ArgumentOutOfRangeException("value", 456throw new ArgumentOutOfRangeException("value"); 500throw new ArgumentOutOfRangeException("value"); 570throw new ArgumentOutOfRangeException("value"); 622throw new ArgumentOutOfRangeException("value"); 666throw new ArgumentOutOfRangeException("value"); 710throw new ArgumentOutOfRangeException("value"); 795throw new ArgumentOutOfRangeException("value"); 803throw new ArgumentOutOfRangeException("value.PageMediaSizeName"); 809throw new ArgumentOutOfRangeException("value", 815throw new ArgumentOutOfRangeException("value", 865throw new ArgumentOutOfRangeException("value"); 909throw new ArgumentOutOfRangeException("value"); 953throw new ArgumentOutOfRangeException("value"); 1037throw new ArgumentOutOfRangeException("value"); 1045throw new ArgumentOutOfRangeException("value"); 1051throw new ArgumentOutOfRangeException("value", 1057throw new ArgumentOutOfRangeException("value", 1114throw new ArgumentOutOfRangeException("value", 1161throw new ArgumentOutOfRangeException("value", 1207throw new ArgumentOutOfRangeException("value"); 1251throw new ArgumentOutOfRangeException("value"); 1295throw new ArgumentOutOfRangeException("value"); 1339throw new ArgumentOutOfRangeException("value");
PrintConfig\PTConverter.cs (3)
249throw new ArgumentOutOfRangeException(nameof(scope)); 269throw new ArgumentOutOfRangeException(nameof(baseType)); 277throw new ArgumentOutOfRangeException(nameof(scope));
PrintConfig\PTManager.cs (1)
384throw new ArgumentOutOfRangeException("scope");
Serialization\XpsFontSubsetter.cs (3)
353throw new ArgumentOutOfRangeException(SR.ReachPackaging_SequenceCntMustBe1); 368throw new ArgumentOutOfRangeException(SR.ReachPackaging_SequenceCntMustBe1); 373throw new ArgumentOutOfRangeException(SR.ReachPackaging_CommitCountPolicyLessThan1);
System.Collections (15)
System\Collections\BitArray.cs (1)
1107throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess);
System\Collections\Generic\LinkedList.cs (1)
202throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_BiggerThanCollection);
System\Collections\Generic\PriorityQueue.cs (1)
951throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
System\Collections\Generic\SortedList.cs (7)
233throw new ArgumentOutOfRangeException(nameof(value), value, SR.ArgumentOutOfRange_SmallCapacity); 437throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 468throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 527throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 540throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 564throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess); 688throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLess);
System\Collections\Generic\SortedSet.TreeSubSet.cs (3)
56throw new ArgumentOutOfRangeException(nameof(item)); 346throw new ArgumentOutOfRangeException(nameof(lowerValue)); 350throw new ArgumentOutOfRangeException(nameof(upperValue));
System\Collections\Generic\Stack.cs (2)
103throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 136throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
System.Collections.Concurrent (6)
System\Collections\Concurrent\BlockingCollection.cs (4)
1574throw new ArgumentOutOfRangeException(nameof(index), index, SR.BlockingCollection_CopyTo_NonNegative); 1666throw new ArgumentOutOfRangeException( 1701throw new ArgumentOutOfRangeException(nameof(timeout), timeout, 1715throw new ArgumentOutOfRangeException(nameof(millisecondsTimeout), millisecondsTimeout,
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
164throw new ArgumentOutOfRangeException(nameof(concurrencyLevel), SR.ConcurrentDictionary_ConcurrencyLevelMustBePositiveOrNegativeOne);
System\Collections\Concurrent\PartitionerStatic.cs (1)
170throw new ArgumentOutOfRangeException(nameof(partitionerOptions));
System.Collections.Immutable (3)
System\Collections\Frozen\FrozenDictionary.cs (1)
364throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
Validation\Requires.cs (2)
101throw new ArgumentOutOfRangeException(parameterName); 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.Collections.Specialized (1)
System\Collections\Specialized\OrderedDictionary.cs (1)
166throw new ArgumentOutOfRangeException(nameof(index));
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\Schema\DatabaseGeneratedAttribute.cs (1)
20throw new ArgumentOutOfRangeException(nameof(databaseGeneratedOption));
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
77throw new ArgumentOutOfRangeException(nameof(compositionOptions));
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
43throw new ArgumentOutOfRangeException(nameof(compositionOptions));
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (1)
141throw new ArgumentOutOfRangeException(nameof(compositionOptions));
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
48if (metadataConstraints?.Count == 0) throw new ArgumentOutOfRangeException(nameof(metadataConstraints));
System.Console (4)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\Console.cs (2)
578throw new ArgumentOutOfRangeException(nameof(left), left, SR.ArgumentOutOfRange_ConsoleBufferBoundaries); 580throw new ArgumentOutOfRangeException(nameof(top), top, SR.ArgumentOutOfRange_ConsoleBufferBoundaries);
System\ConsoleKeyInfo.cs (1)
22throw new ArgumentOutOfRangeException(nameof(key), SR.ArgumentOutOfRange_ConsoleKey);
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
81ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName); 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\Data\SQLTypes\SQLString.cs (1)
681throw new ArgumentOutOfRangeException(nameof(compareOptions));
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Activity.cs (7)
1802throw new ArgumentOutOfRangeException(nameof(idData)); 1815throw new ArgumentOutOfRangeException(nameof(idData)); 1863throw new ArgumentOutOfRangeException(nameof(idData)); 1935throw new ArgumentOutOfRangeException("idData"); 1995throw new ArgumentOutOfRangeException(nameof(idData)); 2008throw new ArgumentOutOfRangeException(nameof(idData)); 2054throw new ArgumentOutOfRangeException(nameof(idData));
System\Diagnostics\Metrics\TagList.cs (5)
113throw new ArgumentOutOfRangeException(nameof(index)); 142throw new ArgumentOutOfRangeException(nameof(index)); 270throw new ArgumentOutOfRangeException(nameof(arrayIndex)); 286throw new ArgumentOutOfRangeException(nameof(index)); 344throw new ArgumentOutOfRangeException(nameof(index));
System.Diagnostics.TraceSource (2)
System\Diagnostics\TraceListener.cs (2)
114throw new ArgumentOutOfRangeException(nameof(IndentSize), value, SR.TraceListenerIndentSize); 155throw new ArgumentOutOfRangeException(nameof(value));
System.Formats.Asn1 (12)
System\Formats\Asn1\Asn1Tag.cs (3)
70throw new ArgumentOutOfRangeException(nameof(universalTagNumber)); 107throw new ArgumentOutOfRangeException(nameof(tagClass)); 112throw new ArgumentOutOfRangeException(nameof(tagValue));
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
32_ => throw new ArgumentOutOfRangeException(nameof(encodingType), encodingType, null), 234throw new ArgumentOutOfRangeException(nameof(allowedChars));
System\Formats\Asn1\AsnDecoder.cs (1)
704throw new ArgumentOutOfRangeException(nameof(ruleSet));
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
65throw new ArgumentOutOfRangeException(nameof(twoDigitYearMax));
System\Formats\Asn1\AsnReaderOptions.cs (1)
34throw new ArgumentOutOfRangeException(nameof(value));
System\Formats\Asn1\AsnWriter.BitString.cs (1)
50throw new ArgumentOutOfRangeException(
System\Formats\Asn1\AsnWriter.cs (2)
45throw new ArgumentOutOfRangeException(nameof(ruleSet)); 68throw new ArgumentOutOfRangeException(nameof(initialCapacity), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
65throw new ArgumentOutOfRangeException(nameof(value));
System.Formats.Cbor (13)
System\Formats\Cbor\CborConformanceLevel.cs (9)
62throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 79throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 96throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 113throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 135throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 152throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 169throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 186throw new ArgumentOutOfRangeException(nameof(conformanceMode)); 203throw new ArgumentOutOfRangeException(nameof(conformanceMode));
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
50throw new ArgumentOutOfRangeException(nameof(definiteLength));
System\Formats\Cbor\Writer\CborWriter.cs (1)
98< -1 => throw new ArgumentOutOfRangeException(nameof(initialCapacity)),
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
68throw new ArgumentOutOfRangeException(nameof(definiteLength));
System\Formats\Cbor\Writer\CborWriter.Simple.cs (1)
121throw new ArgumentOutOfRangeException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
System.Formats.Tar (6)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\Formats\Tar\SeekableSubReadStream.cs (1)
90_ => throw new ArgumentOutOfRangeException(nameof(origin)),
System\Formats\Tar\TarEntry.cs (1)
145throw new ArgumentOutOfRangeException(nameof(value));
System\Formats\Tar\TarHeader.Write.cs (2)
76_ => throw new ArgumentOutOfRangeException(nameof(format)) 125_ => throw new ArgumentOutOfRangeException(nameof(format))
System\Formats\Tar\TarWriter.cs (1)
70throw new ArgumentOutOfRangeException(nameof(format));
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\Deflater.cs (1)
62throw new ArgumentOutOfRangeException(nameof(compressionLevel));
System\IO\Compression\ZipArchive.cs (1)
155throw new ArgumentOutOfRangeException(nameof(mode));
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 (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\Compression\ZipFile.Create.cs (2)
173throw new ArgumentOutOfRangeException(nameof(mode)); 459throw new ArgumentOutOfRangeException(nameof(compressionLevel));
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.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
37throw new ArgumentOutOfRangeException(nameof(hashLengthInBytes));
System.IO.MemoryMappedFiles (23)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (20)
67throw new ArgumentOutOfRangeException(nameof(inheritability)); 72throw new ArgumentOutOfRangeException(nameof(desiredAccessRights)); 223throw new ArgumentOutOfRangeException(nameof(inheritability)); 252throw new ArgumentOutOfRangeException(nameof(inheritability)); 297throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 303throw new ArgumentOutOfRangeException(nameof(access)); 313throw new ArgumentOutOfRangeException(nameof(options)); 318throw new ArgumentOutOfRangeException(nameof(inheritability)); 354throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 360throw new ArgumentOutOfRangeException(nameof(access)); 365throw new ArgumentOutOfRangeException(nameof(options)); 370throw new ArgumentOutOfRangeException(nameof(inheritability)); 403throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_PositiveOrDefaultSizeRequired); 408throw new ArgumentOutOfRangeException(nameof(access)); 413throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 437throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_PositiveOrDefaultSizeRequired); 442throw new ArgumentOutOfRangeException(nameof(access)); 447throw new ArgumentOutOfRangeException(nameof(size), SR.ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed); 524throw new ArgumentOutOfRangeException(nameof(capacity), SR.ArgumentOutOfRange_PositiveOrDefaultCapacityRequired); 530throw new ArgumentOutOfRangeException(nameof(access));
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.Pipelines (5)
src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (1)
19throw new ArgumentOutOfRangeException(nameof(bufferSize), bufferSize, SR.ArgumentOutOfRange_NeedPosNum);
System\IO\Pipelines\StreamPipeReaderOptions.cs (2)
42bufferSize <= 0 ? throw new ArgumentOutOfRangeException(nameof(bufferSize)) : 47minimumReadSize <= 0 ? throw new ArgumentOutOfRangeException(nameof(minimumReadSize)) :
System\IO\Pipelines\StreamPipeWriterOptions.cs (1)
25minimumBufferSize <= 0 ? throw new ArgumentOutOfRangeException(nameof(minimumBufferSize)) :
System\IO\Pipelines\ThrowHelper.cs (1)
14private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(ExceptionArgument argument) => new ArgumentOutOfRangeException(argument.ToString());
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.Linq (1)
System\Linq\ThrowHelper.cs (1)
15internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument) => throw new ArgumentOutOfRangeException(GetArgumentString(argument));
System.Linq.Expressions (21)
System\Linq\Expressions\DynamicExpression.cs (4)
548_ => throw new ArgumentOutOfRangeException(nameof(index)), 608_ => throw new ArgumentOutOfRangeException(nameof(index)), 679_ => throw new ArgumentOutOfRangeException(nameof(index)), 756_ => throw new ArgumentOutOfRangeException(nameof(index)),
System\Linq\Expressions\Error.cs (1)
1197return new ArgumentOutOfRangeException(paramName);
System\Linq\Expressions\InvocationExpression.cs (6)
167throw new ArgumentOutOfRangeException(nameof(index)); 200_ => throw new ArgumentOutOfRangeException(nameof(index)), 240_ => throw new ArgumentOutOfRangeException(nameof(index)), 283_ => throw new ArgumentOutOfRangeException(nameof(index)), 329_ => throw new ArgumentOutOfRangeException(nameof(index)), 378_ => throw new ArgumentOutOfRangeException(nameof(index)),
System\Linq\Expressions\MethodCallExpression.cs (10)
238throw new ArgumentOutOfRangeException(nameof(index)); 274_ => throw new ArgumentOutOfRangeException(nameof(index)), 330_ => throw new ArgumentOutOfRangeException(nameof(index)), 397_ => throw new ArgumentOutOfRangeException(nameof(index)), 470_ => throw new ArgumentOutOfRangeException(nameof(index)), 549_ => throw new ArgumentOutOfRangeException(nameof(index)), 618throw new ArgumentOutOfRangeException(nameof(index)); 655_ => throw new ArgumentOutOfRangeException(nameof(index)), 711_ => throw new ArgumentOutOfRangeException(nameof(index)), 778_ => throw new ArgumentOutOfRangeException(nameof(index)),
System.Linq.Parallel (4)
System\Linq\ParallelEnumerable.cs (4)
419if (count < 0 || (count > 0 && int.MaxValue - (count - 1) < start)) throw new ArgumentOutOfRangeException(nameof(count)); 1623if ((~(QueryAggregationOptions.Associative | QueryAggregationOptions.Commutative) & options) != 0) throw new ArgumentOutOfRangeException(nameof(options)); 1671if ((~(QueryAggregationOptions.Associative | QueryAggregationOptions.Commutative) & options) != 0) throw new ArgumentOutOfRangeException(nameof(options)); 5923throw new ArgumentOutOfRangeException(nameof(index));
System.Linq.Queryable (1)
System\Linq\Error.cs (1)
15new ArgumentOutOfRangeException(message);
System.Memory (3)
System\ThrowHelper.cs (3)
35private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(ExceptionArgument argument) { return new ArgumentOutOfRangeException(argument.ToString()); } 50private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException_PositionOutOfRange() { return new ArgumentOutOfRangeException("position"); } 55private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException_OffsetOutOfRange() { return new ArgumentOutOfRangeException(nameof(ExceptionArgument.offset)); }
System.Memory.Data (4)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (3)
55throw new ArgumentOutOfRangeException(nameof(value)); 69throw new ArgumentOutOfRangeException(nameof(origin)); 73throw new ArgumentOutOfRangeException(nameof(offset));
System\BinaryData.cs (1)
307throw new ArgumentOutOfRangeException(nameof(stream), SR.ArgumentOutOfRange_StreamLengthMustBeNonNegativeInt32);
System.Net.Http (19)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (3)
55throw new ArgumentOutOfRangeException(nameof(value)); 69throw new ArgumentOutOfRangeException(nameof(origin)); 73throw new ArgumentOutOfRangeException(nameof(offset));
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (2)
389throw new ArgumentOutOfRangeException(nameof(destination)); 405throw new ArgumentOutOfRangeException(nameof(source));
System\Net\Http\HttpClient.cs (1)
123throw new ArgumentOutOfRangeException(nameof(value), value,
System\Net\Http\HttpClientHandler.cs (2)
235throw new ArgumentOutOfRangeException(nameof(value), value, 275throw new ArgumentOutOfRangeException(nameof(value));
System\Net\Http\HttpContent.cs (1)
611throw new ArgumentOutOfRangeException(nameof(maxBufferSize), maxBufferSize,
System\Net\Http\MultipartContent.cs (2)
76throw new ArgumentOutOfRangeException(nameof(boundary), boundary, 620throw new ArgumentOutOfRangeException(nameof(origin));
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (8)
177throw new ArgumentOutOfRangeException(nameof(value)); 215throw new ArgumentOutOfRangeException(nameof(value)); 230throw new ArgumentOutOfRangeException(nameof(value)); 246throw new ArgumentOutOfRangeException(nameof(value)); 262throw new ArgumentOutOfRangeException(nameof(value)); 289throw new ArgumentOutOfRangeException(nameof(InitialHttp2StreamWindowSize), message); 313throw new ArgumentOutOfRangeException(nameof(value), value, SR.Format(SR.net_http_value_must_be_greater_than_or_equal, value, TimeSpan.FromSeconds(1))); 338throw new ArgumentOutOfRangeException(nameof(value), value, SR.Format(SR.net_http_value_must_be_greater_than_or_equal, value, TimeSpan.FromSeconds(1)));
System.Net.HttpListener (4)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
129throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Offset)); 133throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Count));
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.Mail (1)
System\Net\Mail\MailMessage.cs (1)
161throw new ArgumentOutOfRangeException(nameof(value));
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
629throw new ArgumentOutOfRangeException(nameof(hostName),
System.Net.Primitives (7)
System\Net\Cache\RequestCachePolicy.cs (1)
17throw new ArgumentOutOfRangeException(nameof(level));
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\IPEndPoint.cs (3)
37throw new ArgumentOutOfRangeException(nameof(port)); 53throw new ArgumentOutOfRangeException(nameof(port)); 83throw new ArgumentOutOfRangeException(nameof(value));
System\Net\IPNetwork.cs (1)
64static void ThrowArgumentOutOfRangeException() => throw new ArgumentOutOfRangeException(nameof(prefixLength));
System.Net.Quic (7)
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (2)
389throw new ArgumentOutOfRangeException(nameof(destination)); 405throw new ArgumentOutOfRangeException(nameof(source));
System\Net\Quic\Internal\ThrowHelper.cs (2)
213throw new ArgumentOutOfRangeException(argumentName, value, SR.Format(SR.net_quic_in_range, propertyName, max)); 221throw new ArgumentOutOfRangeException(argumentName, value, SR.Format(SR.net_quic_timeout_use_gt_zero, propertyName));
System\Net\Quic\QuicConnectionOptions.cs (1)
47throw new ArgumentOutOfRangeException(argumentName, value, SR.Format(SR.net_quic_power_of_2, $"{nameof(QuicConnectionOptions.InitialReceiveWindowSizes)}.{propertyName}"));
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 (11)
System\Net\Cache\HttpRequestCachePolicy.cs (1)
119throw new ArgumentOutOfRangeException(nameof(level));
System\Net\FileWebRequest.cs (2)
33throw new ArgumentOutOfRangeException(nameof(uri)); 101throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero);
System\Net\FtpWebRequest.cs (3)
360throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 398throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 487throw new ArgumentOutOfRangeException(nameof(uri));
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.Security (1)
System\Net\Security\NegotiateStream.cs (1)
647throw new ArgumentOutOfRangeException(nameof(impersonationLevel), impersonationLevel.ToString(), SR.net_auth_supported_impl_levels);
System.Net.Sockets (27)
src\libraries\Common\src\System\Net\RangeValidationHelpers.cs (1)
24throw new ArgumentOutOfRangeException(nameof(segment));
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 (7)
848throw new ArgumentOutOfRangeException(nameof(port)); 871throw new ArgumentOutOfRangeException(nameof(port)); 904throw new ArgumentOutOfRangeException(nameof(port)); 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 (4)
174throw new ArgumentOutOfRangeException(nameof(port)); 441throw new ArgumentOutOfRangeException(nameof(receivedAddress), SR.net_sockets_address_small); 826throw new ArgumentOutOfRangeException(nameof(buffer.Offset)); 830throw new ArgumentOutOfRangeException(nameof(buffer.Count));
System\Net\Sockets\SocketPal.Unix.cs (1)
1947throw new ArgumentOutOfRangeException();
System\Net\Sockets\TCPClient.cs (3)
64throw new ArgumentOutOfRangeException(nameof(port)); 131throw new ArgumentOutOfRangeException(nameof(port)); 148throw new ArgumentOutOfRangeException(nameof(port));
System\Net\Sockets\TCPListener.cs (3)
41throw new ArgumentOutOfRangeException(nameof(port)); 54throw new ArgumentOutOfRangeException(nameof(port)); 247throw new ArgumentOutOfRangeException(nameof(port));
System\Net\Sockets\UDPClient.cs (5)
57throw new ArgumentOutOfRangeException(nameof(port)); 456throw new ArgumentOutOfRangeException(nameof(timeToLive)); 663throw new ArgumentOutOfRangeException(nameof(port)); 685throw new ArgumentOutOfRangeException(nameof(port)); 798throw new ArgumentOutOfRangeException(nameof(port));
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
49throw new ArgumentOutOfRangeException(
System.Net.WebSockets (9)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
129throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Offset)); 133throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Count));
System\Net\WebSockets\ValueWebSocketReceiveResult.cs (2)
35private static void ThrowCountOutOfRange() => throw new ArgumentOutOfRangeException("count"); 36private static void ThrowMessageTypeOutOfRange() => throw new ArgumentOutOfRangeException("messageType");
System\Net\WebSockets\WebSocket.cs (2)
148throw new ArgumentOutOfRangeException(nameof(keepAliveInterval), keepAliveInterval, 202throw new ArgumentOutOfRangeException(nameof(keepAliveInterval), keepAliveInterval,
System\Net\WebSockets\WebSocketCreationOptions.cs (1)
48throw new ArgumentOutOfRangeException(nameof(KeepAliveInterval), value,
System\Net\WebSockets\WebSocketDeflateOptions.cs (2)
30throw new ArgumentOutOfRangeException(nameof(ClientMaxWindowBits), value, 57throw new ArgumentOutOfRangeException(nameof(ServerMaxWindowBits), value,
System.Net.WebSockets.Client (3)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
129throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Offset)); 133throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Count));
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
183throw new ArgumentOutOfRangeException(nameof(value), value,
System.Numerics.Tensors (8)
System\NRange.cs (1)
121private static void ThrowArgumentOutOfRangeException() => throw new ArgumentOutOfRangeException("length");
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\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
130throw new ArgumentOutOfRangeException(nameof(digits));
System\ThrowHelper.cs (3)
40throw new ArgumentOutOfRangeException(); 64throw new ArgumentOutOfRangeException(); 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 (474)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (9)
92throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonZero, paramName, value)); 96throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonNegative, paramName, value)); 100throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNonNegativeNonZero, paramName, value)); 104throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeLessOrEqual, paramName, value, other)); 108throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeLess, paramName, value, other)); 112throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeGreaterOrEqual, paramName, value, other)); 116throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeGreater, paramName, value, other)); 120throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeNotEqual, paramName, (object?)value ?? "null", (object?)other ?? "null")); 124throw new ArgumentOutOfRangeException(paramName, value, SR.Format(SR.ArgumentOutOfRange_Generic_MustBeEqual, paramName, (object?)value ?? "null", (object?)other ?? "null"));
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\Generic\Queue.cs (2)
101throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 138throw new ArgumentOutOfRangeException(nameof(index), index, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
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\DebuggerBrowsableAttribute.cs (1)
34throw new ArgumentOutOfRangeException(nameof(state));
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\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
171throw new ArgumentOutOfRangeException(nameof(name));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (4)
141throw new ArgumentOutOfRangeException(nameof(type)); 168throw new ArgumentOutOfRangeException(nameof(type)); 194throw new ArgumentOutOfRangeException(nameof(type)); 233throw new ArgumentOutOfRangeException(nameof(type));
src\libraries\System.Private.CoreLib\src\System\Environment.cs (3)
128throw new ArgumentOutOfRangeException(nameof(folder), folder, SR.Format(SR.Arg_EnumIllegalVal, folder)); 131throw new ArgumentOutOfRangeException(nameof(option), option, SR.Format(SR.Arg_EnumIllegalVal, option)); 234throw new ArgumentOutOfRangeException(nameof(target), target, SR.Format(SR.Arg_EnumIllegalVal, target));
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
67new ArgumentOutOfRangeException(nameof(name), name, errno.GetErrorMessage()) :
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (5)
155throw new ArgumentOutOfRangeException(nameof(value), value, SR.ArgumentOutOfRange_AddValue); 503throw new ArgumentOutOfRangeException( 514_ => throw new ArgumentOutOfRangeException( 696throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 700throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\ChineseLunisolarCalendar.cs (3)
258throw new ArgumentOutOfRangeException("year", lunarYear, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear)); 273throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 277throw new ArgumentOutOfRangeException(nameof(year), year, SR.Format(SR.ArgumentOutOfRange_Range, MinLunisolarYear, MaxLunisolarYear));
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\DateTimeFormatInfo.cs (5)
453throw new ArgumentOutOfRangeException(nameof(value), value, SR.Argument_InvalidCalendar); 532throw new ArgumentOutOfRangeException(nameof(era), era + 1, SR.ArgumentOutOfRange_InvalidEraValue); 561throw new ArgumentOutOfRangeException(nameof(era), era + 1, SR.ArgumentOutOfRange_InvalidEraValue); 635throw new ArgumentOutOfRangeException( 665throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (12)
38throw new ArgumentOutOfRangeException( 55throw new ArgumentOutOfRangeException( 104throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 134throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 145throw new ArgumentOutOfRangeException( 162throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 173throw new ArgumentOutOfRangeException( 250throw new ArgumentOutOfRangeException( 258throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 428throw new ArgumentOutOfRangeException( 601throw new ArgumentOutOfRangeException( 666throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (20)
51throw new ArgumentOutOfRangeException( 68throw new ArgumentOutOfRangeException( 107throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 141throw new ArgumentOutOfRangeException( 215throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 228throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 250throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 254throw new ArgumentOutOfRangeException( 293throw new ArgumentOutOfRangeException( 301throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 305throw new ArgumentOutOfRangeException( 312throw new ArgumentOutOfRangeException( 330throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 334throw new ArgumentOutOfRangeException( 351throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 355throw new ArgumentOutOfRangeException( 362throw new ArgumentOutOfRangeException( 379throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 392throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 427throw new ArgumentOutOfRangeException(
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\HebrewCalendar.cs (7)
296throw new ArgumentOutOfRangeException( 314throw new ArgumentOutOfRangeException( 332throw new ArgumentOutOfRangeException( 343throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 351throw new ArgumentOutOfRangeException( 575throw new ArgumentOutOfRangeException(nameof(months), months, SR.ArgumentOutOfRange_AddValue); 881throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (11)
124throw new ArgumentOutOfRangeException( 139throw new ArgumentOutOfRangeException( 154throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 163throw new ArgumentOutOfRangeException( 176throw new ArgumentOutOfRangeException( 271throw new ArgumentOutOfRangeException( 371throw new ArgumentOutOfRangeException( 404throw new ArgumentOutOfRangeException( 413throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 437throw new ArgumentOutOfRangeException( 458throw new ArgumentOutOfRangeException(
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\JapaneseCalendar.cs (1)
273throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseLunisolarCalendar.cs (1)
145throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (9)
56throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 65throw new ArgumentOutOfRangeException( 94throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 103throw new ArgumentOutOfRangeException( 184throw new ArgumentOutOfRangeException( 308throw new ArgumentOutOfRangeException( 316throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 330throw new ArgumentOutOfRangeException( 345throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
166throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanLunisolarCalendar.cs (3)
1187throw new ArgumentOutOfRangeException( 1205throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 1209throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (11)
62throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 77throw new ArgumentOutOfRangeException( 88throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 97throw new ArgumentOutOfRangeException( 111throw new ArgumentOutOfRangeException( 223throw new ArgumentOutOfRangeException( 335throw new ArgumentOutOfRangeException( 374throw new ArgumentOutOfRangeException( 384throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 408throw new ArgumentOutOfRangeException( 428throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (2)
80throw new ArgumentOutOfRangeException(nameof(startingTextElement), startingTextElement, SR.Arg_ArgumentOutOfRangeException); 84throw new ArgumentOutOfRangeException(nameof(lengthInTextElements), lengthInTextElements, SR.Arg_ArgumentOutOfRangeException);
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
165throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanLunisolarCalendar.cs (1)
201throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
147throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (9)
297throw new ArgumentOutOfRangeException( 312throw new ArgumentOutOfRangeException(nameof(era), era, SR.ArgumentOutOfRange_InvalidEraValue); 321throw new ArgumentOutOfRangeException( 414throw new ArgumentOutOfRangeException( 543throw new ArgumentOutOfRangeException( 582throw new ArgumentOutOfRangeException( 591throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 614throw new ArgumentOutOfRangeException( 637throw new ArgumentOutOfRangeException(
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\Directory.cs (1)
212_ => throw new ArgumentOutOfRangeException(nameof(searchTarget)),
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (2)
95throw new ArgumentOutOfRangeException(nameof(matchType)); 110_ => throw new ArgumentOutOfRangeException(nameof(options)),
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 (7)
52throw new ArgumentOutOfRangeException(nameof(access)); 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 (5)
92throw new ArgumentOutOfRangeException(nameof(access)); 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\OperatingSystem.cs (1)
59throw new ArgumentOutOfRangeException(nameof(platform), platform, SR.Format(SR.Arg_EnumIllegalVal, platform));
src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (2)
38throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_IndexMustBeLess); 126throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_IndexMustBeLess);
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\Range.cs (1)
131throw new ArgumentOutOfRangeException("length");
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
388throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_ParamSequence);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (4)
228throw new ArgumentOutOfRangeException(nameof(startLine)); 233throw new ArgumentOutOfRangeException(nameof(endLine)); 238throw new ArgumentOutOfRangeException(nameof(startColumn)); 244throw new ArgumentOutOfRangeException(nameof(endColumn));
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\Runtime\Intrinsics\X86\Avx2.cs (48)
930_ => throw new ArgumentOutOfRangeException(nameof(scale)), 946_ => throw new ArgumentOutOfRangeException(nameof(scale)), 962_ => throw new ArgumentOutOfRangeException(nameof(scale)), 978_ => throw new ArgumentOutOfRangeException(nameof(scale)), 994_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1010_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1026_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1042_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1058_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1074_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1090_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1106_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1122_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1138_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1154_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1170_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1186_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1202_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1218_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1234_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1250_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1266_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1282_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1298_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1315_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1331_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1347_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1363_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1379_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1395_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1411_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1427_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1443_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1459_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1475_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1491_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1507_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1523_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1539_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1555_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1571_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1587_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1603_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1619_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1635_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1651_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1667_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1683_ => throw new ArgumentOutOfRangeException(nameof(scale)),
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.SerializationGuard.cs (1)
73throw new ArgumentOutOfRangeException(nameof(cachedValue));
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\PeriodicTimer.cs (3)
35throw new ArgumentOutOfRangeException(nameof(period)); 54throw new ArgumentOutOfRangeException(nameof(period)); 94throw new ArgumentOutOfRangeException(nameof(value));
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (8)
151throw new ArgumentOutOfRangeException( 158throw new ArgumentOutOfRangeException(nameof(maxCount), maxCount, SR.SemaphoreSlim_ctor_MaxCountWrong); 217throw new ArgumentOutOfRangeException( 248throw new ArgumentOutOfRangeException( 294throw new ArgumentOutOfRangeException( 572throw new ArgumentOutOfRangeException( 604throw new ArgumentOutOfRangeException( 767throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (2)
228throw new ArgumentOutOfRangeException( 286throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (2)
285throw new ArgumentOutOfRangeException( 307throw new ArgumentOutOfRangeException(
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
104if (maxConcurrencyLevel == 0 || maxConcurrencyLevel < -1) throw new ArgumentOutOfRangeException(nameof(maxConcurrencyLevel)); 105if (maxItemsPerTask == 0 || maxItemsPerTask < -1) throw new ArgumentOutOfRangeException(nameof(maxItemsPerTask));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (2)
537new ArgumentOutOfRangeException(nameof(options)) : 538new ArgumentOutOfRangeException(nameof(options), SR.TaskT_ConfigureAwait_InvalidOptions));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (5)
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); 3032throw new ArgumentOutOfRangeException(nameof(continuationOptions)); 3037throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_MultiTaskContinuation_FireOptions);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
246throw new ArgumentOutOfRangeException( 653throw new ArgumentOutOfRangeException(
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 (19)
101throw new ArgumentOutOfRangeException(); 218throw new ArgumentOutOfRangeException(nameof(month), month, SR.ArgumentOutOfRange_Month); 224throw new ArgumentOutOfRangeException(nameof(dayNumber), dayNumber, SR.ArgumentOutOfRange_DayNumber); 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); 260throw new ArgumentOutOfRangeException(parameterName, value, SR.Format(SR.ArgumentOutOfRange_Range, minInclusive, maxInclusive)); 377throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 542throw new ArgumentOutOfRangeException(nameof(state), state, SR.Argument_UnexpectedStateForKnownCallback); 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.AdjustmentRule.cs (1)
208throw new ArgumentOutOfRangeException(nameof(daylightDelta), daylightDelta, SR.ArgumentOutOfRange_UtcOffset);
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\Emit\RuntimeMethodBuilder.cs (1)
647throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_ParamSequence);
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.CoreLib.Generators (1)
EventSourceGenerator.Emitter.cs (1)
94throw new ArgumentOutOfRangeException(nameof(name));
System.Private.DataContractSerialization (92)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
197throw XmlObjectSerializer.CreateSerializationException(SR.JsonDateTimeOutOfRange, new ArgumentOutOfRangeException(nameof(value)));
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.Private.Uri (12)
System\Uri.cs (3)
399throw new ArgumentOutOfRangeException(nameof(baseUri)); 441throw new ArgumentOutOfRangeException(nameof(baseUri)); 545throw new ArgumentOutOfRangeException(nameof(baseUri));
System\UriExt.cs (4)
346throw new ArgumentOutOfRangeException(nameof(components), components, SR.net_uri_NotJustSerialization); 349throw new ArgumentOutOfRangeException(nameof(format)); 897throw new ArgumentOutOfRangeException(nameof(format)); 963throw new ArgumentOutOfRangeException(nameof(uriFormat));
System\UriScheme.cs (5)
138throw new ArgumentOutOfRangeException(nameof(components), components, SR.net_uri_NotJustSerialization); 141throw new ArgumentOutOfRangeException(nameof(format)); 174throw new ArgumentOutOfRangeException(nameof(schemeName)); 177throw new ArgumentOutOfRangeException(nameof(defaultPort)); 191throw new ArgumentOutOfRangeException(nameof(schemeName));
System.Private.Xml (24)
System\Xml\Base64EncoderAsync.cs (1)
19throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count));
System\Xml\BinHexEncoderAsync.cs (1)
15throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count));
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
18throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count)); 62throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count)); 106throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count)); 150throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count));
System\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
310throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count)); 364throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count));
System\Xml\Core\XmlReaderSettings.cs (1)
635throw new ArgumentOutOfRangeException(paramName);
System\Xml\Core\XmlSubtreeReader.cs (4)
295throw new ArgumentOutOfRangeException(nameof(i)); 308throw new ArgumentOutOfRangeException(nameof(i)); 364throw new ArgumentOutOfRangeException(nameof(i)); 379throw new ArgumentOutOfRangeException(nameof(i));
System\Xml\Core\XmlTextReaderImpl.cs (2)
8145throw new ArgumentOutOfRangeException((_incReadDecoder is IncrementalReadCharsDecoder) ? nameof(count) : "len"); 8150throw new ArgumentOutOfRangeException((_incReadDecoder is IncrementalReadCharsDecoder) ? nameof(index) : "offset");
System\Xml\Core\XmlWriterSettings.cs (1)
702throw new ArgumentOutOfRangeException(paramName);
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (3)
42throw new ArgumentOutOfRangeException(nameof(index)); 90throw new ArgumentOutOfRangeException(nameof(index)); 136throw new ArgumentOutOfRangeException(nameof(index));
System\Xml\Dom\XmlNodeReader.cs (4)
547throw new ArgumentOutOfRangeException(nameof(attributeIndex)); //for other senario, AttributeCount is 0, i has to be out of range 1358throw new ArgumentOutOfRangeException(nameof(attributeIndex)); 1409throw new ArgumentOutOfRangeException(nameof(attributeIndex)); 1422throw new ArgumentOutOfRangeException(nameof(attributeIndex));
System\Xml\XPath\XPathNavigatorReader.cs (1)
554throw new ArgumentOutOfRangeException(nameof(index));
System.Private.Xml.Linq (2)
System\Xml\Linq\XNodeReader.cs (2)
581throw new ArgumentOutOfRangeException(nameof(index)); 720throw new ArgumentOutOfRangeException(nameof(index));
System.Reflection.Emit (1)
System\Reflection\Emit\MethodBuilderImpl.cs (1)
137throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_ParamSequence);
System.Reflection.Metadata (30)
System\Reflection\Internal\Utilities\ImmutableMemoryStream.cs (4)
56throw new ArgumentOutOfRangeException(nameof(value)); 97_ => throw new ArgumentOutOfRangeException(nameof(origin)), 102throw new ArgumentOutOfRangeException(nameof(offset)); 107throw new ArgumentOutOfRangeException(nameof(offset));
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
30throw new ArgumentOutOfRangeException(nameof(length));
System\Reflection\Internal\Utilities\ReadOnlyUnmanagedMemoryStream.cs (3)
83_ => throw new ArgumentOutOfRangeException(nameof(origin)), 88throw new ArgumentOutOfRangeException(nameof(offset)); 93throw new ArgumentOutOfRangeException(nameof(offset));
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
114throw new ArgumentOutOfRangeException(nameof(size));
System\Reflection\Metadata\BlobBuilder.cs (1)
703throw new ArgumentOutOfRangeException(nameof(byteCount));
System\Reflection\Metadata\BlobReader.cs (1)
703throw new ArgumentOutOfRangeException(nameof(typeCode));
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
259throw new ArgumentOutOfRangeException(nameof(kind));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (2)
205throw new ArgumentOutOfRangeException(nameof(table)); 284throw new ArgumentOutOfRangeException(nameof(table));
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (5)
105_ => throw new ArgumentOutOfRangeException(nameof(tableIndex)), 186_ => throw new ArgumentOutOfRangeException(nameof(tableIndex)), 235_ => throw new ArgumentOutOfRangeException(nameof(heapIndex)), 401throw new ArgumentOutOfRangeException(nameof(rawTypeKind)); 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\Metadata\MetadataReaderProvider.cs (2)
80throw new ArgumentOutOfRangeException(nameof(size)); 177throw new ArgumentOutOfRangeException(nameof(options));
System\Reflection\PortableExecutable\PEReader.cs (2)
83throw new ArgumentOutOfRangeException(nameof(size)); 169throw new ArgumentOutOfRangeException(nameof(options));
System\Reflection\Throw.cs (6)
131throw new ArgumentOutOfRangeException(parameterName); 137throw new ArgumentOutOfRangeException(parameterName, message); 143throw new ArgumentOutOfRangeException(parameterName, SR.BlobTooLarge); 149throw new ArgumentOutOfRangeException("index"); 155throw new ArgumentOutOfRangeException("tableIndex"); 161throw new ArgumentOutOfRangeException("value");
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.InteropServices (2)
System\Runtime\InteropServices\HandleCollector.cs (2)
27throw new ArgumentOutOfRangeException(nameof(initialThreshold), initialThreshold, SR.Arg_NeedNonNegNumRequired); 31throw new ArgumentOutOfRangeException(nameof(maximumThreshold), maximumThreshold, SR.Arg_NeedNonNegNumRequired);
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 (38)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
160throw new ArgumentOutOfRangeException(nameof(signatureFormat));
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\DSA.cs (1)
1116throw new ArgumentOutOfRangeException(nameof(signatureFormat));
System\Security\Cryptography\DSASignatureFormat.cs (1)
45new ArgumentOutOfRangeException(
System\Security\Cryptography\ECDsa.cs (1)
1273throw new ArgumentOutOfRangeException(nameof(signatureFormat));
System\Security\Cryptography\HKDF.cs (3)
95throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength)); 220throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength)); 307throw new ArgumentOutOfRangeException(nameof(hashAlgorithmName));
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\CertificateRequest.Load.cs (2)
43throw new ArgumentOutOfRangeException(nameof(options), options, SR.Argument_InvalidFlag); 125throw new ArgumentOutOfRangeException(nameof(options), options, SR.Argument_InvalidFlag);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
172throw new ArgumentOutOfRangeException(
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (1)
51throw new ArgumentOutOfRangeException(
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
77throw new ArgumentOutOfRangeException(
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
55throw new ArgumentOutOfRangeException(
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.Encodings.Web (6)
System\Text\Encodings\Web\TextEncoder.cs (2)
613throw new ArgumentOutOfRangeException(nameof(startIndex)); 617throw new ArgumentOutOfRangeException(nameof(characterCount));
System\Text\Encodings\Web\ThrowHelper.cs (1)
20throw new ArgumentOutOfRangeException(GetArgumentName(argument));
System\Text\Unicode\UnicodeRange.cs (3)
27throw new ArgumentOutOfRangeException(nameof(firstCodePoint)); 31throw new ArgumentOutOfRangeException(nameof(length)); 58throw new ArgumentOutOfRangeException(nameof(lastCharacter));
System.Text.Json (15)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
39throw new ArgumentOutOfRangeException(nameof(defaults));
System\Text\Json\Document\JsonDocumentOptions.cs (1)
34throw new ArgumentOutOfRangeException(nameof(value), SR.JsonDocumentDoesNotSupportComments);
System\Text\Json\Serialization\Attributes\JsonNumberHandlingAttribute.cs (1)
25throw new ArgumentOutOfRangeException(nameof(handling));
System\Text\Json\Serialization\Attributes\JsonObjectCreationHandlingAttribute.cs (1)
47throw new ArgumentOutOfRangeException(nameof(handling));
System\Text\Json\Serialization\JsonSerializerOptions.cs (4)
173throw new ArgumentOutOfRangeException(nameof(defaults)); 447throw new ArgumentOutOfRangeException(nameof(value)); 473throw new ArgumentOutOfRangeException(nameof(value)); 643throw new ArgumentOutOfRangeException(nameof(value), SR.JsonSerializerDoesNotSupportComments);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
220throw new ArgumentOutOfRangeException(nameof(value));
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
479throw new ArgumentOutOfRangeException(nameof(value)); 519throw new ArgumentOutOfRangeException(nameof(value)); 563throw new ArgumentOutOfRangeException(nameof(value));
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.Json.SourceGeneration (2)
src\libraries\Common\src\SourceGenerators\SourceWriter.cs (1)
27static void Throw() => throw new ArgumentOutOfRangeException(nameof(value));
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
39throw new ArgumentOutOfRangeException(nameof(defaults));
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.Timeout.cs (1)
92throw new ArgumentOutOfRangeException(SR.Format(SR.IllegalDefaultRegexMatchTimeoutInAppDomain, DefaultMatchTimeout_ConfigKeyName, defaultMatchTimeOut));
System\Text\RegularExpressions\ThrowHelper.cs (2)
16throw new ArgumentOutOfRangeException(GetStringForExceptionArgument(arg)); 20throw new ArgumentOutOfRangeException(GetStringForExceptionArgument(arg), GetStringForExceptionResource(resource));
System.Threading (4)
System\Threading\Barrier.cs (4)
345throw new ArgumentOutOfRangeException(nameof(participantCount), 440throw new ArgumentOutOfRangeException(nameof(participantCount), 571throw new System.ArgumentOutOfRangeException(nameof(timeout), timeout, 632throw new System.ArgumentOutOfRangeException(nameof(millisecondsTimeout), millisecondsTimeout,
System.Threading.Channels (4)
System\Threading\Channels\Channel.cs (1)
49throw new ArgumentOutOfRangeException(nameof(capacity));
System\Threading\Channels\ChannelOptions.cs (3)
56throw new ArgumentOutOfRangeException(nameof(capacity)); 70throw new ArgumentOutOfRangeException(nameof(value)); 91throw new ArgumentOutOfRangeException(nameof(value));
System.Threading.RateLimiting (12)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (2)
86throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 125throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (2)
106throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 142throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
System\Threading\RateLimiting\PartitionedRateLimiter.T.cs (2)
34throw new ArgumentOutOfRangeException(nameof(permitCount)); 63throw new ArgumentOutOfRangeException(nameof(permitCount));
System\Threading\RateLimiting\RateLimiter.cs (2)
41throw new ArgumentOutOfRangeException(nameof(permitCount)); 68throw new ArgumentOutOfRangeException(nameof(permitCount));
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (2)
119throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 154throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (2)
113throw new ArgumentOutOfRangeException(nameof(tokenCount), tokenCount, SR.Format(SR.TokenLimitExceeded, tokenCount, _options.TokenLimit)); 147throw new ArgumentOutOfRangeException(nameof(tokenCount), tokenCount, SR.Format(SR.TokenLimitExceeded, tokenCount, _options.TokenLimit));
System.Threading.Tasks.Dataflow (11)
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);
Base\DataflowBlockOptions.cs (4)
137if (value < 1 && value != Unbounded) throw new ArgumentOutOfRangeException(nameof(value)); 157if (value < 1 && value != Unbounded) throw new ArgumentOutOfRangeException(nameof(value)); 292if (value < 1 && value != Unbounded) throw new ArgumentOutOfRangeException(nameof(value)); 435if (value <= 0 && value != Unbounded) throw new ArgumentOutOfRangeException(nameof(value));
Base\DataflowLinkOptions.cs (1)
97if (value < 1 && value != Unbounded) throw new ArgumentOutOfRangeException(nameof(value));
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);
System.Transactions.Local (10)
System\Transactions\Transaction.cs (6)
492throw new ArgumentOutOfRangeException(nameof(enlistmentOptions)); 540throw new ArgumentOutOfRangeException(nameof(enlistmentOptions)); 627throw new ArgumentOutOfRangeException(nameof(enlistmentOptions)); 666throw new ArgumentOutOfRangeException(nameof(enlistmentOptions)); 743throw new ArgumentOutOfRangeException(nameof(cloneOption)); 983throw new ArgumentOutOfRangeException(nameof(enlistmentOptions));
System\Transactions\TransactionManager.cs (1)
522throw new ArgumentOutOfRangeException(nameof(transactionIsolationLevel));
System\Transactions\TransactionScope.cs (3)
458throw new ArgumentOutOfRangeException(nameof(scopeOption)); 1115throw new ArgumentOutOfRangeException(nameof(interopOption)); 1132throw new ArgumentOutOfRangeException(nameof(asyncFlowOption));
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
57throw new ArgumentOutOfRangeException("index");
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
1064throw new ArgumentOutOfRangeException(parameterName);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
302throw new ArgumentOutOfRangeException(parameterName);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
207return new ArgumentOutOfRangeException(valueName, value, message);
System.Xaml (27)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (26)
288throw new ArgumentOutOfRangeException(nameof(index)); 474throw new ArgumentOutOfRangeException(nameof(index)); 479throw new ArgumentOutOfRangeException(nameof(index)); 500throw new ArgumentOutOfRangeException(nameof(index)); 550throw new ArgumentOutOfRangeException(nameof(index)); 570throw new ArgumentOutOfRangeException(nameof(index)); 602throw new ArgumentOutOfRangeException(nameof(oldList)); 646throw new ArgumentOutOfRangeException(nameof(oldList)); 856throw new ArgumentOutOfRangeException(nameof(index)); 861throw new ArgumentOutOfRangeException(nameof(index)); 894throw new ArgumentOutOfRangeException(nameof(index)); 990throw new ArgumentOutOfRangeException(nameof(index)); 1019throw new ArgumentOutOfRangeException(nameof(index)); 1075throw new ArgumentOutOfRangeException(nameof(oldList)); 1114throw new ArgumentOutOfRangeException(nameof(oldList)); 1175throw new ArgumentOutOfRangeException(nameof(oldList)); 1355throw new ArgumentOutOfRangeException(nameof(index)); 1460throw new ArgumentOutOfRangeException(nameof(oldList)); 1693throw new ArgumentOutOfRangeException(nameof(index)); 1704throw new ArgumentOutOfRangeException(nameof(index)); 1820throw new ArgumentOutOfRangeException(nameof(index)); 1839throw new ArgumentOutOfRangeException(nameof(index)); 2068throw new ArgumentOutOfRangeException(nameof(index)); 2079throw new ArgumentOutOfRangeException(nameof(index)); 2195throw new ArgumentOutOfRangeException(nameof(index)); 2214throw new ArgumentOutOfRangeException(nameof(index));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
465throw new ArgumentOutOfRangeException(nameof(i));
UIAutomationClientSideProviders (21)
MS\Internal\AutomationProxies\WindowsIPAddress.cs (4)
178throw new ArgumentOutOfRangeException("row", row, SR.GridRowOutOfRange); 183throw new ArgumentOutOfRangeException("column", column, SR.GridColumnOutOfRange); 375throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 379throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsListView.cs (3)
748throw new ArgumentOutOfRangeException("row", row, SR.GridRowOutOfRange); 753throw new ArgumentOutOfRangeException("column", column, SR.GridColumnOutOfRange); 1664throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (2)
369throw new ArgumentOutOfRangeException("row", row, SR.GridRowOutOfRange); 374throw new ArgumentOutOfRangeException("column", column, SR.GridColumnOutOfRange);
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (2)
70throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 74throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsScroll.cs (1)
287throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
682throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 686throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
280throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 284throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (2)
259throw new ArgumentOutOfRangeException("row", row, SR.GridRowOutOfRange); 264throw new ArgumentOutOfRangeException("column", column, SR.GridColumnOutOfRange);
MS\Internal\AutomationProxies\WindowsTab.cs (1)
501throw new ArgumentOutOfRangeException("horizontalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
223throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 227throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
WinShimmer (1)
Program.cs (1)
22throw new ArgumentOutOfRangeException("args", $"WinShimmer was provided {args.Length} arguments instead of 3");
3294 references to ArgumentOutOfRangeException
CodeGenerator (1)
HttpUtilities\CombinationsWithoutRepetition.cs (1)
18ArgumentOutOfRangeException.ThrowIfGreaterThan(p, nElements.Length);
http2cat (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
IIS.LongTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
InMemory.FunctionalTests (4)
ResponseTests.cs (2)
3543Assert.Throws<ArgumentOutOfRangeException>(() => response.BodyWriter.Advance(-1)); 3574Assert.Throws<ArgumentOutOfRangeException>(() => response.BodyWriter.Advance(-1));
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
InProcessWebSite (10)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (10)
800catch (ArgumentOutOfRangeException) 811catch (ArgumentOutOfRangeException) 822catch (ArgumentOutOfRangeException) 833catch (ArgumentOutOfRangeException) 844catch (ArgumentOutOfRangeException) 887catch (ArgumentOutOfRangeException) 898catch (ArgumentOutOfRangeException) 909catch (ArgumentOutOfRangeException) 920catch (ArgumentOutOfRangeException) 931catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Antiforgery.Test (4)
BinaryBlobTest.cs (4)
27var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new BinaryBlob(bitLength)); 62var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new BinaryBlob(32, data));
Microsoft.AspNetCore.Authentication.Test (1)
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
542return TestConfigurationException<ArgumentOutOfRangeException>(
Microsoft.AspNetCore.Components (2)
Routing\StringSegmentAccumulator.cs (1)
19ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, count);
src\Http\Routing\src\PathTokenizer.cs (1)
75ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
Microsoft.AspNetCore.Components.Endpoints (4)
DependencyInjection\RazorComponentsServiceOptions.cs (3)
31ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 44ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, 1); 81ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value.TotalMilliseconds, 0);
Discovery\PageComponentBuilder.cs (1)
32ArgumentOutOfRangeException.ThrowIfZero(value.Count, nameof(value));
Microsoft.AspNetCore.Components.Server (5)
src\Shared\PooledArrayBufferWriter.cs (3)
25ArgumentOutOfRangeException.ThrowIfNegativeOrZero(initialCapacity); 116ArgumentOutOfRangeException.ThrowIfNegative(count); 146ArgumentOutOfRangeException.ThrowIfNegative(sizeHint);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (2)
276catch (ArgumentOutOfRangeException ex) 917catch (ArgumentOutOfRangeException ex)
Microsoft.AspNetCore.Components.Server.Tests (6)
Circuits\RemoteJSRuntimeTest.cs (6)
33var ex = Assert.Throws<ArgumentOutOfRangeException>(() => jsRuntime.TestReceiveByteArray(id: 0, data)); 73var ex = Assert.Throws<ArgumentOutOfRangeException>(() => jsRuntime.TestReceiveByteArray(5, new byte[] { 0 })); 85var ex = Assert.Throws<ArgumentOutOfRangeException>(() => jsRuntime.TestReceiveByteArray(1, new byte[5000]));
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\BrowserFileTest.cs (2)
18var ex = Assert.Throws<ArgumentOutOfRangeException>(() => file.Size = -7);
Microsoft.AspNetCore.Cors.Test (4)
CorsPolicyTests.cs (2)
48var exception = Assert.Throws<ArgumentOutOfRangeException>(() =>
CorsResultTests.cs (2)
30var exception = Assert.Throws<ArgumentOutOfRangeException>(() =>
Microsoft.AspNetCore.Cryptography.KeyDerivation (8)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (8)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary>
Microsoft.AspNetCore.DataProtection (1)
Error.cs (1)
69public static ArgumentOutOfRangeException Common_ValueMustBeNonNegative(string paramName)
Microsoft.AspNetCore.DataProtection.Abstractions (8)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (8)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary>
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
HttpProtocolTests.cs (1)
131Assert.Throws<ArgumentOutOfRangeException>(() => HttpProtocol.GetHttpProtocol(version));
Microsoft.AspNetCore.Http.Connections (19)
HttpConnectionDispatcherOptions.cs (3)
71ArgumentOutOfRangeException.ThrowIfNegative(value); 88ArgumentOutOfRangeException.ThrowIfNegative(value); 112ArgumentOutOfRangeException.ThrowIfEqual(value, TimeSpan.Zero);
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (16)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 67ArgumentOutOfRangeException.ThrowIfZero(value, paramName); 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 82ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 97ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 112ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value, paramName); 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 129ArgumentOutOfRangeException.ThrowIfGreaterThan(value, other, paramName); 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 146ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, other, paramName); 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName); 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary> 180ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, other, paramName);
Microsoft.AspNetCore.Http.Connections.Client (8)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (8)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary>
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionManagerTests.cs (2)
38Assert.Throws<ArgumentOutOfRangeException>(() => httpOptions.TransportMaxBufferSize = -1); 39Assert.Throws<ArgumentOutOfRangeException>(() => httpOptions.ApplicationMaxBufferSize = -1);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.FormMapping.cs (2)
171var anotherException = await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await requestDelegate(httpContext));
Microsoft.AspNetCore.HttpLogging (7)
HttpLoggingAttribute.cs (4)
37/// <exception cref="ArgumentOutOfRangeException">Thrown when <see cref="RequestBodyLogLimit"/> set to a value less than <c>0</c>.</exception> 52ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(RequestBodyLogLimit)); 66/// <exception cref="ArgumentOutOfRangeException">Thrown when <see cref="ResponseBodyLogLimit"/> set to a value less than <c>0</c>.</exception> 80ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(ResponseBodyLogLimit));
HttpLoggingEndpointConventionBuilderExtensions.cs (3)
22/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="requestBodyLogLimit"/> or <paramref name="responseBodyLogLimit"/> is less than <c>0</c>.</exception> 30ArgumentOutOfRangeException.ThrowIfLessThan(requestBodyLogLimit.Value, 0, nameof(requestBodyLogLimit)); 35ArgumentOutOfRangeException.ThrowIfLessThan(responseBodyLogLimit.Value, 0, nameof(responseBodyLogLimit));
Microsoft.AspNetCore.HttpLogging.Tests (10)
HttpLoggingAttributeTests.cs (3)
11var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) { RequestBodyLogLimit = -1 }); 14ex = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpLoggingAttribute(HttpLoggingFields.None) { ResponseBodyLogLimit = -1 });
HttpLoggingEndpointConventionBuilderTests.cs (3)
44var ex = Assert.Throws<ArgumentOutOfRangeException>(() => 48ex = Assert.Throws<ArgumentOutOfRangeException>(() =>
W3CLoggerOptionsTests.cs (4)
21var ex = Assert.Throws<ArgumentOutOfRangeException>(() => options.FileSizeLimit = -1); 43var ex = Assert.Throws<ArgumentOutOfRangeException>(() => options.FlushInterval = TimeSpan.FromSeconds(-1));
Microsoft.AspNetCore.HttpOverrides (2)
IPNetwork.cs (2)
20/// <exception cref="ArgumentOutOfRangeException"><paramref name="prefixLength"/> is out of range.</exception> 120/// <exception cref="ArgumentOutOfRangeException">The prefix length contained in <paramref name="networkSpan"/> is out of range.</exception>
Microsoft.AspNetCore.HttpOverrides.Tests (4)
IPNetworkTest.cs (4)
72var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new IPNetwork(address, prefixLength)); 105var ex = Assert.Throws<ArgumentOutOfRangeException>(() => IPNetwork.Parse(input));
Microsoft.AspNetCore.InternalTesting (3)
ExceptionAssertions.cs (3)
201public static ArgumentOutOfRangeException ThrowsArgumentOutOfRange(Action testCode, string paramName, string exceptionMessage, object actualValue = null) 203var ex = ThrowsArgumentInternal<ArgumentOutOfRangeException>(testCode, paramName, exceptionMessage);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
114ArgumentOutOfRangeException.ThrowIfNegative(value);
Microsoft.AspNetCore.Mvc.Core (3)
MvcOptions.cs (3)
156ArgumentOutOfRangeException.ThrowIfNegative(value); 318ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 354ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, 1);
Microsoft.AspNetCore.Mvc.Core.Test (4)
Formatters\MediaTypeTest.cs (2)
117Assert.Throws<ArgumentOutOfRangeException>("offset", () => new MediaType("media", offset, 5)); 124Assert.Throws<ArgumentOutOfRangeException>("length", () => new MediaType("media", 0, -1));
MvcOptionsTest.cs (2)
15var ex = Assert.Throws<ArgumentOutOfRangeException>(() => options.MaxModelValidationErrors = -1);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerInputFormatterTest.cs (1)
452Assert.Throws<ArgumentOutOfRangeException>(() => formatter.MaxDepth = 0);
XmlSerializerInputFormatterTest.cs (1)
469Assert.Throws<ArgumentOutOfRangeException>(() => formatter.MaxDepth = 0);
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
34ArgumentOutOfRangeException.ThrowIfNegative(maxRedirects);
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Buffers\MemoryPoolViewBufferScope.cs (1)
38ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pageSize);
Buffers\ViewBuffer.cs (1)
37ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pageSize);
Buffers\ViewBufferTextWriter.cs (4)
84ArgumentOutOfRangeException.ThrowIfNegative(index); 85ArgumentOutOfRangeException.ThrowIfNegative(count); 86ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 188ArgumentOutOfRangeException.ThrowIfNegative(index);
src\Shared\PooledArrayBufferWriter.cs (3)
25ArgumentOutOfRangeException.ThrowIfNegativeOrZero(initialCapacity); 116ArgumentOutOfRangeException.ThrowIfNegative(count); 146ArgumentOutOfRangeException.ThrowIfNegative(sizeHint);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewComponents\ViewViewComponentResultTest.cs (1)
261var expected = new ArgumentOutOfRangeException();
Microsoft.AspNetCore.OpenApi (1)
Schemas\JsonSchemaMapper\JsonSchemaMapperConfiguration.cs (1)
79/// <exception cref="ArgumentOutOfRangeException">Thrown when the value is less than 0.</exception>
Microsoft.AspNetCore.OutputCaching (6)
FormatterBinaryReader.cs (4)
133ArgumentOutOfRangeException.ThrowIfNegative(bytes); 150ArgumentOutOfRangeException.ThrowIfNegative(bytes); 160ArgumentOutOfRangeException.ThrowIfNegative(count); 177ArgumentOutOfRangeException.ThrowIfNegative(count);
RecyclableArrayBufferWriter.cs (1)
82ArgumentOutOfRangeException.ThrowIfNegative(sizeHint);
RecyclableSequenceBuilder.cs (1)
22ArgumentOutOfRangeException.ThrowIfNegativeOrZero(segmentSize);
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
258ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
149Assert.Throws<ArgumentOutOfRangeException>(() => collection.CopyTo(kvp, -1)); // arrayIndex is less than 0
Microsoft.AspNetCore.Razor.Test (12)
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (2)
115var exception = Assert.Throws<ArgumentOutOfRangeException>("index", () => attributes[index]);
TagHelpers\TagHelperAttributeListTest.cs (10)
86var exception = Assert.Throws<ArgumentOutOfRangeException>("index", () => attributes[index]); 103var exception = Assert.Throws<ArgumentOutOfRangeException>("index", () => 209var exception = Assert.Throws<ArgumentOutOfRangeException>("index", () => 321var exception = Assert.Throws<ArgumentOutOfRangeException>("index", 574var exception = Assert.Throws<ArgumentOutOfRangeException>("index",
Microsoft.AspNetCore.Rewrite.Tests (2)
IISUrlRewrite\MiddleWareTests.cs (2)
579var ex = await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => server.CreateClient().GetAsync("article/23?p1=123&p2=abc"));
Microsoft.AspNetCore.Routing (2)
PathTokenizer.cs (1)
75ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
Template\RouteTemplate.cs (1)
104ArgumentOutOfRangeException.ThrowIfNegative(index);
Microsoft.AspNetCore.Server.HttpSys (4)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (1)
22ArgumentOutOfRangeException.ThrowIfLessThan(size, WriteableOffset);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
RequestBodyTests.cs (5)
130Assert.Throws<ArgumentOutOfRangeException>("offset", () => httpContext.Request.Body.Read(input, -1, 1)); 131Assert.Throws<ArgumentOutOfRangeException>("count", () => httpContext.Request.Body.Read(input, input.Length + 1, 1)); 132Assert.Throws<ArgumentOutOfRangeException>("count", () => httpContext.Request.Body.Read(input, 10, -1)); 133Assert.Throws<ArgumentOutOfRangeException>("count", () => httpContext.Request.Body.Read(input, 1, input.Length)); 134Assert.Throws<ArgumentOutOfRangeException>("count", () => httpContext.Request.Body.Read(input, 0, input.Length + 1));
ResponseSendFileTests.cs (2)
164await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => 183await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() =>
ServerTests.cs (1)
387Assert.Throws<ArgumentOutOfRangeException>(() => server.Listener.Options.MaxConnections = -2);
Microsoft.AspNetCore.Server.HttpSys.Tests (1)
UrlPrefixTests.cs (1)
27Assert.Throws<ArgumentOutOfRangeException>(() => UrlPrefix.Create(url));
Microsoft.AspNetCore.Server.IIS (4)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (1)
22ArgumentOutOfRangeException.ThrowIfLessThan(size, WriteableOffset);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpRequestStream.cs (1)
158ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
Internal\ThrowHelper.cs (1)
17private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (35)
BufferWriterTests.cs (1)
61Assert.True(ex is ArgumentOutOfRangeException);
Http1\Http1ConnectionTests.cs (2)
945var ex = Assert.Throws<ArgumentOutOfRangeException>(() => ((IHttpMaxRequestBodySizeFeature)_http1Connection).MaxRequestBodySize = -1);
HttpHeadersTests.cs (2)
295Assert.Throws<ArgumentOutOfRangeException>(() => httpHeaders.ContentLength = -1); 296Assert.Throws<ArgumentOutOfRangeException>(() => httpHeaders.ContentLength = long.MinValue);
HttpRequestStreamTests.cs (1)
215await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => { await stream.CopyToAsync(Mock.Of<Stream>(), 0); });
KestrelServerLimitsTests.cs (22)
23Assert.Throws<ArgumentOutOfRangeException>(() => 52Assert.Throws<ArgumentOutOfRangeException>(() => 80Assert.Throws<ArgumentOutOfRangeException>(() => 108var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxRequestHeadersTotalSize = value); 134Assert.Throws<ArgumentOutOfRangeException>(() => 173var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits { KeepAliveTimeout = value }); 202var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits { RequestHeadersTimeout = value }); 235var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxConcurrentConnections = value); 259var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxConcurrentUpgradedConnections = value); 290var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxRequestBodySize = value); 322var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().Http2.MaxFrameSize = value); 337var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().Http2.HeaderTableSize = value); 353var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().Http2.MaxRequestHeaderFieldSize = value);
MinDataRateTests.cs (4)
26var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new MinDataRate(bytesPerSecond: value, gracePeriod: TimeSpan.MaxValue)); 43var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new MinDataRate(bytesPerSecond: 1, gracePeriod: value));
ResourceCounterTests.cs (1)
18Assert.Throws<ArgumentOutOfRangeException>(() => ResourceCounter.Quota(max));
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
HttpsConnectionAdapterOptionsTest.cs (2)
37var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new HttpsConnectionAdapterOptions { HandshakeTimeout = value });
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
QuicConnectionContextTests.cs (1)
733Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.Error = errorCode);
QuicStreamContextTests.cs (3)
554Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.Error = errorCode); 581Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.AbortRead(errorCode, new ConnectionAbortedException())); 582Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.AbortWrite(errorCode, new ConnectionAbortedException()));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
18private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(int sourceLength, int offset) 98private static ArgumentOutOfRangeException GetArgumentOutOfRangeException_BufferRequestTooLarge(int maxSize)
Microsoft.AspNetCore.Shared.Tests (20)
ObjectMethodExecutorTest.cs (1)
152Assert.Throws<ArgumentOutOfRangeException>(() => executor.GetDefaultValueForParameter(2));
SegmentWriteStreamTests.cs (1)
18Assert.Throws<ArgumentOutOfRangeException>(() => new SegmentWriteStream(segmentSize));
src\Shared\HttpSys\NativeInterop\SocketAddress.cs (1)
22ArgumentOutOfRangeException.ThrowIfLessThan(size, WriteableOffset);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
454catch (ArgumentOutOfRangeException)
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (16)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 67ArgumentOutOfRangeException.ThrowIfZero(value, paramName); 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 82ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 97ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 112ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value, paramName); 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 129ArgumentOutOfRangeException.ThrowIfGreaterThan(value, other, paramName); 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 146ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, other, paramName); 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName); 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary> 180ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, other, paramName);
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HttpConnectionTests.cs (2)
45Assert.Throws<ArgumentOutOfRangeException>(() => httpOptions.TransportMaxBufferSize = -1); 46Assert.Throws<ArgumentOutOfRangeException>(() => httpOptions.ApplicationMaxBufferSize = -1);
Microsoft.AspNetCore.SignalR.Core (1)
HubOptions.cs (1)
68ArgumentOutOfRangeException.ThrowIfLessThan(value, 1);
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
196Assert.Throws<ArgumentOutOfRangeException>(() => new HubOptions() { MaximumParallelInvocationsPerClient = 0 });
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
274ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
Microsoft.AspNetCore.TestHost.Tests (3)
ResponseFeatureTests.cs (3)
72Assert.Throws<ArgumentOutOfRangeException>(() => responseInformation.StatusCode = 99); 73Assert.Throws<ArgumentOutOfRangeException>(() => responseInformation.StatusCode = 0); 74Assert.Throws<ArgumentOutOfRangeException>(() => responseInformation.StatusCode = -200);
Microsoft.AspNetCore.WebUtilities (21)
FileBufferingWriteStream.cs (1)
44ArgumentOutOfRangeException.ThrowIfNegative(memoryThreshold);
HttpRequestStreamReader.cs (3)
77ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 156ArgumentOutOfRangeException.ThrowIfNegative(index); 217ArgumentOutOfRangeException.ThrowIfNegative(index);
HttpResponseStreamWriter.cs (1)
73ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (16)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 67ArgumentOutOfRangeException.ThrowIfZero(value, paramName); 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 82ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 97ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 112ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value, paramName); 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 129ArgumentOutOfRangeException.ThrowIfGreaterThan(value, other, paramName); 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 146ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, other, paramName); 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName); 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary> 180ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, other, paramName);
Microsoft.AspNetCore.WebUtilities.Tests (3)
HttpRequestStreamReaderTest.cs (1)
357Assert.Throws<ArgumentOutOfRangeException>(() =>
HttpResponseStreamWriterTest.cs (1)
745Assert.Throws<ArgumentOutOfRangeException>(() =>
MultipartReaderTests.cs (1)
275Assert.Throws<ArgumentOutOfRangeException>(() =>
Microsoft.Bcl.TimeProvider (4)
System\Threading\Tasks\TimeProviderTaskExtensions.cs (4)
48/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="delay"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 133/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 230/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 245/// <exception cref="ArgumentOutOfRangeException"> The <paramref name="delay"/> is negative and not equal to <see cref="Timeout.InfiniteTimeSpan" /> or greater than maximum allowed timer duration.</exception>
Microsoft.Build (1)
ErrorUtilities.cs (1)
609/// <exception cref="ArgumentOutOfRangeException">If <paramref name="arrayIndex"/> falls outside of the bounds <paramref name="array"/>.</exception>
Microsoft.Build.Engine (1)
Items\BuildItemGroup.cs (1)
513/// <exception cref="ArgumentOutOfRangeException">If index is out of bounds</exception>
Microsoft.Build.Engine.UnitTests (13)
BackEnd\TaskHost_Tests.cs (4)
765Assert.Throws<ArgumentOutOfRangeException>(() => 770Assert.Throws<ArgumentOutOfRangeException>(() => 805Assert.Throws<ArgumentOutOfRangeException>(() => 810Assert.Throws<ArgumentOutOfRangeException>(() =>
Evaluation\SimpleVersion_Tests.cs (9)
67Assert.Throws<ArgumentOutOfRangeException>("major", () => new SimpleVersion(-1, 0)); 68Assert.Throws<ArgumentOutOfRangeException>("major", () => new SimpleVersion(-1, 0, 0)); 69Assert.Throws<ArgumentOutOfRangeException>("major", () => new SimpleVersion(-1, 0, 0, 0)); 75Assert.Throws<ArgumentOutOfRangeException>("minor", () => new SimpleVersion(0, -1)); 76Assert.Throws<ArgumentOutOfRangeException>("minor", () => new SimpleVersion(0, -1, 0)); 77Assert.Throws<ArgumentOutOfRangeException>("minor", () => new SimpleVersion(0, -1, 0, 0)); 83Assert.Throws<ArgumentOutOfRangeException>("build", () => new SimpleVersion(0, 0, -1)); 84Assert.Throws<ArgumentOutOfRangeException>("build", () => new SimpleVersion(0, 0, -1, 0)); 90Assert.Throws<ArgumentOutOfRangeException>("revision", () => new SimpleVersion(0, 0, 0, -1));
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
218private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
Microsoft.Build.Tasks.Core (2)
ErrorUtilities.cs (1)
609/// <exception cref="ArgumentOutOfRangeException">If <paramref name="arrayIndex"/> falls outside of the bounds <paramref name="array"/>.</exception>
ManifestUtil\Util.cs (1)
353catch (ArgumentOutOfRangeException)
Microsoft.Build.Tasks.UnitTests (4)
StreamMappedString_Tests.cs (4)
135Assert.Throws<ArgumentOutOfRangeException>(() => 221Assert.Throws<ArgumentOutOfRangeException>(() => 234Assert.Throws<ArgumentOutOfRangeException>(() => 246Assert.Throws<ArgumentOutOfRangeException>(() =>
Microsoft.Build.Utilities.Core (1)
ErrorUtilities.cs (1)
609/// <exception cref="ArgumentOutOfRangeException">If <paramref name="arrayIndex"/> falls outside of the bounds <paramref name="array"/>.</exception>
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
TimeExpirationAsyncTests.cs (2)
22var ex = await Assert.ThrowsAsync<ArgumentOutOfRangeException>(test);
Microsoft.Extensions.Features (17)
FeatureCollection.cs (1)
37/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="initialCapacity"/> is less than 0</exception>
src\Shared\ThrowHelpers\ArgumentOutOfRangeThrowHelper.cs (16)
56/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 67ArgumentOutOfRangeException.ThrowIfZero(value, paramName); 71/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 82ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 86/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 97ArgumentOutOfRangeException.ThrowIfNegative(value, paramName); 101/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 112ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value, paramName); 116/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 129ArgumentOutOfRangeException.ThrowIfGreaterThan(value, other, paramName); 133/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 146ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, other, paramName); 150/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 163ArgumentOutOfRangeException.ThrowIfLessThan(value, other, paramName); 167/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary> 180ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, other, paramName);
Microsoft.Extensions.Primitives (14)
StringSegment.cs (12)
44/// <exception cref="ArgumentOutOfRangeException"> 96/// <exception cref="ArgumentOutOfRangeException"> 126/// <exception cref="ArgumentOutOfRangeException"> 147/// <exception cref="ArgumentOutOfRangeException"> 380/// <exception cref="ArgumentOutOfRangeException"> 393/// <exception cref="ArgumentOutOfRangeException"> 415/// <exception cref="ArgumentOutOfRangeException"> 427/// <exception cref="ArgumentOutOfRangeException"> 449/// <exception cref="ArgumentOutOfRangeException"> 487/// <exception cref="ArgumentOutOfRangeException"> 512/// <exception cref="ArgumentOutOfRangeException"> 551/// <exception cref="ArgumentOutOfRangeException">
StringValues.cs (1)
350/// <exception cref="ArgumentOutOfRangeException"><paramref name="arrayIndex">arrayIndex</paramref> is less than 0.</exception>
ThrowHelper.cs (1)
49internal static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument)
Microsoft.JSInterop.Tests (2)
JSRuntimeTest.cs (2)
386var ex = Assert.Throws<ArgumentOutOfRangeException>(() => runtime.ReceiveByteArray(7, byteArray));
Microsoft.Net.Http.Headers (3)
ContentRangeHeaderValue.cs (3)
37ArgumentOutOfRangeException.ThrowIfNegative(length); 67ArgumentOutOfRangeException.ThrowIfNegative(length); 82ArgumentOutOfRangeException.ThrowIfNegative(to);
Microsoft.Net.Http.Headers.Tests (20)
ContentDispositionHeaderValueTest.cs (1)
382Assert.Throws<ArgumentOutOfRangeException>(() => contentDisposition.Size = -279172874240);
ContentRangeHeaderValueTest.cs (10)
11Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(-1)); 30Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(-1, 1)); 31Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(0, -1)); 32Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(2, 1)); 51Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(-1, 1, 2)); 52Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(0, -1, 2)); 53Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(0, 1, -1)); 54Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(2, 1, 3)); 55Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(1, 2, 1)); 56Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(1, 2, 2));
HeaderUtilitiesTest.cs (1)
115Assert.Throws<ArgumentOutOfRangeException>(() => HeaderUtilities.FormatNonNegativeInt64(value));
MediaTypeHeaderValueTest.cs (2)
316Assert.Throws<ArgumentOutOfRangeException>(() => new MediaTypeHeaderValue("application/xml", -0.01)); 323Assert.Throws<ArgumentOutOfRangeException>(() => mediaType.Quality = 1.01);
RangeHeaderValueTest.cs (1)
11Assert.Throws<ArgumentOutOfRangeException>(() => new RangeHeaderValue(5, 2));
RangeItemHeaderValueTest.cs (3)
17Assert.Throws<ArgumentOutOfRangeException>(() => new RangeItemHeaderValue(-1, null)); 23Assert.Throws<ArgumentOutOfRangeException>(() => new RangeItemHeaderValue(2, 1)); 29Assert.Throws<ArgumentOutOfRangeException>(() => new RangeItemHeaderValue(null, -1));
StringWithQualityHeaderValueTest.cs (2)
31Assert.Throws<ArgumentOutOfRangeException>(() => new StringWithQualityHeaderValue("t", 1.1)); 32Assert.Throws<ArgumentOutOfRangeException>(() => new StringWithQualityHeaderValue("t", -0.1));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
1330Debug.Assert(Not (TypeOf ex Is ArgumentException Or TypeOf ex Is ArgumentOutOfRangeException Or
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
50[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentOutOfRangeException))]
netstandard (1)
netstandard.cs (1)
43[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentOutOfRangeException))]
PresentationCore (324)
MS\Internal\FontCache\FontCacheUtil.cs (2)
63ArgumentOutOfRangeException.ThrowIfNegative(length); 64ArgumentOutOfRangeException.ThrowIfGreaterThan(length, int.MaxValue);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (3)
740ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 741ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 742ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
MS\Internal\FontFace\FontDriver.cs (4)
160catch (ArgumentOutOfRangeException e) 171ArgumentOutOfRangeException.ThrowIfNegative(faceIndex); 172ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(faceIndex, _numFaces); 228catch (ArgumentOutOfRangeException e)
MS\Internal\FontFace\FontFamilyIdentifier.cs (2)
205ArgumentOutOfRangeException.ThrowIfNegative(tokenIndex); 206ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tokenIndex, Count);
MS\Internal\FontFace\TypefaceCollection.cs (3)
82ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 83ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 84ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
289/// <exception cref="System.ArgumentOutOfRangeException">Index was not found</exception>
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (8)
380ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 428ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 429ArgumentOutOfRangeException.ThrowIfNegative(unitsToEncode); 512ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(inputIndex, input.Length); 514ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(outputBufferIndex, outputBuffer.Length); 516ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 588ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 589ArgumentOutOfRangeException.ThrowIfNegative(unitsToDecode);
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
38ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, AlgoModule.DefaultBAACount);
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
115ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(inputIndex, input.Length);
MS\Internal\IO\Packaging\PseudoWebRequest.cs (2)
272/// <exception cref="ArgumentOutOfRangeException">Value must be >= -1</exception> 284ArgumentOutOfRangeException.ThrowIfNegative(value);
MS\Internal\PartialArray.cs (1)
148ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
MS\Internal\Text\TextInterface\Factory.cs (1)
209ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(faceIndex, numberOfFaces);
MS\Internal\TextFormatting\FullTextLine.cs (1)
1501ArgumentOutOfRangeException.ThrowIfZero(textLength);
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
810ArgumentOutOfRangeException.ThrowIfZero(textLength);
MS\Internal\TextFormatting\TextFormatterImp.cs (13)
480ArgumentOutOfRangeException.ThrowIfEqual(paragraphWidth, double.NaN); 481ArgumentOutOfRangeException.ThrowIfNegative(paragraphWidth); 482ArgumentOutOfRangeException.ThrowIfEqual(paragraphWidth, double.PositiveInfinity); 483ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphWidth, Constants.RealInfiniteWidth); 487ArgumentOutOfRangeException.ThrowIfNegative(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize, "paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize"); 488ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize, realMaxFontRenderingEmSize, "paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize"); 489ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.Indent, Constants.RealInfiniteWidth, "paragraphProperties.Indent"); 490ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.LineHeight, Constants.RealInfiniteWidth, "paragraphProperties.LineHeight"); 491ArgumentOutOfRangeException.ThrowIfNegative(paragraphProperties.DefaultIncrementalTab, "paragraphProperties.DefaultIncrementalTab"); 492ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultIncrementalTab, Constants.RealInfiniteWidth, "paragraphProperties.DefaultIncrementalTab"); 505ArgumentOutOfRangeException.ThrowIfGreaterThan(cpFirst, characterHit.FirstCharacterIndex); 506ArgumentOutOfRangeException.ThrowIfLessThan(cpFirst, characterHit.FirstCharacterIndex - cchLength); 508ArgumentOutOfRangeException.ThrowIfNegative(characterHit.TrailingLength, nameof(cchLength));
MS\Internal\TextFormatting\TextRunCacheImp.cs (1)
121ArgumentOutOfRangeException.ThrowIfNegativeOrZero(textRun.Length, "textRun.Length");
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
190ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
133ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (7)
390ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length); 403ArgumentOutOfRangeException.ThrowIfNegative(characterOffset); 404ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(characterOffset, _length); 460ArgumentOutOfRangeException.ThrowIfNegative(characterOffset); 461ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(characterOffset, _length); 463ArgumentOutOfRangeException.ThrowIfNegative(characterLength); 464ArgumentOutOfRangeException.ThrowIfGreaterThan(characterLength, _length - characterOffset);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (2)
48ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 49ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startIndex, buffer.Length);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PartialList.cs (1)
154ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (3)
66ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 67ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 68ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
43ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maximumItems);
System\IO\Packaging\PackWebRequest.cs (2)
393/// <exception cref="ArgumentOutOfRangeException">Value must be >= -1</exception> 405ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Documents\DocumentPaginator.cs (3)
47/// <exception cref="ArgumentOutOfRangeException"> 56/// <exception cref="ArgumentOutOfRangeException"> 69/// <exception cref="ArgumentOutOfRangeException">
System\Windows\FontStretch.cs (2)
46ArgumentOutOfRangeException.ThrowIfLessThan(stretchValue, 1); 47ArgumentOutOfRangeException.ThrowIfGreaterThan(stretchValue, 9);
System\Windows\FontWeight.cs (2)
44ArgumentOutOfRangeException.ThrowIfLessThan(weightValue, 1); 45ArgumentOutOfRangeException.ThrowIfGreaterThan(weightValue, 999);
System\Windows\FreezableCollection.cs (4)
394ArgumentOutOfRangeException.ThrowIfNegative(index); 395ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 504ArgumentOutOfRangeException.ThrowIfNegative(index); 505ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Generated\TextDecorationCollection.cs (4)
295ArgumentOutOfRangeException.ThrowIfNegative(index); 296ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 405ArgumentOutOfRangeException.ThrowIfNegative(index); 406ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (2)
352ArgumentOutOfRangeException.ThrowIfGreaterThan(count, this.Count); 353ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count);
System\Windows\InterOp\D3DImage.cs (2)
71ArgumentOutOfRangeException.ThrowIfNegative(dpiX); 72ArgumentOutOfRangeException.ThrowIfNegative(dpiY);
System\Windows\Media\Animation\Generated\KeyFrames.cs (42)
144ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 145ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 285ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 286ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 426ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 427ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 567ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 568ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 708ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 709ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 849ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 850ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 990ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 991ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1131ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1132ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1272ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1273ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1413ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1414ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1554ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1555ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1695ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1696ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1836ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1837ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1977ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1978ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2118ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2119ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2259ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2260ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2400ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2401ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2541ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2542ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2682ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2683ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2823ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2824ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2964ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2965ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (4)
305ArgumentOutOfRangeException.ThrowIfNegative(index); 306ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 415ArgumentOutOfRangeException.ThrowIfNegative(index); 416ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\CharacterMetricsDictionary.cs (2)
136ArgumentOutOfRangeException.ThrowIfNegative(index); 193ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
125ArgumentOutOfRangeException.ThrowIfNegative(index); 159ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (4)
301ArgumentOutOfRangeException.ThrowIfNegative(index); 302ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 411ArgumentOutOfRangeException.ThrowIfNegative(index); 412ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\FamilyMapCollection.cs (4)
271ArgumentOutOfRangeException.ThrowIfNegative(index); 272ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 364ArgumentOutOfRangeException.ThrowIfNegative(index); 365ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count);
System\Windows\Media\FamilyTypefaceCollection.cs (4)
250ArgumentOutOfRangeException.ThrowIfNegative(index); 251ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 357ArgumentOutOfRangeException.ThrowIfNegative(index); 358ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count);
System\Windows\Media\Fonts.cs (3)
335ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 336ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 337ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
System\Windows\Media\FormattedText.cs (8)
293ArgumentOutOfRangeException.ThrowIfNegativeOrZero(emSize); 294ArgumentOutOfRangeException.ThrowIfGreaterThan(emSize, MaxFontEmSize); 295ArgumentOutOfRangeException.ThrowIfEqual(emSize, double.NaN); 306ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 307ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, _text.Length); 1274ArgumentOutOfRangeException.ThrowIfNegative(value); 1297ArgumentOutOfRangeException.ThrowIfNegative(value); 1372ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Windows\Media\Generated\DoubleCollection.cs (4)
254ArgumentOutOfRangeException.ThrowIfNegative(index); 255ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 377ArgumentOutOfRangeException.ThrowIfNegative(index); 378ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\DrawingCollection.cs (4)
317ArgumentOutOfRangeException.ThrowIfNegative(index); 318ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 427ArgumentOutOfRangeException.ThrowIfNegative(index); 428ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\GeneralTransformCollection.cs (4)
303ArgumentOutOfRangeException.ThrowIfNegative(index); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 413ArgumentOutOfRangeException.ThrowIfNegative(index); 414ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\GeometryCollection.cs (4)
317ArgumentOutOfRangeException.ThrowIfNegative(index); 318ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 427ArgumentOutOfRangeException.ThrowIfNegative(index); 428ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\GradientStopCollection.cs (4)
303ArgumentOutOfRangeException.ThrowIfNegative(index); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 413ArgumentOutOfRangeException.ThrowIfNegative(index); 414ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\Int32Collection.cs (4)
254ArgumentOutOfRangeException.ThrowIfNegative(index); 255ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 377ArgumentOutOfRangeException.ThrowIfNegative(index); 378ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\PathFigureCollection.cs (4)
304ArgumentOutOfRangeException.ThrowIfNegative(index); 305ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 414ArgumentOutOfRangeException.ThrowIfNegative(index); 415ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\PathSegmentCollection.cs (4)
303ArgumentOutOfRangeException.ThrowIfNegative(index); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 413ArgumentOutOfRangeException.ThrowIfNegative(index); 414ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\PointCollection.cs (4)
254ArgumentOutOfRangeException.ThrowIfNegative(index); 255ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 377ArgumentOutOfRangeException.ThrowIfNegative(index); 378ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\TextEffectCollection.cs (4)
303ArgumentOutOfRangeException.ThrowIfNegative(index); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 413ArgumentOutOfRangeException.ThrowIfNegative(index); 414ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\TransformCollection.cs (4)
317ArgumentOutOfRangeException.ThrowIfNegative(index); 318ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 427ArgumentOutOfRangeException.ThrowIfNegative(index); 428ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\VectorCollection.cs (4)
254ArgumentOutOfRangeException.ThrowIfNegative(index); 255ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 377ArgumentOutOfRangeException.ThrowIfNegative(index); 378ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\GlyphRun.cs (3)
456ArgumentOutOfRangeException.ThrowIfEqual(renderingEmSize, double.NaN); 457ArgumentOutOfRangeException.ThrowIfNegative(renderingEmSize); 502/// <exception cref="System.ArgumentOutOfRangeException">
System\Windows\Media\GlyphTypeface.cs (6)
1832ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1833ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 1834ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count); 1917ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1918ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 1919ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
System\Windows\Media\Imaging\BitmapSizeOptions.cs (4)
120ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight); 138ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 158ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 159ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
System\Windows\Media\Imaging\BitmapSource.cs (5)
733ArgumentOutOfRangeException.ThrowIfNegativeOrZero(stride); 741ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, PixelWidth, "sourceRect.Width"); 742ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Height, PixelHeight, "sourceRect.Height"); 745ArgumentOutOfRangeException.ThrowIfLessThan(stride, minStride); 748ArgumentOutOfRangeException.ThrowIfLessThan(bufferSize, minRequiredDestSize);
System\Windows\Media\Imaging\InteropBitmapSource.cs (2)
129ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 130ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (2)
66ArgumentOutOfRangeException.ThrowIfLessThan(value, 1); 67ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 100);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
64ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 65ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (11)
66ArgumentOutOfRangeException.ThrowIfNegative(value); 67ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 1); 228ArgumentOutOfRangeException.ThrowIfZero(value); 246ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 3); 264ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 2); 282ArgumentOutOfRangeException.ThrowIfNegative(value); 283ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 4096); 301ArgumentOutOfRangeException.ThrowIfNegative(value); 302ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 4096); 381ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 3); 399ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 4);
System\Windows\Media\Imaging\WriteableBitmap.cs (15)
454ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 455ArgumentOutOfRangeException.ThrowIfNegativeOrZero(stride); 514ArgumentOutOfRangeException.ThrowIfNegativeOrZero(stride); 515ArgumentOutOfRangeException.ThrowIfNegative(offset); 835ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.X, nameof(sourceRect)); 836ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.Y, nameof(sourceRect)); 837ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.Width, nameof(sourceRect)); 838ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.Height, nameof(sourceRect)); 842ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, _pixelWidth, nameof(sourceRect)); 843ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Height, _pixelHeight, nameof(sourceRect)); 844ArgumentOutOfRangeException.ThrowIfNegative(destinationX); 845ArgumentOutOfRangeException.ThrowIfNegative(destinationY); 846ArgumentOutOfRangeException.ThrowIfGreaterThan(destinationX, _pixelWidth - sourceRect.Width); 847ArgumentOutOfRangeException.ThrowIfGreaterThan(destinationY, _pixelHeight - sourceRect.Height); 872ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sourceBufferStride);
System\Windows\Media\MediaPlayerState.cs (3)
266ArgumentOutOfRangeException.ThrowIfEqual(value, double.NaN); 314ArgumentOutOfRangeException.ThrowIfEqual(value, double.NaN); 931ArgumentOutOfRangeException.ThrowIfEqual(value, double.NaN);
System\Windows\Media\TextEffect.cs (1)
54ArgumentOutOfRangeException.ThrowIfNegative(positionCount);
System\Windows\Media\textformatting\CharacterBufferReference.cs (2)
87ArgumentOutOfRangeException.ThrowIfNegative(offsetToFirstChar); 92ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetToFirstChar, maxOffset);
System\Windows\Media\textformatting\CharacterString.cs (2)
98ArgumentOutOfRangeException.ThrowIfNegative(characterLength); 104ArgumentOutOfRangeException.ThrowIfGreaterThan(characterLength, maxLength);
System\Windows\Media\textformatting\TextCharacters.cs (2)
119ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length); 132ArgumentOutOfRangeException.ThrowIfNegativeOrZero(textRunProperties.FontRenderingEmSize, "textRunProperties.FontRenderingEmSize");
System\Windows\Media\textformatting\TextEndOfLine.cs (1)
51ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length);
System\Windows\Media\textformatting\TextEndOfSegment.cs (1)
40ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length);
System\Windows\Media\textformatting\TextHidden.cs (1)
41ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length);
System\Windows\Media\textformatting\TextParagraphCache.cs (3)
180ArgumentOutOfRangeException.ThrowIfEqual(maxLineWidth, double.NaN); 188ArgumentOutOfRangeException.ThrowIfNegative(maxLineWidth); 189ArgumentOutOfRangeException.ThrowIfGreaterThan(maxLineWidth, Constants.RealInfiniteWidth);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
60ArgumentOutOfRangeException.ThrowIfNegativeOrZero(autoNumberingIndex);
System\Windows\Media\VisualCollection.cs (20)
197ArgumentOutOfRangeException.ThrowIfNegative(index); 198ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _size); 220ArgumentOutOfRangeException.ThrowIfNegative(index); 221ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _size); 303/// <exception cref="ArgumentOutOfRangeException">Capacity is set to a value that is less than Count.</exception> 326/// <exception cref="ArgumentOutOfRangeException"><c>index</c> is less than zero -or- <c>index</c> is equal to or greater than Count.</exception> 340ArgumentOutOfRangeException.ThrowIfNegative(index); 341ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 349ArgumentOutOfRangeException.ThrowIfNegative(index); 350ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 685/// <exception cref="ArgumentOutOfRangeException"> 708ArgumentOutOfRangeException.ThrowIfNegative(index); 709ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _size); 747/// <exception cref="ArgumentOutOfRangeException">index is less than zero 758ArgumentOutOfRangeException.ThrowIfNegative(index); 759ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 771/// <exception cref="ArgumentOutOfRangeException"> 789ArgumentOutOfRangeException.ThrowIfNegative(index); 790ArgumentOutOfRangeException.ThrowIfNegative(count); 791ArgumentOutOfRangeException.ThrowIfGreaterThan(count, _size - index);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (4)
299ArgumentOutOfRangeException.ThrowIfNegative(index); 300ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 409ArgumentOutOfRangeException.ThrowIfNegative(index); 410ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\MaterialCollection.cs (4)
313ArgumentOutOfRangeException.ThrowIfNegative(index); 314ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 423ArgumentOutOfRangeException.ThrowIfNegative(index); 424ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Model3DCollection.cs (4)
313ArgumentOutOfRangeException.ThrowIfNegative(index); 314ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 423ArgumentOutOfRangeException.ThrowIfNegative(index); 424ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Point3DCollection.cs (4)
250ArgumentOutOfRangeException.ThrowIfNegative(index); 251ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 373ArgumentOutOfRangeException.ThrowIfNegative(index); 374ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Transform3DCollection.cs (4)
313ArgumentOutOfRangeException.ThrowIfNegative(index); 314ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 423ArgumentOutOfRangeException.ThrowIfNegative(index); 424ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Vector3DCollection.cs (4)
250ArgumentOutOfRangeException.ThrowIfNegative(index); 251ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 373ArgumentOutOfRangeException.ThrowIfNegative(index); 374ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Visual3DCollection.cs (10)
108ArgumentOutOfRangeException.ThrowIfNegative(index); 109ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InternalCount); 151ArgumentOutOfRangeException.ThrowIfNegative(index); 152ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, array.Length); 153ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - Count); 167ArgumentOutOfRangeException.ThrowIfNegative(index); 168ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, array.Length); 169ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - Count); 262ArgumentOutOfRangeException.ThrowIfNegative(index); 263ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InternalCount);
PresentationFramework (214)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
420ArgumentOutOfRangeException.ThrowIfNegative(offset); 421ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, realLocator.Parts.Count);
MS\Internal\Annotations\ObservableDictionary.cs (3)
188/// <exception cref="ArgumentOutOfRangeException">startIndex is less than zero or greater than the lenght of target</exception> 192ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 193ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, target.Length);
MS\Internal\Controls\InnerItemCollectionView.cs (3)
431/// <exception cref="ArgumentOutOfRangeException"> 465ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 466ArgumentOutOfRangeException.ThrowIfGreaterThan(position, ViewCount);
MS\Internal\Data\CollectionViewProxy.cs (2)
348/// <exception cref="ArgumentOutOfRangeException"> 354ArgumentOutOfRangeException.ThrowIfNegative(index);
MS\Internal\Data\CompositeCollectionView.cs (5)
196/// <exception cref="ArgumentOutOfRangeException"> 201ArgumentOutOfRangeException.ThrowIfNegative(index); 310/// <exception cref="ArgumentOutOfRangeException"> 315ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 326ArgumentOutOfRangeException.ThrowIfGreaterThan(position, Count);
MS\Internal\Data\EnumerableCollectionView.cs (1)
354/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Data\IndexedEnumerable.cs (2)
206/// <exception cref="ArgumentOutOfRangeException"> 221ArgumentOutOfRangeException.ThrowIfNegative(index);
MS\Internal\Data\RBTree.cs (3)
578ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 631ArgumentOutOfRangeException.ThrowIfNegative(index); 632ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count + delta);
MS\Internal\Documents\ContentElementCollection.cs (6)
65/// <exception cref="ArgumentOutOfRangeException"> 98/// <exception cref="ArgumentOutOfRangeException"> 205/// <exception cref="ArgumentOutOfRangeException"> 247/// <exception cref="ArgumentOutOfRangeException"> 267/// <exception cref="ArgumentOutOfRangeException"> 604/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\DocumentGrid.cs (5)
431ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(scale, 0.0); 448ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 462ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 2693ArgumentOutOfRangeException.ThrowIfLessThan(pageNumber, row.FirstPage); 2694ArgumentOutOfRangeException.ThrowIfGreaterThan(pageNumber, row.FirstPage + row.PageCount);
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
70/// <exception cref="ArgumentOutOfRangeException"> 136/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\PageCache.cs (9)
699ArgumentOutOfRangeException.ThrowIfNegative(start); 700ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count); 758ArgumentOutOfRangeException.ThrowIfNegative(start); 759ArgumentOutOfRangeException.ThrowIfLessThan(count, 1); 793ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _cache.Count); 794ArgumentOutOfRangeException.ThrowIfNegative(index); 820ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(start, _cache.Count); 822ArgumentOutOfRangeException.ThrowIfGreaterThan(count, _cache.Count - start); 823ArgumentOutOfRangeException.ThrowIfLessThan(count, 1);
MS\Internal\Documents\RowCache.cs (21)
246ArgumentOutOfRangeException.ThrowIfNegative(index); 247ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _rowCache.Count); 260ArgumentOutOfRangeException.ThrowIfNegative(pageNumber); 261ArgumentOutOfRangeException.ThrowIfGreaterThan(pageNumber, LastPageInCache); 274ArgumentOutOfRangeException.ThrowIfNegative(pageNumber); 275ArgumentOutOfRangeException.ThrowIfGreaterThan(pageNumber, LastPageInCache); 304ArgumentOutOfRangeException.ThrowIfNegative(offset); 305ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, ExtentHeight); 394ArgumentOutOfRangeException.ThrowIfLessThan(endOffset, startOffset); 506ArgumentOutOfRangeException.ThrowIfNegative(pivotPage); 508ArgumentOutOfRangeException.ThrowIfGreaterThan(pivotPage, PageCache.PageCount); 511ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 645ArgumentOutOfRangeException.ThrowIfNegative(pivotPage); 646ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(pivotPage, PageCache.PageCount); 649ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 727ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.PageCount); 800ArgumentOutOfRangeException.ThrowIfNegative(startPage); 801ArgumentOutOfRangeException.ThrowIfGreaterThan(startPage, PageCache.PageCount); 804ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 832ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.PageCount); 834ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1);
MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
80/// <exception cref="ArgumentOutOfRangeException"> 229/// <exception cref="ArgumentOutOfRangeException"> 258/// <exception cref="ArgumentOutOfRangeException"> 315/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\TableTextElementCollectionInternal.cs (4)
84/// <exception cref="ArgumentOutOfRangeException"> 177/// <exception cref="ArgumentOutOfRangeException"> 207/// <exception cref="ArgumentOutOfRangeException"> 401/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\TextBoxView.cs (1)
554ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, this.VisualChildrenCount);
MS\Internal\Documents\UndoManager.cs (6)
506/// <exception cref="ArgumentOutOfRangeException"> 519ArgumentOutOfRangeException.ThrowIfGreaterThan(count, UndoCount); 520ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count); 571/// <exception cref="ArgumentOutOfRangeException"> 584ArgumentOutOfRangeException.ThrowIfGreaterThan(count, RedoStack.Count); 585ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count);
MS\Internal\WeakDictionary.cs (2)
295ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - count);
MS\Internal\WeakHashSet.cs (2)
42ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 51ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - count);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
91ArgumentOutOfRangeException.ThrowIfNegative(index); 143catch (ArgumentOutOfRangeException ex)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
169/// <exception cref="ArgumentOutOfRangeException"> 189/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (4)
206ArgumentOutOfRangeException.ThrowIfNegative(row); 207ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(row, ((IGridProvider)this).RowCount); 208ArgumentOutOfRangeException.ThrowIfNegative(column); 209ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(column, ((IGridProvider)this).ColumnCount);
System\Windows\Automation\Peers\GridViewColumnHeaderAutomationPeer.cs (2)
93ArgumentOutOfRangeException.ThrowIfNegative(width); 94ArgumentOutOfRangeException.ThrowIfNegative(height);
System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (2)
67ArgumentOutOfRangeException.ThrowIfLessThan(val, owner.Minimum); 68ArgumentOutOfRangeException.ThrowIfGreaterThan(val, owner.Maximum);
System\Windows\Automation\Peers\TableAutomationPeer.cs (4)
128ArgumentOutOfRangeException.ThrowIfNegative(row); 129ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(row, ((IGridProvider)this).RowCount); 130ArgumentOutOfRangeException.ThrowIfNegative(column); 131ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(column, ((IGridProvider)this).ColumnCount);
System\Windows\Controls\DataGridCellsPanel.cs (3)
2140/// <exception cref="ArgumentOutOfRangeException"> 2153ArgumentOutOfRangeException.ThrowIfNegative(index); 2154ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, parentDataGrid.Columns.Count);
System\Windows\Controls\GridViewColumnCollection.cs (4)
356ArgumentOutOfRangeException.ThrowIfNegative(index); 357ArgumentOutOfRangeException.ThrowIfGreaterThan(index, count); 424ArgumentOutOfRangeException.ThrowIfNegative(index, indexName); 425ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _actualIndices.Count, indexName);
System\Windows\Controls\ItemCollection.cs (9)
300ArgumentOutOfRangeException.ThrowIfNegative(index); 337/// <exception cref="ArgumentOutOfRangeException"> 343ArgumentOutOfRangeException.ThrowIfNegative(index); 353ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _internalView.Count); 375/// <exception cref="ArgumentOutOfRangeException"> 416/// <exception cref="ArgumentOutOfRangeException"> 522/// <exception cref="ArgumentOutOfRangeException"> 535ArgumentOutOfRangeException.ThrowIfNegative(index); 536ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _internalView.Count);
System\Windows\Controls\MultipleCopiesCollection.cs (2)
285ArgumentOutOfRangeException.ThrowIfNegative(index); 286ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, RepeatCount);
System\Windows\Controls\PasswordBox.cs (2)
1080ArgumentOutOfRangeException.ThrowIfNegative(start); 1081ArgumentOutOfRangeException.ThrowIfNegative(length);
System\Windows\Controls\TextBox.cs (20)
157ArgumentOutOfRangeException.ThrowIfNegative(start); 158ArgumentOutOfRangeException.ThrowIfNegative(length); 241ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 242ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 265ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 266ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 296ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 297ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 372ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 373ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 400ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 401ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 437ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 438ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 481ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 482ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 552ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 553ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 808ArgumentOutOfRangeException.ThrowIfNegative(value); 849ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
386ArgumentOutOfRangeException.ThrowIfNegative(index); 387ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Controls\VirtualizingStackPanel.cs (3)
1622/// <exception cref="ArgumentOutOfRangeException"> 1696ArgumentOutOfRangeException.ThrowIfNegative(itemIndex); 1697ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, ItemCount);
System\Windows\Data\BindingListCollectionView.cs (3)
109ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 110ArgumentOutOfRangeException.ThrowIfGreaterThan(position, InternalCount); 162/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Data\CollectionView.cs (4)
548ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 549ArgumentOutOfRangeException.ThrowIfGreaterThan(position, Count); 659/// <exception cref="ArgumentOutOfRangeException"> 665ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Data\CompositeCollection.cs (3)
189/// <exception cref="ArgumentOutOfRangeException"> 231/// <exception cref="ArgumentOutOfRangeException"> 301/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Data\ListCollectionView.cs (3)
202ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 203ArgumentOutOfRangeException.ThrowIfGreaterThan(position, InternalCount); 303/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Data\RelativeSource.cs (1)
204/// <exception cref="ArgumentOutOfRangeException"> AncestorLevel cannot be set to less than 1 </exception>
System\Windows\Documents\FixedDocument.cs (2)
320/// <exception cref="ArgumentOutOfRangeException">pageNumber is less than zero.</exception> 367/// <exception cref="ArgumentOutOfRangeException">pageNumber is less than zero.</exception>
System\Windows\Documents\ITextView.cs (9)
76/// <exception cref="System.ArgumentOutOfRangeException"> 113/// <exception cref="System.ArgumentOutOfRangeException"> 173/// <exception cref="System.ArgumentOutOfRangeException"> 219/// <exception cref="System.ArgumentOutOfRangeException"> 251/// <exception cref="System.ArgumentOutOfRangeException"> 290/// <exception cref="System.ArgumentOutOfRangeException"> 316/// <exception cref="System.ArgumentOutOfRangeException"> 345/// <exception cref="System.ArgumentOutOfRangeException"> 374/// <exception cref="System.ArgumentOutOfRangeException">
System\Windows\Documents\TableCellCollection.cs (7)
57/// <exception cref="ArgumentOutOfRangeException"> 76/// <exception cref="ArgumentOutOfRangeException"> 162/// <exception cref="ArgumentOutOfRangeException"> 210/// <exception cref="ArgumentOutOfRangeException"> 232/// <exception cref="ArgumentOutOfRangeException"> 412/// <exception cref="ArgumentOutOfRangeException"> 435/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TableColumnCollection.cs (7)
57/// <exception cref="ArgumentOutOfRangeException"> 76/// <exception cref="ArgumentOutOfRangeException"> 162/// <exception cref="ArgumentOutOfRangeException"> 210/// <exception cref="ArgumentOutOfRangeException"> 232/// <exception cref="ArgumentOutOfRangeException"> 420/// <exception cref="ArgumentOutOfRangeException"> 443/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TableRowCollection.cs (7)
57/// <exception cref="ArgumentOutOfRangeException"> 76/// <exception cref="ArgumentOutOfRangeException"> 162/// <exception cref="ArgumentOutOfRangeException"> 210/// <exception cref="ArgumentOutOfRangeException"> 232/// <exception cref="ArgumentOutOfRangeException"> 412/// <exception cref="ArgumentOutOfRangeException"> 435/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TableRowGroupCollection.cs (7)
57/// <exception cref="ArgumentOutOfRangeException"> 76/// <exception cref="ArgumentOutOfRangeException"> 162/// <exception cref="ArgumentOutOfRangeException"> 210/// <exception cref="ArgumentOutOfRangeException"> 232/// <exception cref="ArgumentOutOfRangeException"> 411/// <exception cref="ArgumentOutOfRangeException"> 434/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TextElementCollection.cs (1)
608ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
System\Windows\Documents\ZoomPercentageConverter.cs (1)
196catch (ArgumentOutOfRangeException) { }
System\Windows\FigureLength.cs (3)
125ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 1.0); 130ArgumentOutOfRangeException.ThrowIfGreaterThan(value, maxColumns); 135ArgumentOutOfRangeException.ThrowIfGreaterThan(value, maxPixel);
System\Windows\Markup\Baml2006\SharedStream.cs (5)
52ArgumentOutOfRangeException.ThrowIfNegative(offset); 54ArgumentOutOfRangeException.ThrowIfNegative(length); 169ArgumentOutOfRangeException.ThrowIfNegative(offset); 170ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, buffer.Length); 171ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length - count);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
285ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
System\Windows\Markup\XamlStream.cs (3)
187ArgumentOutOfRangeException.ThrowIfLessThan(position, ReadLength); 194ArgumentOutOfRangeException.ThrowIfGreaterThan(position, WriteLength); 225ArgumentOutOfRangeException.ThrowIfGreaterThan(count, ReadLength - ReadPosition);
System\Windows\Media\Animation\Generated\KeyFrames.cs (2)
143ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 144ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0);
System\Windows\StyleHelper.cs (1)
5445ArgumentOutOfRangeException.ThrowIfNegative(childIndex);
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1895catch (ArgumentOutOfRangeException) { }
ReachFramework (61)
PrintConfig\DocumentNUp.cs (2)
511/// <exception cref="ArgumentOutOfRangeException"> 623/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobCollate.cs (1)
271/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobDuplex.cs (1)
269/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobInputBins.cs (1)
353/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobPageOrder.cs (1)
243/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobStaple.cs (1)
275/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageBorderless.cs (1)
244/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageCopyCount.cs (1)
80/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageDeviceFont.cs (1)
245/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageMediaSize.cs (6)
461/// <exception cref="ArgumentOutOfRangeException"> 502/// <exception cref="ArgumentOutOfRangeException"> 517/// <exception cref="ArgumentOutOfRangeException"> 520/// <exception cref="ArgumentOutOfRangeException"> 545/// <exception cref="ArgumentOutOfRangeException"> 548/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageMediaType.cs (1)
247/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageOrientation.cs (1)
243/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageOutputColor.cs (1)
247/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageOutputQuality.cs (1)
245/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageResolution.cs (3)
344/// <exception cref="ArgumentOutOfRangeException"> 371/// <exception cref="ArgumentOutOfRangeException"> 398/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageScaling.cs (1)
524/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageTrueTypeFont.cs (1)
245/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PhotoPrintingIntent.cs (1)
243/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PrtCap_Public.cs (1)
108/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PrtTicket_Public_Simple.cs (23)
343/// <exception cref="ArgumentOutOfRangeException"> 387/// <exception cref="ArgumentOutOfRangeException"> 433/// <exception cref="ArgumentOutOfRangeException"> 477/// <exception cref="ArgumentOutOfRangeException"> 530/// <exception cref="ArgumentOutOfRangeException"> 599/// <exception cref="ArgumentOutOfRangeException"> 643/// <exception cref="ArgumentOutOfRangeException"> 687/// <exception cref="ArgumentOutOfRangeException"> 731/// <exception cref="ArgumentOutOfRangeException"> 735/// <exception cref="ArgumentOutOfRangeException"> 739/// <exception cref="ArgumentOutOfRangeException"> 842/// <exception cref="ArgumentOutOfRangeException"> 886/// <exception cref="ArgumentOutOfRangeException"> 930/// <exception cref="ArgumentOutOfRangeException"> 974/// <exception cref="ArgumentOutOfRangeException"> 978/// <exception cref="ArgumentOutOfRangeException"> 982/// <exception cref="ArgumentOutOfRangeException"> 1084/// <exception cref="ArgumentOutOfRangeException"> 1137/// <exception cref="ArgumentOutOfRangeException"> 1184/// <exception cref="ArgumentOutOfRangeException"> 1228/// <exception cref="ArgumentOutOfRangeException"> 1272/// <exception cref="ArgumentOutOfRangeException"> 1316/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PTConverter.cs (7)
69/// <exception cref="ArgumentOutOfRangeException"> 83ArgumentOutOfRangeException.ThrowIfGreaterThan(clientPrintSchemaVersion, MaxPrintSchemaVersion); 84ArgumentOutOfRangeException.ThrowIfNegativeOrZero(clientPrintSchemaVersion); 149/// <exception cref="ArgumentOutOfRangeException"> 181/// <exception cref="ArgumentOutOfRangeException"> 209/// <exception cref="ArgumentOutOfRangeException"> 212/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PTManager.cs (4)
205/// <exception cref="ArgumentOutOfRangeException"> 219ArgumentOutOfRangeException.ThrowIfNegativeOrZero(clientPrintSchemaVersion); 220ArgumentOutOfRangeException.ThrowIfGreaterThan(clientPrintSchemaVersion, MaxPrintSchemaVersion); 360/// <exception cref="ArgumentOutOfRangeException">
System.Collections (28)
System\Collections\BitArray.cs (5)
45ArgumentOutOfRangeException.ThrowIfNegative(length); 604ArgumentOutOfRangeException.ThrowIfNegative(count); 668ArgumentOutOfRangeException.ThrowIfNegative(count); 720ArgumentOutOfRangeException.ThrowIfNegative(value); 752ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Generic\LinkedList.cs (2)
198ArgumentOutOfRangeException.ThrowIfNegative(index); 461ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Generic\PriorityQueue.cs (5)
80/// <exception cref="ArgumentOutOfRangeException"> 111/// <exception cref="ArgumentOutOfRangeException"> 116ArgumentOutOfRangeException.ThrowIfNegative(initialCapacity); 572/// <exception cref="ArgumentOutOfRangeException"> 578ArgumentOutOfRangeException.ThrowIfNegative(capacity);
System\Collections\Generic\SortedDictionary.cs (4)
546ArgumentOutOfRangeException.ThrowIfNegative(index); 570ArgumentOutOfRangeException.ThrowIfNegative(index); 707ArgumentOutOfRangeException.ThrowIfNegative(index); 731ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Generic\SortedList.cs (4)
90ArgumentOutOfRangeException.ThrowIfNegative(capacity); 523/// <exception cref="ArgumentOutOfRangeException">The specified index was out of range.</exception> 536/// <exception cref="ArgumentOutOfRangeException">The specified index was out of range.</exception> 560/// <exception cref="ArgumentOutOfRangeException">The specified index is out of range.</exception>
System\Collections\Generic\SortedSet.cs (3)
517ArgumentOutOfRangeException.ThrowIfNegative(index); 519ArgumentOutOfRangeException.ThrowIfNegative(count); 554ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Generic\Stack.cs (5)
44ArgumentOutOfRangeException.ThrowIfNegative(capacity); 178/// <exception cref="ArgumentOutOfRangeException">Passed capacity is lower than 0 or entries count.</exception> 181ArgumentOutOfRangeException.ThrowIfNegative(capacity); 182ArgumentOutOfRangeException.ThrowIfLessThan(capacity, _size); 303ArgumentOutOfRangeException.ThrowIfNegative(capacity);
System.Collections.Concurrent (69)
System\Collections\Concurrent\BlockingCollection.cs (32)
156/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="boundedCapacity"/> is 173/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="boundedCapacity"/> is not a positive value.</exception> 179ArgumentOutOfRangeException.ThrowIfNegativeOrZero(boundedCapacity); 321/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative number 344/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 370/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 571/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative number 593/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 618/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 750/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 792/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 831/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 856/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative number 860/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 884/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 887/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 916/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 919/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1133/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1162/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1190/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1215/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative number 1221/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1246/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 1251/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1280/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 1285/// <exception cref="System.ArgumentOutOfRangeException">The count of <paramref name="collections"/> is greater than the maximum size of 1532/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="index"/> argument is less than zero.</exception> 1550/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="index"/> argument is less than zero.</exception> 1572catch (ArgumentOutOfRangeException) 1694/// <exception cref="System.ArgumentOutOfRangeException">If the number of milliseconds represented by the timeout 1709/// <exception cref="System.ArgumentOutOfRangeException">If the number of milliseconds is less than 0 and not
System\Collections\Concurrent\ConcurrentBag.cs (3)
270/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 280ArgumentOutOfRangeException.ThrowIfNegative(index); 344/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than
System\Collections\Concurrent\ConcurrentDictionary.cs (9)
79/// <exception cref="ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is less than 1.</exception> 80/// <exception cref="ArgumentOutOfRangeException"> <paramref name="capacity"/> is less than 0.</exception> 134/// <exception cref="ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is less than 1.</exception> 152/// <exception cref="ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is less than 1. -or- <paramref name="capacity"/> is less than 0.</exception> 170ArgumentOutOfRangeException.ThrowIfNegative(capacity); 700/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0.</exception> 710ArgumentOutOfRangeException.ThrowIfNegative(index); 1836/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 1846ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Concurrent\ConcurrentStack.cs (7)
213/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 248/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 321/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> or <paramref 394ArgumentOutOfRangeException.ThrowIfNegative(count); 397ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, length); 398ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 521/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> or <paramref
System\Collections\Concurrent\OrderablePartitioner.cs (1)
35/// <see cref="System.ArgumentOutOfRangeException"/> if the requested partition count is less than or
System\Collections\Concurrent\Partitioner.cs (1)
27/// <see cref="System.ArgumentOutOfRangeException"/> if the requested partition count is less than or
System\Collections\Concurrent\PartitionerStatic.cs (16)
154/// <exception cref="System.ArgumentOutOfRangeException"> 179/// <exception cref="System.ArgumentOutOfRangeException"> The <paramref name="toExclusive"/> argument is 184ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(toExclusive, fromInclusive); 196/// <exception cref="System.ArgumentOutOfRangeException"> The <paramref name="toExclusive"/> argument is 198/// <exception cref="System.ArgumentOutOfRangeException"> The <paramref name="rangeSize"/> argument is 202ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(toExclusive, fromInclusive); 203ArgumentOutOfRangeException.ThrowIfNegativeOrZero(rangeSize); 232/// <exception cref="System.ArgumentOutOfRangeException"> The <paramref name="toExclusive"/> argument is 238ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(toExclusive, fromInclusive); 250/// <exception cref="System.ArgumentOutOfRangeException"> The <paramref name="toExclusive"/> argument is 252/// <exception cref="System.ArgumentOutOfRangeException"> The <paramref name="rangeSize"/> argument is 256ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(toExclusive, fromInclusive); 257ArgumentOutOfRangeException.ThrowIfNegativeOrZero(rangeSize); 503ArgumentOutOfRangeException.ThrowIfNegativeOrZero(partitionCount); 1012ArgumentOutOfRangeException.ThrowIfNegativeOrZero(partitionCount); 1368ArgumentOutOfRangeException.ThrowIfNegativeOrZero(partitionCount);
System.Collections.Immutable (8)
System\Collections\Immutable\IImmutableListQueries.cs (1)
319/// <exception cref="ArgumentOutOfRangeException">
System\Collections\Immutable\ImmutableArray.cs (2)
525/// <exception cref="ArgumentOutOfRangeException"> 565/// <exception cref="ArgumentOutOfRangeException">
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
998/// <exception cref="ArgumentOutOfRangeException">
System\Collections\Immutable\ImmutableList_1.cs (1)
111/// <exception cref="ArgumentOutOfRangeException">
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
660/// <exception cref="ArgumentOutOfRangeException">
Validation\Requires.cs (2)
81/// Throws an <see cref="ArgumentOutOfRangeException"/> if a condition does not evaluate to true. 93/// Throws an <see cref="ArgumentOutOfRangeException"/>.
System.Collections.NonGeneric (8)
System\Collections\Queue.cs (4)
54ArgumentOutOfRangeException.ThrowIfNegative(capacity); 55ArgumentOutOfRangeException.ThrowIfLessThan(growFactor, 1.0f); 56ArgumentOutOfRangeException.ThrowIfGreaterThan(growFactor, 10.0f); 134ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\SortedList.cs (2)
97ArgumentOutOfRangeException.ThrowIfNegative(initialCapacity); 340ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
System\Collections\Stack.cs (2)
43ArgumentOutOfRangeException.ThrowIfNegative(initialCapacity); 120ArgumentOutOfRangeException.ThrowIfNegative(index);
System.Collections.Specialized (11)
System\Collections\Specialized\BitVector32.cs (1)
139ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxValue);
System\Collections\Specialized\ListDictionary.cs (2)
208ArgumentOutOfRangeException.ThrowIfNegative(index); 366ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
380ArgumentOutOfRangeException.ThrowIfNegative(index); 604ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Specialized\NameValueCollection.cs (1)
205ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Collections\Specialized\OrderedDictionary.cs (5)
316ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 317ArgumentOutOfRangeException.ThrowIfNegative(index); 333ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 334ArgumentOutOfRangeException.ThrowIfNegative(index); 560ArgumentOutOfRangeException.ThrowIfNegative(index);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
100/// <exception cref="ArgumentOutOfRangeException"> thrown if <see cref="MatchTimeoutInMilliseconds" /> is negative (except -1),
System\ComponentModel\DataAnnotations\Schema\ColumnAttribute.cs (1)
48ArgumentOutOfRangeException.ThrowIfNegative(value);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\ContextStack.cs (1)
52ArgumentOutOfRangeException.ThrowIfNegative(level);
System.Console (11)
System\Console.cs (7)
409ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value, nameof(WindowWidth)); 429ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value, nameof(WindowHeight)); 452ArgumentOutOfRangeException.ThrowIfNegativeOrZero(width, nameof(width)); 453ArgumentOutOfRangeException.ThrowIfNegativeOrZero(height, nameof(height)); 652ArgumentOutOfRangeException.ThrowIfNegative(bufferSize); 664ArgumentOutOfRangeException.ThrowIfNegative(bufferSize); 676ArgumentOutOfRangeException.ThrowIfNegative(bufferSize);
System\IO\SyncTextReader.cs (4)
122ArgumentOutOfRangeException.ThrowIfNegative(index); 123ArgumentOutOfRangeException.ThrowIfNegative(count); 134ArgumentOutOfRangeException.ThrowIfNegative(index); 135ArgumentOutOfRangeException.ThrowIfNegative(count);
System.Data.Common (95)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (8)
79internal static ArgumentOutOfRangeException ArgumentOutOfRange(string parameterName) 81ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName); 86internal static ArgumentOutOfRangeException ArgumentOutOfRange(string message, string parameterName) 88ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, message); 188internal static ArgumentOutOfRangeException NotSupportedEnumerationValue(Type type, string value, string method) 274internal static ArgumentOutOfRangeException InvalidEnumerationValue(Type type, int value) 458internal static ArgumentOutOfRangeException InvalidSourceBufferIndex(int maxLen, long srcOffset, string parameterName) 462internal static ArgumentOutOfRangeException InvalidDestinationBufferIndex(int maxLen, int dstOffset, string parameterName)
System\Data\Common\AdapterUtil.Common.cs (13)
66internal static ArgumentOutOfRangeException InvalidAcceptRejectRule(AcceptRejectRule value) 81internal static ArgumentOutOfRangeException InvalidCatalogLocation(CatalogLocation value) 95internal static ArgumentOutOfRangeException InvalidConflictOptions(ConflictOption value) 111internal static ArgumentOutOfRangeException InvalidDataRowState(DataRowState value) 129internal static ArgumentOutOfRangeException InvalidKeyRestrictionBehavior(KeyRestrictionBehavior value) 144internal static ArgumentOutOfRangeException InvalidLoadOption(LoadOption value) 160internal static ArgumentOutOfRangeException InvalidMissingMappingAction(MissingMappingAction value) 176internal static ArgumentOutOfRangeException InvalidMissingSchemaAction(MissingSchemaAction value) 192internal static ArgumentOutOfRangeException InvalidRule(Rule value) 209internal static ArgumentOutOfRangeException InvalidSchemaType(SchemaType value) 224internal static ArgumentOutOfRangeException InvalidStatementType(StatementType value) 242internal static ArgumentOutOfRangeException InvalidUpdateStatus(UpdateStatus value) 258internal static ArgumentOutOfRangeException NotSupportedStatementType(StatementType value, string method)
System\Data\DataColumnCollection.cs (1)
68catch (ArgumentOutOfRangeException)
System\Data\DataSetUtil.cs (4)
28internal static ArgumentOutOfRangeException ArgumentOutOfRange(string message, string parameterName) 48internal static ArgumentOutOfRangeException InvalidEnumerationValue(Type type, int value) 53internal static ArgumentOutOfRangeException InvalidDataRowState(DataRowState value) 70internal static ArgumentOutOfRangeException InvalidLoadOption(LoadOption value)
System\Data\DataTableCollection.cs (1)
61catch (ArgumentOutOfRangeException)
System\Data\SQLTypes\SQLBytes.cs (26)
194ArgumentOutOfRangeException.ThrowIfNegative(offset); 195ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, Length); 254ArgumentOutOfRangeException.ThrowIfNegative(value); 269ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _rgbBuf.Length); 289ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, Length); 290ArgumentOutOfRangeException.ThrowIfNegative(offset); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, Length); 305ArgumentOutOfRangeException.ThrowIfNegative(offset); 307ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetInBuffer, Length); 308ArgumentOutOfRangeException.ThrowIfNegative(offsetInBuffer); 310ArgumentOutOfRangeException.ThrowIfNegative(count); 311ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offsetInBuffer); 347ArgumentOutOfRangeException.ThrowIfNegative(offset); 376ArgumentOutOfRangeException.ThrowIfNegative(offset); 380ArgumentOutOfRangeException.ThrowIfNegative(offsetInBuffer); 381ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetInBuffer, buffer.Length); 383ArgumentOutOfRangeException.ThrowIfNegative(count); 384ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offsetInBuffer); 675ArgumentOutOfRangeException.ThrowIfNegative(value); 676ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _sb.Length); 694ArgumentOutOfRangeException.ThrowIfNegative(offset); 695ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, _sb.Length); 701ArgumentOutOfRangeException.ThrowIfNegative(lPosition, nameof(offset)); 702ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition, _sb.Length, nameof(offset)); 708ArgumentOutOfRangeException.ThrowIfNegative(lPosition, nameof(offset)); 709ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition, _sb.Length, nameof(offset));
System\Data\SQLTypes\SQLChars.cs (25)
195ArgumentOutOfRangeException.ThrowIfNegative(offset); 196ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, Length); 259ArgumentOutOfRangeException.ThrowIfNegative(value); 274ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _rgchBuf.Length); 297ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, Length); 298ArgumentOutOfRangeException.ThrowIfNegative(offset); 300ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetInBuffer, buffer.Length); 301ArgumentOutOfRangeException.ThrowIfNegative(offsetInBuffer); 303ArgumentOutOfRangeException.ThrowIfNegative(count); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offsetInBuffer); 346ArgumentOutOfRangeException.ThrowIfNegative(offset); 351ArgumentOutOfRangeException.ThrowIfNegative(offsetInBuffer); 352ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetInBuffer, buffer.Length); 354ArgumentOutOfRangeException.ThrowIfNegative(count); 355ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offsetInBuffer); 598ArgumentOutOfRangeException.ThrowIfNegative(value); 599ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _sqlchars.Length); 649ArgumentOutOfRangeException.ThrowIfNegative(offset); 650ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 651ArgumentOutOfRangeException.ThrowIfNegative(count); 652ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset); 665ArgumentOutOfRangeException.ThrowIfNegative(offset); 666ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 667ArgumentOutOfRangeException.ThrowIfNegative(count); 668ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System\Data\SQLTypes\SQLDecimal.cs (1)
1165ArgumentOutOfRangeException.ThrowIfLessThan(destination.Length, 4, nameof(destination));
System\Data\SQLTypes\SqlXml.cs (16)
347ArgumentOutOfRangeException.ThrowIfNegative(value); 348ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _stream.Length); 366ArgumentOutOfRangeException.ThrowIfNegative(offset); 367ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, _stream.Length); 373ArgumentOutOfRangeException.ThrowIfNegative(lPosition, nameof(offset)); 374ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition, _stream.Length, nameof(offset)); 380ArgumentOutOfRangeException.ThrowIfNegative(lPosition, nameof(offset)); 381ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition, _stream.Length, nameof(offset)); 398ArgumentOutOfRangeException.ThrowIfNegative(offset); 399ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 400ArgumentOutOfRangeException.ThrowIfNegative(count); 401ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset); 434ArgumentOutOfRangeException.ThrowIfNegative(offset); 435ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 436ArgumentOutOfRangeException.ThrowIfNegative(count); 437ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
1449ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 1450ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout));
System.Formats.Asn1 (43)
System\Formats\Asn1\Asn1Tag.cs (2)
57/// <exception cref="ArgumentOutOfRangeException"> 86/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.BitString.cs (3)
40/// <exception cref="ArgumentOutOfRangeException"> 130/// <exception cref="ArgumentOutOfRangeException"> 252/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Boolean.cs (1)
24/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.cs (5)
60/// <exception cref="ArgumentOutOfRangeException"> 136/// <exception cref="ArgumentOutOfRangeException"> 224/// <exception cref="ArgumentOutOfRangeException"> 267/// <exception cref="ArgumentOutOfRangeException"> 788/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Enumerated.cs (2)
28/// <exception cref="ArgumentOutOfRangeException"> 84/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (1)
28/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Integer.cs (6)
29/// <exception cref="ArgumentOutOfRangeException"> 79/// <exception cref="ArgumentOutOfRangeException"> 157/// <exception cref="ArgumentOutOfRangeException"> 223/// <exception cref="ArgumentOutOfRangeException"> 290/// <exception cref="ArgumentOutOfRangeException"> 349/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (3)
31/// <exception cref="ArgumentOutOfRangeException"> 141/// <exception cref="ArgumentOutOfRangeException"> 293/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Null.cs (1)
21/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.OctetString.cs (3)
35/// <exception cref="ArgumentOutOfRangeException"> 135/// <exception cref="ArgumentOutOfRangeException"> 246/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
30/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Sequence.cs (1)
35/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.SetOf.cs (1)
41/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Text.cs (6)
39/// <exception cref="ArgumentOutOfRangeException"> 118/// <exception cref="ArgumentOutOfRangeException"> 212/// <exception cref="ArgumentOutOfRangeException"> 284/// <exception cref="ArgumentOutOfRangeException"> 687/// <exception cref="ArgumentOutOfRangeException"> 747/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
31/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnWriter.BitString.cs (1)
33/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnWriter.cs (2)
36/// <exception cref="ArgumentOutOfRangeException"> 56/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnWriter.Text.cs (2)
25/// <exception cref="ArgumentOutOfRangeException"> 61/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
50/// <exception cref="ArgumentOutOfRangeException">
System.Formats.Cbor (6)
System\Formats\Cbor\Reader\CborReader.cs (1)
55/// <exception cref="ArgumentOutOfRangeException"><paramref name="conformanceMode" /> is not defined.</exception>
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
14/// <exception cref="ArgumentOutOfRangeException">The <paramref name="definiteLength" /> parameter cannot be negative.</exception>
System\Formats\Cbor\Writer\CborWriter.cs (2)
64/// <exception cref="ArgumentOutOfRangeException"><paramref name="conformanceMode" /> is not a defined <see cref="CborConformanceMode" />.</exception> 77/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
19/// <exception cref="ArgumentOutOfRangeException">The <paramref name="definiteLength" /> parameter cannot be negative.</exception>
System\Formats\Cbor\Writer\CborWriter.Simple.cs (1)
105/// <exception cref="ArgumentOutOfRangeException">The <paramref name="value" /> parameter is in the invalid 24-31 range.</exception>
System.Formats.Tar (13)
System\Formats\Tar\GnuTarEntry.cs (2)
101ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch); 115ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch);
System\Formats\Tar\PosixTarEntry.cs (6)
53/// <exception cref="ArgumentOutOfRangeException">The value is negative, or larger than 2097151.</exception> 64ArgumentOutOfRangeException.ThrowIfNegative(value); 65ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0x1FFFFF); // 7777777 in octal 76/// <exception cref="ArgumentOutOfRangeException">The value is negative, or larger than 2097151.</exception> 87ArgumentOutOfRangeException.ThrowIfNegative(value); 88ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0x1FFFFF); // 7777777 in octal
System\Formats\Tar\SeekableSubReadStream.cs (2)
37ArgumentOutOfRangeException.ThrowIfNegative(value); 38ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, _endInSuperStream);
System\Formats\Tar\TarEntry.cs (2)
95/// <exception cref="ArgumentOutOfRangeException">The specified value is larger than <see cref="DateTimeOffset.UnixEpoch"/>.</exception> 101ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch);
System\Formats\Tar\TarWriter.cs (1)
58/// <exception cref="ArgumentOutOfRangeException"><paramref name="format"/> is either <see cref="TarEntryFormat.Unknown"/>, or not one of the other enum values.</exception>
System.IO.Compression (5)
System\IO\Compression\ZipArchive.cs (3)
52/// <exception cref="ArgumentOutOfRangeException">mode specified an invalid value.</exception> 63/// <exception cref="ArgumentOutOfRangeException">mode specified an invalid value.</exception> 75/// <exception cref="ArgumentOutOfRangeException">mode specified an invalid value.</exception>
System\IO\Compression\ZipArchiveEntry.cs (1)
256/// <exception cref="ArgumentOutOfRangeException">An attempt was made to set this property to a value that cannot be represented in the
System\IO\Compression\ZipHelper.cs (1)
77catch (ArgumentOutOfRangeException)
System.IO.Compression.Brotli (5)
System\IO\Compression\dec\BrotliStream.Decompress.cs (1)
27/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="offset" /> or <paramref name="count" /> is less than zero.</exception>
System\IO\Compression\enc\BrotliEncoder.cs (4)
20/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="quality" /> is not between the minimum value of 0 and the maximum value of 11. 109/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="inputSize" /> is less than 0, the minimum allowed input size, or greater than <see cref="int.MaxValue" /> - 515, the maximum allowed input size.</exception> 112ArgumentOutOfRangeException.ThrowIfNegative(inputSize); 113ArgumentOutOfRangeException.ThrowIfGreaterThan(inputSize, BrotliUtils.MaxInputSize);
System.IO.Compression.ZipFile (4)
System\IO\Compression\ZipFile.Create.cs (4)
47/// <exception cref="ArgumentOutOfRangeException"><code>mode</code> specified an invalid value.</exception> 84/// <exception cref="ArgumentOutOfRangeException"><code>mode</code> specified an invalid value.</exception> 400/// <exception cref="ArgumentOutOfRangeException"><paramref name="compressionLevel"/> is not a valid <see cref="CompressionLevel"/> value.</exception> 428/// <exception cref="ArgumentOutOfRangeException"><paramref name="compressionLevel"/> is not a valid <see cref="CompressionLevel"/> value.</exception>
System.IO.FileSystem.Watcher (3)
System\IO\FileSystemWatcher.cs (3)
629ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 630ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 727ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual((uint)index, (uint)items.Length, nameof(index));
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
31/// <exception cref="ArgumentOutOfRangeException">
System.IO.MemoryMappedFiles (7)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (5)
199/// <exception cref="ArgumentOutOfRangeException"> 293ArgumentOutOfRangeException.ThrowIfNegativeOrZero(capacity); 350ArgumentOutOfRangeException.ThrowIfNegativeOrZero(capacity); 399ArgumentOutOfRangeException.ThrowIfNegative(offset); 433ArgumentOutOfRangeException.ThrowIfNegative(offset);
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (1)
15ArgumentOutOfRangeException.ThrowIfGreaterThan(requestedOffset, memMappedFileHandle._capacity, "offset");
System\IO\MemoryMappedFiles\MemoryMappedViewStream.cs (1)
27ArgumentOutOfRangeException.ThrowIfNegative(value);
System.IO.Pipelines (1)
System\IO\Pipelines\ThrowHelper.cs (1)
14private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(ExceptionArgument argument) => new ArgumentOutOfRangeException(argument.ToString());
System.IO.Pipes (8)
System\IO\Pipes\NamedPipeClientStream.cs (4)
124ArgumentOutOfRangeException.ThrowIfLessThan(timeout, Timeout.Infinite); 185ArgumentOutOfRangeException.ThrowIfLessThan(timeout, Timeout.Infinite); 207ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 208ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout));
System\IO\Pipes\NamedPipeServerStream.cs (2)
108ArgumentOutOfRangeException.ThrowIfNegative(inBufferSize); 109ArgumentOutOfRangeException.ThrowIfNegative(outBufferSize);
System\IO\Pipes\PipeStream.cs (2)
37ArgumentOutOfRangeException.ThrowIfNegative(bufferSize); 52ArgumentOutOfRangeException.ThrowIfNegative(outBufferSize);
System.Linq (7)
System\Linq\Chunk.cs (1)
33/// <exception cref="ArgumentOutOfRangeException">
System\Linq\ElementAt.cs (1)
44/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is outside the bounds of the <paramref name="source" /> sequence.</exception>
System\Linq\Lookup.cs (5)
269ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 270ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length); 271ArgumentOutOfRangeException.ThrowIfLessThan(array.Length - arrayIndex, Count, nameof(arrayIndex)); 317ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 318ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length);
System.Linq.Expressions (21)
System\Dynamic\DynamicMetaObjectBinder.cs (3)
55ArgumentOutOfRangeException.ThrowIfZero(args.Length); 56ArgumentOutOfRangeException.ThrowIfZero(parameters.Count); 57ArgumentOutOfRangeException.ThrowIfNotEqual(args.Length, parameters.Count);
System\Dynamic\Utils\ContractUtils.cs (4)
134/// <exception cref="ArgumentOutOfRangeException">Offset or count are out of range.</exception> 141ArgumentOutOfRangeException.ThrowIfNegative(count, countName); 142ArgumentOutOfRangeException.ThrowIfNegative(offset, offsetName); 143ArgumentOutOfRangeException.ThrowIfLessThan(array.Count - offset, count, offsetName);
System\Linq\Expressions\DebugInfoExpression.cs (4)
182ArgumentOutOfRangeException.ThrowIfNegativeOrZero(startLine); 183ArgumentOutOfRangeException.ThrowIfNegativeOrZero(startColumn); 184ArgumentOutOfRangeException.ThrowIfNegativeOrZero(endLine); 185ArgumentOutOfRangeException.ThrowIfNegativeOrZero(endColumn);
System\Linq\Expressions\Error.cs (1)
1195internal static ArgumentOutOfRangeException ArgumentOutOfRange(string? paramName)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (9)
39ArgumentOutOfRangeException.ThrowIfNegative(capacity); 82ArgumentOutOfRangeException.ThrowIfLessThan(value, _size); 127ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _size); 148ArgumentOutOfRangeException.ThrowIfNegative(index); 149ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 169ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 175ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 382ArgumentOutOfRangeException.ThrowIfNegative(index); 383ArgumentOutOfRangeException.ThrowIfNegative(count);
System.Linq.Parallel (8)
System\Linq\ParallelEnumerable.cs (8)
290/// <exception cref="System.ArgumentOutOfRangeException"> 297ArgumentOutOfRangeException.ThrowIfNegativeOrZero(degreeOfParallelism); 298ArgumentOutOfRangeException.ThrowIfGreaterThan(degreeOfParallelism, Scheduling.MAX_SUPPORTED_DOP); 412/// <exception cref="System.ArgumentOutOfRangeException"> 434/// <exception cref="System.ArgumentOutOfRangeException"> 439ArgumentOutOfRangeException.ThrowIfNegative(count); 5897/// <exception cref="System.ArgumentOutOfRangeException"> 5910ArgumentOutOfRangeException.ThrowIfNegative(index);
System.Linq.Queryable (2)
System\Linq\Queryable.cs (2)
772/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is below 1.</exception> 1390/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is outside the bounds of the <paramref name="source" /> sequence.</exception>
System.Memory (7)
System\Buffers\BuffersExtensions.cs (1)
112/// <exception cref="System.ArgumentOutOfRangeException">
System\Buffers\ReadOnlySequence.cs (1)
531/// <exception cref="System.ArgumentOutOfRangeException">The position is out of range.</exception>
System\Buffers\SequenceReader.cs (1)
215/// <exception cref="ArgumentOutOfRangeException">
System\ThrowHelper.cs (4)
35private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(ExceptionArgument argument) { return new ArgumentOutOfRangeException(argument.ToString()); } 50private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException_PositionOutOfRange() { return new ArgumentOutOfRangeException("position"); } 55private static ArgumentOutOfRangeException CreateArgumentOutOfRangeException_OffsetOutOfRange() { return new ArgumentOutOfRangeException(nameof(ExceptionArgument.offset)); } 99private static ArgumentOutOfRangeException CreateStartOrEndArgumentValidationException(long start)
System.Net.Http (40)
System\Net\Http\ByteArrayContent.cs (4)
29ArgumentOutOfRangeException.ThrowIfNegative(offset); 30ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, content.Length); 32ArgumentOutOfRangeException.ThrowIfNegative(count); 33ArgumentOutOfRangeException.ThrowIfGreaterThan(count, content.Length - offset);
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
110ArgumentOutOfRangeException.ThrowIfNegative(value.GetValueOrDefault());
System\Net\Http\Headers\ContentRangeHeaderValue.cs (9)
41ArgumentOutOfRangeException.ThrowIfNegative(length); 42ArgumentOutOfRangeException.ThrowIfNegative(to); 43ArgumentOutOfRangeException.ThrowIfGreaterThan(to, length); 44ArgumentOutOfRangeException.ThrowIfNegative(from); 45ArgumentOutOfRangeException.ThrowIfGreaterThan(from, to); 57ArgumentOutOfRangeException.ThrowIfNegative(length); 68ArgumentOutOfRangeException.ThrowIfNegative(to); 69ArgumentOutOfRangeException.ThrowIfNegative(from); 70ArgumentOutOfRangeException.ThrowIfGreaterThan(from, to);
System\Net\Http\Headers\HeaderUtilities.cs (2)
43ArgumentOutOfRangeException.ThrowIfNegative(d); 44ArgumentOutOfRangeException.ThrowIfGreaterThan(d, 1);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (2)
86ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 87ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length);
System\Net\Http\Headers\RangeItemHeaderValue.cs (3)
29ArgumentOutOfRangeException.ThrowIfNegative(from.GetValueOrDefault(), nameof(from)); 33ArgumentOutOfRangeException.ThrowIfNegative(to.GetValueOrDefault(), nameof(to)); 37ArgumentOutOfRangeException.ThrowIfGreaterThan(from.GetValueOrDefault(), to.GetValueOrDefault(), nameof(from));
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
31ArgumentOutOfRangeException.ThrowIfGreaterThan(delta.TotalSeconds, int.MaxValue);
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (2)
33ArgumentOutOfRangeException.ThrowIfNegative(quality); 34ArgumentOutOfRangeException.ThrowIfGreaterThan(quality, 1.0);
System\Net\Http\Headers\WarningHeaderValue.cs (2)
279ArgumentOutOfRangeException.ThrowIfNegative(code); 280ArgumentOutOfRangeException.ThrowIfGreaterThan(code, 999);
System\Net\Http\HttpClient.cs (3)
107ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, TimeSpan.Zero); 108ArgumentOutOfRangeException.ThrowIfGreaterThan(value, s_maxTimeout); 120ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Net\Http\HttpClientHandler.cs (1)
231ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\Http\HttpResponseMessage.cs (4)
70ArgumentOutOfRangeException.ThrowIfNegative((int)value, nameof(value)); 71ArgumentOutOfRangeException.ThrowIfGreaterThan((int)value, 999, nameof(value)); 154ArgumentOutOfRangeException.ThrowIfNegative((int)statusCode, nameof(statusCode)); 155ArgumentOutOfRangeException.ThrowIfGreaterThan((int)statusCode, 999, nameof(statusCode));
System\Net\Http\MultipartContent.cs (1)
570ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (4)
138ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 150ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 162ArgumentOutOfRangeException.ThrowIfNegative(value); 190ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Net\Http\StreamContent.cs (1)
31ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
System.Net.HttpListener (17)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
141ArgumentOutOfRangeException.ThrowIfNegative(offset); 142ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 144ArgumentOutOfRangeException.ThrowIfNegative(count); 145ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System\Net\HttpListenerPrefixCollection.cs (2)
46ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, array.Length - Count); 62ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, array.Length - Count);
System\Net\HttpListenerRequestUriBuilder.cs (1)
265catch (ArgumentOutOfRangeException)
System\Net\HttpListenerResponse.cs (1)
95ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\Managed\HttpListenerTimeoutManager.Managed.cs (4)
67ArgumentOutOfRangeException.ThrowIfNegative(value); 68ArgumentOutOfRangeException.ThrowIfGreaterThan(value, uint.MaxValue); 87ArgumentOutOfRangeException.ThrowIfNegative(timeoutValue, nameof(value)); 88ArgumentOutOfRangeException.ThrowIfGreaterThan(timeoutValue, ushort.MaxValue, nameof(value));
System\Net\WebSockets\HttpWebSocket.cs (5)
86ArgumentOutOfRangeException.ThrowIfLessThan(receiveBufferSize, MinReceiveBufferSize); 87ArgumentOutOfRangeException.ThrowIfLessThan(sendBufferSize, MinSendBufferSize); 89ArgumentOutOfRangeException.ThrowIfGreaterThan(receiveBufferSize, MaxBufferSize); 90ArgumentOutOfRangeException.ThrowIfGreaterThan(sendBufferSize, MaxBufferSize); 92ArgumentOutOfRangeException.ThrowIfLessThan(keepAliveInterval, Timeout.InfiniteTimeSpan);
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (3)
84ArgumentOutOfRangeException.ThrowIfNegative(port); 192ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 256ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\Mime\QuotedPrintableStream.cs (1)
71ArgumentOutOfRangeException.ThrowIfNegative(lineLength);
System.Net.Ping (13)
System\Net\NetworkInformation\Ping.cs (11)
55ArgumentOutOfRangeException.ThrowIfNegative(timeout); 208/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than zero.</exception> 252/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than zero.</exception> 282/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than zero.</exception> 312/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than zero.</exception> 346/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than zero.</exception> 391/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than zero.</exception> 442/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> represents a time less than zero milliseconds or greater than <see cref="int.MaxValue"/> milliseconds.</exception> 474/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> represents a time less than zero milliseconds or greater than <see cref="int.MaxValue"/> milliseconds.</exception> 659ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 660ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout));
System\Net\NetworkInformation\PingOptions.cs (2)
18ArgumentOutOfRangeException.ThrowIfNegativeOrZero(ttl); 32ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System.Net.Primitives (20)
src\libraries\Common\src\System\Net\SocketAddress.cs (3)
42ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _buffer.Length); 43ArgumentOutOfRangeException.ThrowIfLessThan(value, 0); 86ArgumentOutOfRangeException.ThrowIfLessThan(size, MinSize);
System\Net\Cookie.cs (1)
691ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\CookieCollection.cs (2)
39ArgumentOutOfRangeException.ThrowIfNegative(index); 40ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, m_list.Count);
System\Net\CookieContainer.cs (5)
116ArgumentOutOfRangeException.ThrowIfNegativeOrZero(capacity); 127ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxCookieSize); 180ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 196ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 199ArgumentOutOfRangeException.ThrowIfGreaterThan(value, m_maxCookies);
System\Net\CredentialCache.cs (2)
53ArgumentOutOfRangeException.ThrowIfNegative(port); 149ArgumentOutOfRangeException.ThrowIfNegative(port);
System\Net\DnsEndPoint.cs (2)
21ArgumentOutOfRangeException.ThrowIfLessThan(port, IPEndPoint.MinPort); 22ArgumentOutOfRangeException.ThrowIfGreaterThan(port, IPEndPoint.MaxPort);
System\Net\IPAddress.cs (4)
113ArgumentOutOfRangeException.ThrowIfGreaterThan((ulong)newAddress, 0x00000000FFFFFFFF, nameof(newAddress)); 137ArgumentOutOfRangeException.ThrowIfGreaterThan((ulong)scopeid, 0x00000000FFFFFFFF, nameof(scopeid)); 393ArgumentOutOfRangeException.ThrowIfNegative(value); 394ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0x00000000FFFFFFFF);
System\Net\IPNetwork.cs (1)
44/// <exception cref="ArgumentOutOfRangeException">The specified <paramref name="prefixLength"/> is smaller than `0` or longer than maximum length of <paramref name="prefixLength"/>'s <see cref="AddressFamily"/>.</exception>
System.Net.Requests (20)
System\Net\FileWebRequest.cs (1)
65ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\FtpControlStream.cs (1)
919catch (ArgumentOutOfRangeException)
System\Net\FtpWebRequest.cs (1)
419ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\HttpWebRequest.cs (5)
255ArgumentOutOfRangeException.ThrowIfLessThan(value, System.Threading.Timeout.Infinite); 268ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 336ArgumentOutOfRangeException.ThrowIfNegative(value); 688ArgumentOutOfRangeException.ThrowIfLessThan(value, 0); 701ArgumentOutOfRangeException.ThrowIfLessThan(value, -1);
System\Net\ServicePoint\ServicePoint.cs (6)
33ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 45ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 57ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 77ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 98ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveTime); 99ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveInterval);
System\Net\ServicePoint\ServicePointManager.cs (5)
56ArgumentOutOfRangeException.ThrowIfNegative(value); 66ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 76ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 216ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveTime); 217ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveInterval);
System\Net\TimerThread.cs (1)
115ArgumentOutOfRangeException.ThrowIfNegative(durationMilliseconds);
System.Net.Sockets (47)
System\Net\Sockets\MulticastOption.cs (8)
28ArgumentOutOfRangeException.ThrowIfNegative(interfaceIndex); 29ArgumentOutOfRangeException.ThrowIfGreaterThan(interfaceIndex, 0x00FFFFFF); 72ArgumentOutOfRangeException.ThrowIfNegative(value); 73ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0x00FFFFFF); 93ArgumentOutOfRangeException.ThrowIfNegative(ifindex); 94ArgumentOutOfRangeException.ThrowIfGreaterThan(ifindex, 0x00000000FFFFFFFF); 127ArgumentOutOfRangeException.ThrowIfNegative(value); 128ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0x00000000FFFFFFFF);
System\Net\Sockets\NetworkStream.cs (5)
335/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than -1.</exception> 344ArgumentOutOfRangeException.ThrowIfLessThan(timeout, -1); 351/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than -1 milliseconds or greater than <see cref="int.MaxValue"/> milliseconds.</exception> 364ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 365ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout));
System\Net\Sockets\SendPacketsElement.cs (6)
33ArgumentOutOfRangeException.ThrowIfNegative(offset); 34ArgumentOutOfRangeException.ThrowIfNegative(count); 57ArgumentOutOfRangeException.ThrowIfNegative(offset); 58ArgumentOutOfRangeException.ThrowIfNegative(count); 76ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)buffer.Length, nameof(offset)); 77ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)count, (uint)(buffer.Length - offset), nameof(count));
System\Net\Sockets\Socket.cs (14)
512ArgumentOutOfRangeException.ThrowIfNegative(value); 527ArgumentOutOfRangeException.ThrowIfNegative(value); 541ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 560ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 616ArgumentOutOfRangeException.ThrowIfNegative(value); 617ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 255); 950ArgumentOutOfRangeException.ThrowIfLessThan(timeout, -1); 2254/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> was negative or greater than TimeSpan.FromMicroseconds(int.MaxValue).</exception> 2266/// <exception cref="ArgumentOutOfRangeException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter contains too many sockets.</exception> 2306/// <exception cref="ArgumentOutOfRangeException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter contains too many sockets.</exception> 2307/// <exception cref="ArgumentOutOfRangeException">The <paramref name="timeout"/> was negative or greater than TimeSpan.FromMicroseconds(int.MaxValue).</exception> 2320ArgumentOutOfRangeException.ThrowIfLessThan(timeout, TimeSpan.Zero); 2322ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMicroseconds, int.MaxValue, nameof(timeout)); 2599ArgumentOutOfRangeException.ThrowIfNegative(receiveSize);
System\Net\Sockets\Socket.Tasks.cs (2)
816ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)buffer.Length, nameof(offset)); 817ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)size, (uint)(buffer.Length - offset), nameof(size));
System\Net\Sockets\SocketAsyncEventArgs.cs (4)
312ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)_buffer.Length, nameof(offset)); 313ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)count, (long)(_buffer.Length - offset), nameof(count)); 368ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)buffer.Length, nameof(offset)); 369ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)count, (long)(buffer.Length - offset), nameof(count));
System\Net\Sockets\SocketPal.Unix.cs (2)
1844ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrOffset, arrLength, nameof(socketList)); 1879ArgumentOutOfRangeException.ThrowIfNegative(arrEndOffset);
System\Net\Sockets\TCPListener.cs (1)
137ArgumentOutOfRangeException.ThrowIfNegative(backlog);
System\Net\Sockets\UDPClient.cs (4)
315ArgumentOutOfRangeException.ThrowIfNegative(bytes); 316ArgumentOutOfRangeException.ThrowIfGreaterThan(bytes, datagram.Length); 434ArgumentOutOfRangeException.ThrowIfNegative(ifindex); 503ArgumentOutOfRangeException.ThrowIfNegative(ifindex);
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
25/// <exception cref="ArgumentOutOfRangeException"><paramref name="path"/> is of an invalid length for use with domain sockets on this platform. The length must be between 1 and the allowed native path length.</exception>
System.Net.WebSockets (10)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
141ArgumentOutOfRangeException.ThrowIfNegative(offset); 142ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 144ArgumentOutOfRangeException.ThrowIfNegative(count); 145ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System\Net\WebSockets\WebSocket.cs (5)
115ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 116ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sendBufferSize); 122ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 207ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 208ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sendBufferSize);
System\Net\WebSockets\WebSocketReceiveResult.cs (1)
21ArgumentOutOfRangeException.ThrowIfNegative(count);
System.Net.WebSockets.Client (9)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
141ArgumentOutOfRangeException.ThrowIfNegative(offset); 142ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 144ArgumentOutOfRangeException.ThrowIfNegative(count); 145ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System\Net\WebSockets\ClientWebSocketOptions.cs (5)
211ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 212ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sendBufferSize); 223ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 224ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sendBufferSize); 227ArgumentOutOfRangeException.ThrowIfZero(buffer.Count, nameof(buffer));
System.Numerics.Tensors (10)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
60/// <exception cref="ArgumentOutOfRangeException"> 78/// <exception cref="ArgumentOutOfRangeException"> 272/// <exception cref="ArgumentOutOfRangeException">
System\Numerics\Tensors\netcore\Tensor.cs (1)
317/// <exception cref="ArgumentOutOfRangeException"></exception>
System\Numerics\Tensors\netcore\Tensor.Factory.cs (2)
48/// <exception cref="ArgumentOutOfRangeException"></exception> 66/// <exception cref="ArgumentOutOfRangeException"></exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
90/// <exception cref="ArgumentOutOfRangeException"><paramref name="digits"/> is invalid.</exception>
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
63/// <exception cref="ArgumentOutOfRangeException"> 81/// <exception cref="ArgumentOutOfRangeException"> 276/// <exception cref="ArgumentOutOfRangeException">
System.ObjectModel (6)
System\Collections\CollectionHelpers.cs (2)
24ArgumentOutOfRangeException.ThrowIfNegative(index); 25ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length);
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (4)
118ArgumentOutOfRangeException.ThrowIfLessThan(startingIndex, -1); 216ArgumentOutOfRangeException.ThrowIfNegative(index); 237ArgumentOutOfRangeException.ThrowIfNegative(index); 331ArgumentOutOfRangeException.ThrowIfNotEqual(index, 0);
System.Private.CoreLib (972)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
783ArgumentOutOfRangeException.ThrowIfNegative(groupSizeCount | bufferSize, string.Empty); // If we overflow
src\libraries\Common\src\System\Threading\ITimer.cs (1)
23/// <exception cref="ArgumentOutOfRangeException">The <paramref name="dueTime"/> or <paramref name="period"/> parameter, in milliseconds, is less than -1 or greater than 4294967294.</exception>
src\libraries\Common\src\System\TimeProvider.cs (1)
139/// <exception cref="ArgumentOutOfRangeException">The number of milliseconds in the value of <paramref name="dueTime"/> or <paramref name="period"/> is negative and not equal to <see cref="Timeout.Infinite"/>, or is greater than <see cref="int.MaxValue"/>.</exception>
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (9)
79ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 118ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 119ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 187ArgumentOutOfRangeException.ThrowIfNegativeOrZero(assemblyByteLength); 188ArgumentOutOfRangeException.ThrowIfGreaterThan(assemblyByteLength, int.MaxValue); 189ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 190ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 257ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 258ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (9)
126/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is zero.</summary> 136/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative.</summary> 146/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is negative or zero.</summary> 156/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is equal to <paramref name="other"/>.</summary> 166/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is not equal to <paramref name="other"/>.</summary> 176/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than <paramref name="other"/>.</summary> 187/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is greater than or equal <paramref name="other"/>.</summary> 198/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary> 209/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary>
src\libraries\System.Private.CoreLib\src\System\Array.cs (10)
78ArgumentOutOfRangeException.ThrowIfNegative(length); 92ArgumentOutOfRangeException.ThrowIfNegative(length1); 93ArgumentOutOfRangeException.ThrowIfNegative(length2); 108ArgumentOutOfRangeException.ThrowIfNegative(length1); 109ArgumentOutOfRangeException.ThrowIfNegative(length2); 110ArgumentOutOfRangeException.ThrowIfNegative(length3); 200/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is negative.</exception> 210ArgumentOutOfRangeException.ThrowIfNegative(length); 235/// <exception cref="ArgumentOutOfRangeException">Any value in <paramref name="lengths"/> is less than zero.</exception> 292/// <exception cref="ArgumentOutOfRangeException">Any value in <paramref name="lengths"/> is less than zero.</exception>
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (30)
394/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 402/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than the length of a <see cref="char"/>.</exception> 419/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 437/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 2.</exception> 457/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 475/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 4.</exception> 495/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 513/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 8.</exception> 533/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 551/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 16.</exception> 568/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 577/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 2.</exception> 598/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 607/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 4.</exception> 628/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 637/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 8.</exception> 658/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 677/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 16.</exception> 695/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 703/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 2.</exception> 723/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 731/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 4.</exception> 751/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 759/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 8.</exception> 779/// <exception cref="ArgumentOutOfRangeException"> 794ArgumentOutOfRangeException.ThrowIfNegative(length); 804ArgumentOutOfRangeException.ThrowIfGreaterThan(length, int.MaxValue / 3); 852/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 867/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 885/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 1.</exception>
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (3)
41ArgumentOutOfRangeException.ThrowIfNegative(srcOffset); 42ArgumentOutOfRangeException.ThrowIfNegative(dstOffset); 43ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadBigEndian.cs (13)
17/// <exception cref="ArgumentOutOfRangeException"> 34/// <exception cref="ArgumentOutOfRangeException"> 51/// <exception cref="ArgumentOutOfRangeException"> 68/// <exception cref="ArgumentOutOfRangeException"> 85/// <exception cref="ArgumentOutOfRangeException"> 102/// <exception cref="ArgumentOutOfRangeException"> 119/// <exception cref="ArgumentOutOfRangeException"> 136/// <exception cref="ArgumentOutOfRangeException"> 153/// <exception cref="ArgumentOutOfRangeException"> 171/// <exception cref="ArgumentOutOfRangeException"> 189/// <exception cref="ArgumentOutOfRangeException"> 207/// <exception cref="ArgumentOutOfRangeException"> 225/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadLittleEndian.cs (13)
17/// <exception cref="ArgumentOutOfRangeException"> 34/// <exception cref="ArgumentOutOfRangeException"> 51/// <exception cref="ArgumentOutOfRangeException"> 68/// <exception cref="ArgumentOutOfRangeException"> 85/// <exception cref="ArgumentOutOfRangeException"> 102/// <exception cref="ArgumentOutOfRangeException"> 119/// <exception cref="ArgumentOutOfRangeException"> 136/// <exception cref="ArgumentOutOfRangeException"> 153/// <exception cref="ArgumentOutOfRangeException"> 171/// <exception cref="ArgumentOutOfRangeException"> 189/// <exception cref="ArgumentOutOfRangeException"> 207/// <exception cref="ArgumentOutOfRangeException"> 225/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteBigEndian.cs (13)
17/// <exception cref="ArgumentOutOfRangeException"> 40/// <exception cref="ArgumentOutOfRangeException"> 63/// <exception cref="ArgumentOutOfRangeException"> 86/// <exception cref="ArgumentOutOfRangeException"> 109/// <exception cref="ArgumentOutOfRangeException"> 132/// <exception cref="ArgumentOutOfRangeException"> 155/// <exception cref="ArgumentOutOfRangeException"> 178/// <exception cref="ArgumentOutOfRangeException"> 201/// <exception cref="ArgumentOutOfRangeException"> 225/// <exception cref="ArgumentOutOfRangeException"> 249/// <exception cref="ArgumentOutOfRangeException"> 273/// <exception cref="ArgumentOutOfRangeException"> 297/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.WriteLittleEndian.cs (13)
17/// <exception cref="ArgumentOutOfRangeException"> 40/// <exception cref="ArgumentOutOfRangeException"> 63/// <exception cref="ArgumentOutOfRangeException"> 86/// <exception cref="ArgumentOutOfRangeException"> 109/// <exception cref="ArgumentOutOfRangeException"> 132/// <exception cref="ArgumentOutOfRangeException"> 155/// <exception cref="ArgumentOutOfRangeException"> 178/// <exception cref="ArgumentOutOfRangeException"> 201/// <exception cref="ArgumentOutOfRangeException"> 225/// <exception cref="ArgumentOutOfRangeException"> 249/// <exception cref="ArgumentOutOfRangeException"> 273/// <exception cref="ArgumentOutOfRangeException"> 297/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (3)
24ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxArrayLength); 25ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxArraysPerBucket); 58ArgumentOutOfRangeException.ThrowIfNegative(minimumLength);
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
107ArgumentOutOfRangeException.ThrowIfNegative(minimumLength);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Decoder.cs (1)
336/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Encoder.cs (1)
165/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs (2)
44catch (ArgumentOutOfRangeException) 90catch (ArgumentOutOfRangeException)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (51)
192ArgumentOutOfRangeException.ThrowIfNegative(index); 193ArgumentOutOfRangeException.ThrowIfNegative(count); 327ArgumentOutOfRangeException.ThrowIfNegative(index); 328ArgumentOutOfRangeException.ThrowIfNegative(count); 470ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 471ArgumentOutOfRangeException.ThrowIfNegative(count); 531ArgumentOutOfRangeException.ThrowIfNegative(index); 532ArgumentOutOfRangeException.ThrowIfNegative(count); 553ArgumentOutOfRangeException.ThrowIfNegative(count); 577ArgumentOutOfRangeException.ThrowIfNegative(index); 578ArgumentOutOfRangeException.ThrowIfNegative(count); 605ArgumentOutOfRangeException.ThrowIfNegative(index); 606ArgumentOutOfRangeException.ThrowIfNegative(count); 636ArgumentOutOfRangeException.ThrowIfNegative(index); 637ArgumentOutOfRangeException.ThrowIfNegative(count); 762ArgumentOutOfRangeException.ThrowIfNegative(index); 763ArgumentOutOfRangeException.ThrowIfNegative(count); 822ArgumentOutOfRangeException.ThrowIfNegative(index); 823ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 824ArgumentOutOfRangeException.ThrowIfNegative(count); 844ArgumentOutOfRangeException.ThrowIfNegative(index); 845ArgumentOutOfRangeException.ThrowIfNegative(count); 968ArgumentOutOfRangeException.ThrowIfNegative(index); 969ArgumentOutOfRangeException.ThrowIfNegative(count); 986ArgumentOutOfRangeException.ThrowIfNegative(index); 987ArgumentOutOfRangeException.ThrowIfNegative(count); 1025ArgumentOutOfRangeException.ThrowIfNegative(index); 1026ArgumentOutOfRangeException.ThrowIfNegative(count); 1034ArgumentOutOfRangeException.ThrowIfNegative(index); 1035ArgumentOutOfRangeException.ThrowIfNegative(count); 1810ArgumentOutOfRangeException.ThrowIfNegative(index); 1811ArgumentOutOfRangeException.ThrowIfNegative(count); 2064ArgumentOutOfRangeException.ThrowIfNegative(index); 2065ArgumentOutOfRangeException.ThrowIfNegative(count); 2216ArgumentOutOfRangeException.ThrowIfNegative(index); 2217ArgumentOutOfRangeException.ThrowIfNegative(count); 2283ArgumentOutOfRangeException.ThrowIfNegative(index); 2297ArgumentOutOfRangeException.ThrowIfNegative(index); 2298ArgumentOutOfRangeException.ThrowIfNegative(count); 2330ArgumentOutOfRangeException.ThrowIfNegative(index); 2331ArgumentOutOfRangeException.ThrowIfNegative(count); 2341ArgumentOutOfRangeException.ThrowIfNegative(index); 2342ArgumentOutOfRangeException.ThrowIfNegative(count); 2363ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 2433ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 2454ArgumentOutOfRangeException.ThrowIfNegative(index); 2455ArgumentOutOfRangeException.ThrowIfNegative(count); 2472ArgumentOutOfRangeException.ThrowIfNegative(index); 2473ArgumentOutOfRangeException.ThrowIfNegative(count); 2495ArgumentOutOfRangeException.ThrowIfNegative(index); 2496ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (2)
121/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 431/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollection.cs (1)
32/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
111/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than <paramref name="list"/>'s <see cref="List{T}.Count"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1158/// <exception cref="ArgumentOutOfRangeException">Passed capacity is lower than entries count.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (4)
866ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 867ArgumentOutOfRangeException.ThrowIfNegative(count); 1020/// <exception cref="ArgumentOutOfRangeException">Passed capacity is lower than entries count.</exception> 1023ArgumentOutOfRangeException.ThrowIfLessThan(capacity, Count);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
702/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (5)
41ArgumentOutOfRangeException.ThrowIfNegative(capacity); 366/// <exception cref="ArgumentOutOfRangeException">Passed capacity is lower than entries count.</exception> 369ArgumentOutOfRangeException.ThrowIfNegative(capacity); 370ArgumentOutOfRangeException.ThrowIfLessThan(capacity, _size); 385ArgumentOutOfRangeException.ThrowIfNegative(capacity);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (4)
263ArgumentOutOfRangeException.ThrowIfNegative(capacity); 578ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1195ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1230ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
155ArgumentOutOfRangeException.ThrowIfNegative(index); 309ArgumentOutOfRangeException.ThrowIfNegative(index);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (2)
24ArgumentOutOfRangeException.ThrowIfNegative(index); 25ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (29)
2336ArgumentOutOfRangeException.ThrowIfNegative(length); 2337ArgumentOutOfRangeException.ThrowIfNegative(offset); 2338ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, inArray.Length - length); 2390ArgumentOutOfRangeException.ThrowIfNegative(length); 2391ArgumentOutOfRangeException.ThrowIfNegative(offsetIn); 2392ArgumentOutOfRangeException.ThrowIfNegative(offsetOut); 2398ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetIn, inArrayLength - length); 2410ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetOut, outArrayLength - charLengthRequired); 2797ArgumentOutOfRangeException.ThrowIfNegative(length); 2798ArgumentOutOfRangeException.ThrowIfNegative(offset); 2799ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, inArray.Length - length); 3034/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3051/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> or <paramref name="length"/> is negative.</exception> 3052/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> plus <paramref name="length"/> is greater than the length of <paramref name="inArray"/>.</exception> 3053/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3058ArgumentOutOfRangeException.ThrowIfNegative(length); 3059ArgumentOutOfRangeException.ThrowIfNegative(offset); 3060ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, inArray.Length - length); 3070/// <exception cref="ArgumentOutOfRangeException"><paramref name="bytes"/> is too large to be encoded.</exception> 3075ArgumentOutOfRangeException.ThrowIfGreaterThan(bytes.Length, int.MaxValue / 2, nameof(bytes)); 3111/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3128/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> or <paramref name="length"/> is negative.</exception> 3129/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> plus <paramref name="length"/> is greater than the length of <paramref name="inArray"/>.</exception> 3130/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3135ArgumentOutOfRangeException.ThrowIfNegative(length); 3136ArgumentOutOfRangeException.ThrowIfNegative(offset); 3137ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, inArray.Length - length); 3147/// <exception cref="ArgumentOutOfRangeException"><paramref name="bytes"/> is too large to be encoded.</exception> 3152ArgumentOutOfRangeException.ThrowIfGreaterThan(bytes.Length, int.MaxValue / 2, nameof(bytes));
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (1)
118/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (9)
265/// <exception cref="ArgumentOutOfRangeException"> 388/// <exception cref="ArgumentOutOfRangeException"> 443/// <exception cref="ArgumentOutOfRangeException"> 499/// <exception cref="ArgumentOutOfRangeException"> 562/// <exception cref="ArgumentOutOfRangeException"> 624/// <exception cref="ArgumentOutOfRangeException"> 693/// <exception cref="ArgumentOutOfRangeException"> 757/// <exception cref="ArgumentOutOfRangeException"> 950/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (3)
220/// <exception cref="ArgumentOutOfRangeException"> 283/// <exception cref="ArgumentOutOfRangeException"> 511/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
311ArgumentOutOfRangeException.ThrowIfGreaterThan(scale, 28);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (4)
55ArgumentOutOfRangeException.ThrowIfNegative(skipFrames); 67ArgumentOutOfRangeException.ThrowIfNegative(skipFrames); 100ArgumentOutOfRangeException.ThrowIfNegative(skipFrames); 113ArgumentOutOfRangeException.ThrowIfNegative(skipFrames);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (2)
59ArgumentOutOfRangeException.ThrowIfNegative(id); 74ArgumentOutOfRangeException.ThrowIfNegative(task);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (1)
49ArgumentOutOfRangeException.ThrowIfGreaterThan(loggingLevel, 5u); // 5 == Verbose, the highest value in EventPipeLoggingLevel.
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
677ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (4)
384ArgumentOutOfRangeException.ThrowIfNegative(length1); 385ArgumentOutOfRangeException.ThrowIfNegative(length2); 387ArgumentOutOfRangeException.ThrowIfNegative(offset1); 388ArgumentOutOfRangeException.ThrowIfNegative(offset2);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
206ArgumentOutOfRangeException.ThrowIfNegative(culture); 1020ArgumentOutOfRangeException.ThrowIfNegativeOrZero(culture);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
844catch (ArgumentOutOfRangeException) 1507catch (ArgumentOutOfRangeException) 4669catch (ArgumentOutOfRangeException)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
678ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (2)
438ArgumentOutOfRangeException.ThrowIfNegative(year); 439ArgumentOutOfRangeException.ThrowIfGreaterThan(year, MaxYear);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (1)
519ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (3)
392ArgumentOutOfRangeException.ThrowIfNegative(index, nameof(gregorianYear)); 393ArgumentOutOfRangeException.ThrowIfGreaterThan(index, TableSize, nameof(gregorianYear)); 872ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
449ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (4)
70ArgumentOutOfRangeException.ThrowIfNegative(index); 71ArgumentOutOfRangeException.ThrowIfNegative(count); 117ArgumentOutOfRangeException.ThrowIfNegative(index); 118ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (2)
195ArgumentOutOfRangeException.ThrowIfNegativeOrZero(year); 196ArgumentOutOfRangeException.ThrowIfGreaterThan(year, _helper.MaxYear);
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
342ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
178ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
420ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (2)
123/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is negative or beyond the end of <paramref name="str"/>.</exception> 154/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is negative or beyond the end of <paramref name="str"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (2)
182ArgumentOutOfRangeException.ThrowIfNegativeOrZero(year); 183ArgumentOutOfRangeException.ThrowIfGreaterThan(year, _helper.MaxYear);
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
159ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
628ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (7)
298ArgumentOutOfRangeException.ThrowIfNegative(index); 299ArgumentOutOfRangeException.ThrowIfNegative(count); 395ArgumentOutOfRangeException.ThrowIfNegative(count); 417ArgumentOutOfRangeException.ThrowIfNegative(index); 418ArgumentOutOfRangeException.ThrowIfNegative(count); 436ArgumentOutOfRangeException.ThrowIfNegative(count); 482ArgumentOutOfRangeException.ThrowIfNegative(numBytes);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (2)
233ArgumentOutOfRangeException.ThrowIfNegative(index); 234ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
24/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
91ArgumentOutOfRangeException.ThrowIfNegative(value);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (6)
197/// <exception cref="ArgumentOutOfRangeException"> 229/// <exception cref="ArgumentOutOfRangeException"> 310/// <exception cref="ArgumentOutOfRangeException"> 341/// <exception cref="ArgumentOutOfRangeException"> 422/// <exception cref="ArgumentOutOfRangeException"> 453/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (2)
104ArgumentOutOfRangeException.ThrowIfNegative(value); 119ArgumentOutOfRangeException.ThrowIfNegative(value);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (4)
46ArgumentOutOfRangeException.ThrowIfNegative(capacity); 85ArgumentOutOfRangeException.ThrowIfNegative(index); 86ArgumentOutOfRangeException.ThrowIfNegative(count); 310ArgumentOutOfRangeException.ThrowIfNegative(value);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (7)
364/// <exception cref="ArgumentOutOfRangeException"> 407/// <exception cref="ArgumentOutOfRangeException"> 839/// <exception cref="ArgumentOutOfRangeException"> 876/// <exception cref="ArgumentOutOfRangeException"> 950/// <exception cref="ArgumentOutOfRangeException"> 991/// <exception cref="ArgumentOutOfRangeException"><paramref name="bufferSize"/> was not a positive value.</exception> 998ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (12)
155ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 232ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 352ArgumentOutOfRangeException.ThrowIfNegative(index); 353ArgumentOutOfRangeException.ThrowIfNegative(count); 431ArgumentOutOfRangeException.ThrowIfNegative(index); 432ArgumentOutOfRangeException.ThrowIfNegative(count); 865/// <exception cref="ArgumentOutOfRangeException">The number of characters in the next line is larger than <see cref="int.MaxValue"/>.</exception> 997/// <exception cref="ArgumentOutOfRangeException">The number of characters is larger than <see cref="int.MaxValue"/>.</exception> 1053ArgumentOutOfRangeException.ThrowIfNegative(index); 1054ArgumentOutOfRangeException.ThrowIfNegative(count); 1264ArgumentOutOfRangeException.ThrowIfNegative(index); 1265ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (8)
111ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 189ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 375ArgumentOutOfRangeException.ThrowIfNegative(index); 376ArgumentOutOfRangeException.ThrowIfNegative(count); 735ArgumentOutOfRangeException.ThrowIfNegative(index); 736ArgumentOutOfRangeException.ThrowIfNegative(count); 887ArgumentOutOfRangeException.ThrowIfNegative(index); 888ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (8)
90ArgumentOutOfRangeException.ThrowIfNegative(index); 91ArgumentOutOfRangeException.ThrowIfNegative(count); 225/// <exception cref="ArgumentOutOfRangeException">The number of characters in the next line is larger than <see cref="int.MaxValue"/>.</exception> 263/// <exception cref="ArgumentOutOfRangeException">The number of characters is larger than <see cref="int.MaxValue"/>.</exception> 291ArgumentOutOfRangeException.ThrowIfNegative(index); 292ArgumentOutOfRangeException.ThrowIfNegative(count); 309ArgumentOutOfRangeException.ThrowIfNegative(index); 310ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (2)
92ArgumentOutOfRangeException.ThrowIfNegative(index); 93ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (12)
74ArgumentOutOfRangeException.ThrowIfNegative(index); 75ArgumentOutOfRangeException.ThrowIfNegative(count); 207/// <exception cref="ArgumentOutOfRangeException">The number of characters in the next line is larger than <see cref="int.MaxValue"/>.</exception> 233/// <exception cref="ArgumentOutOfRangeException">The number of characters is larger than <see cref="int.MaxValue"/>.</exception> 264ArgumentOutOfRangeException.ThrowIfNegative(index); 265ArgumentOutOfRangeException.ThrowIfNegative(count); 294ArgumentOutOfRangeException.ThrowIfNegative(index); 295ArgumentOutOfRangeException.ThrowIfNegative(count); 394ArgumentOutOfRangeException.ThrowIfNegative(index); 395ArgumentOutOfRangeException.ThrowIfNegative(count); 407ArgumentOutOfRangeException.ThrowIfNegative(index); 408ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
148ArgumentOutOfRangeException.ThrowIfNegative(index); 149ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (12)
44ArgumentOutOfRangeException.ThrowIfNegative(offset); 45ArgumentOutOfRangeException.ThrowIfNegative(capacity); 283ArgumentOutOfRangeException.ThrowIfNegative(position); 317ArgumentOutOfRangeException.ThrowIfNegative(offset); 318ArgumentOutOfRangeException.ThrowIfNegative(count); 331ArgumentOutOfRangeException.ThrowIfNegative(position); 512ArgumentOutOfRangeException.ThrowIfNegative(position); 543ArgumentOutOfRangeException.ThrowIfNegative(offset); 544ArgumentOutOfRangeException.ThrowIfNegative(count); 549ArgumentOutOfRangeException.ThrowIfNegative(position); 577ArgumentOutOfRangeException.ThrowIfNegative(position); 601ArgumentOutOfRangeException.ThrowIfNegative(position);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (6)
84ArgumentOutOfRangeException.ThrowIfNegative(offset); 85ArgumentOutOfRangeException.ThrowIfNegative(length); 155ArgumentOutOfRangeException.ThrowIfNegative(length); 156ArgumentOutOfRangeException.ThrowIfNegative(capacity); 285ArgumentOutOfRangeException.ThrowIfNegative(value); 571ArgumentOutOfRangeException.ThrowIfNegative(value);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
135ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (2)
259/// <exception cref="ArgumentOutOfRangeException"><paramref name="mode"/> mode contains an invalid valuee</exception> 291/// <exception cref="ArgumentOutOfRangeException"><paramref name="mode"/> mode contains an invalid value.</exception>
src\libraries\System.Private.CoreLib\src\System\Memory.cs (5)
84/// <exception cref="ArgumentOutOfRangeException"> 119/// <exception cref="ArgumentOutOfRangeException"> 143/// <exception cref="ArgumentOutOfRangeException"> 224/// <exception cref="ArgumentOutOfRangeException"> 244/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (14)
111/// <exception cref="ArgumentOutOfRangeException"> 133/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than 0 or greater than <paramref name="text"/>.Length.</exception> 160/// <exception cref="ArgumentOutOfRangeException"><paramref name="range"/>'s start or end index is not within the bounds of the string.</exception> 161/// <exception cref="ArgumentOutOfRangeException"><paramref name="range"/>'s start index is greater than its end index.</exception> 189/// <exception cref="ArgumentOutOfRangeException"> 229/// <exception cref="ArgumentOutOfRangeException"> 272/// <exception cref="ArgumentOutOfRangeException"> 2651/// <exception cref="ArgumentOutOfRangeException"> 2677/// <exception cref="ArgumentOutOfRangeException"> 2711/// <exception cref="ArgumentOutOfRangeException"> 2750/// <exception cref="ArgumentOutOfRangeException"> 2782/// <exception cref="ArgumentOutOfRangeException"> 2820/// <exception cref="ArgumentOutOfRangeException"> 2840/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (4)
632ArgumentOutOfRangeException.ThrowIfNegative(offset); 633ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, bytes.Length); 635ArgumentOutOfRangeException.ThrowIfNegative(count); 636ArgumentOutOfRangeException.ThrowIfGreaterThan(count, bytes.Length - offset);
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (1)
76/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (7)
127/// <exception cref="ArgumentOutOfRangeException"> 353/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero. 367/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero. 381/// <exception cref="ArgumentOutOfRangeException"><paramref name="fieldOfView" /> is less than or equal to zero. 398/// <exception cref="ArgumentOutOfRangeException"><paramref name="fieldOfView" /> is less than or equal to zero. 417/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero. 433/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero.
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (22)
579ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 580ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 581ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 599ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 600ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 601ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 619ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(fieldOfView, 0.0f); 620ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(fieldOfView, float.Pi); 622ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 623ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 624ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 643ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(fieldOfView, 0.0f); 644ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(fieldOfView, float.Pi); 646ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 647ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 648ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 667ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 668ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 669ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 694ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 695ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 696ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance);
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
78/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.Extensions.cs (2)
15/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 33/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
724/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 2161/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (6)
55/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector128{T}.Count" />.</exception> 74/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector128{T}.Count" />.</exception> 91/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector{T}.Count" />.</exception> 108/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <c>sizeof(<see cref="Vector{T}" />)</c>.</exception> 126/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector{T}.Count" />.</exception> 238/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (2)
92/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 601/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is less than zero.
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.Extensions.cs (2)
15/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 33/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (2)
113/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 610/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is less than zero.
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.Extensions.cs (2)
15/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 33/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (2)
136/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 709/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is less than zero.
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.Extensions.cs (2)
15/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 33/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Random.cs (11)
72/// <exception cref="ArgumentOutOfRangeException"><paramref name="maxValue"/> is less than 0.</exception> 75ArgumentOutOfRangeException.ThrowIfNegative(maxValue); 89/// <exception cref="ArgumentOutOfRangeException"><paramref name="minValue"/> is greater than <paramref name="maxValue"/>.</exception> 117/// <exception cref="ArgumentOutOfRangeException"><paramref name="maxValue"/> is less than 0.</exception> 120ArgumentOutOfRangeException.ThrowIfNegative(maxValue); 134/// <exception cref="ArgumentOutOfRangeException"><paramref name="minValue"/> is greater than <paramref name="maxValue"/>.</exception> 247/// <exception cref="ArgumentOutOfRangeException"> 268/// <exception cref="ArgumentOutOfRangeException"> 277ArgumentOutOfRangeException.ThrowIfNegative(length); 394ArgumentOutOfRangeException.ThrowIfNegative(maxValue); 422ArgumentOutOfRangeException.ThrowIfNegative(maxValue);
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
64/// <exception cref="ArgumentOutOfRangeException"> 153/// <exception cref="ArgumentOutOfRangeException"> 173/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (4)
62/// <exception cref="ArgumentOutOfRangeException"> 99/// <exception cref="ArgumentOutOfRangeException"> 356/// <exception cref="ArgumentOutOfRangeException"> 373/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
214/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (1)
36ArgumentOutOfRangeException.ThrowIfNegative(position);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
553catch (ArgumentOutOfRangeException e) 635catch (ArgumentOutOfRangeException e)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
79/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (5)
46ArgumentOutOfRangeException.ThrowIfNegative(len); 64ArgumentOutOfRangeException.ThrowIfNegative(len); 83ArgumentOutOfRangeException.ThrowIfNegative(byteLen); 281ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 282ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (2)
382ArgumentOutOfRangeException.ThrowIfGreaterThan(Unsafe.SizeOf<T>(), sizeof(UnionTypes), nameof(T)); 574ArgumentOutOfRangeException.ThrowIfGreaterThan(Unsafe.SizeOf<T>(), sizeof(UnionTypes), nameof(T));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (1)
599/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (4)
220ArgumentOutOfRangeException.ThrowIfNegative(index); 221ArgumentOutOfRangeException.ThrowIfNegative(count); 307ArgumentOutOfRangeException.ThrowIfNegative(index); 308ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (7)
66/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 142/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 170/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Count" />.</exception> 179/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Count" />.</exception> 187/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Count" />.</exception> 267/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 541/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\SimdVectorExtensions.cs (3)
31/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 59/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 163/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (6)
675/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 829/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector128{T}.Count" />.</exception> 850/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector128{T}.Count" />.</exception> 870/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector128{T}.Count" />.</exception> 1597/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3156/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
142/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (6)
584/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 738/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector256{T}.Count" />.</exception> 759/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector256{T}.Count" />.</exception> 779/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector256{T}.Count" />.</exception> 1577/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3087/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
141/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (6)
512/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 664/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector512{T}.Count" />.</exception> 684/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector512{T}.Count" />.</exception> 703/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector512{T}.Count" />.</exception> 1624/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3099/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
141/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (6)
555/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 710/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector64{T}.Count" />.</exception> 731/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector64{T}.Count" />.</exception> 751/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector64{T}.Count" />.</exception> 1400/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3054/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
148/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
142ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sizeInMegabytes);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
29ArgumentOutOfRangeException.ThrowIfNegative(length); 30ArgumentOutOfRangeException.ThrowIfGreaterThan(length, MaxLength);
src\libraries\System.Private.CoreLib\src\System\Span.cs (4)
65/// <exception cref="ArgumentOutOfRangeException"> 104/// <exception cref="ArgumentOutOfRangeException"> 380/// <exception cref="ArgumentOutOfRangeException"> 397/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
383ArgumentOutOfRangeException.ThrowIfNegative(length); 475ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\String.cs (18)
101ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 102ArgumentOutOfRangeException.ThrowIfNegative(length); 103ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, value.Length - length); 153ArgumentOutOfRangeException.ThrowIfNegative(length); 154ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 205ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 206ArgumentOutOfRangeException.ThrowIfNegative(length); 264ArgumentOutOfRangeException.ThrowIfNegative(length); 265ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 294ArgumentOutOfRangeException.ThrowIfNegative(count); 416ArgumentOutOfRangeException.ThrowIfNegative(count); 417ArgumentOutOfRangeException.ThrowIfNegative(sourceIndex); 418ArgumentOutOfRangeException.ThrowIfGreaterThan(count, Length - sourceIndex, nameof(sourceIndex)); 419ArgumentOutOfRangeException.ThrowIfGreaterThan(destinationIndex, destination.Length - count); 420ArgumentOutOfRangeException.ThrowIfNegative(destinationIndex); 480ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)startIndex, (uint)Length, nameof(startIndex)); 481ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, Length - length); 485ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (13)
683ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)startIndex, (uint)Length, nameof(startIndex)); 763ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 764ArgumentOutOfRangeException.ThrowIfNegative(count); 765ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, value.Length - count); 1114ArgumentOutOfRangeException.ThrowIfNegative(totalWidth); 1132ArgumentOutOfRangeException.ThrowIfNegative(totalWidth); 1148ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 1149ArgumentOutOfRangeException.ThrowIfNegative(count); 1151ArgumentOutOfRangeException.ThrowIfGreaterThan(count, oldLength - startIndex); 1696ArgumentOutOfRangeException.ThrowIfNegative(count); 1758ArgumentOutOfRangeException.ThrowIfNegative(count); 2268ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 2275ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
839ArgumentOutOfRangeException.ThrowIfNegative(charCount); 857ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (9)
100ArgumentOutOfRangeException.ThrowIfNegative(count); 163ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 164ArgumentOutOfRangeException.ThrowIfNegative(charCount); 225ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 226ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 227ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 228ArgumentOutOfRangeException.ThrowIfNegative(charCount); 276ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 277ArgumentOutOfRangeException.ThrowIfNegative(charCount);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (13)
53ArgumentOutOfRangeException.ThrowIfNegative(index); 54ArgumentOutOfRangeException.ThrowIfNegative(count); 69ArgumentOutOfRangeException.ThrowIfNegative(count); 92ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 93ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 119ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 120ArgumentOutOfRangeException.ThrowIfNegative(charCount); 140ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 141ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 143ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 144ArgumentOutOfRangeException.ThrowIfNegative(charCount); 174ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 175ArgumentOutOfRangeException.ThrowIfNegative(charCount);
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (9)
98ArgumentOutOfRangeException.ThrowIfNegative(count); 161ArgumentOutOfRangeException.ThrowIfNegative(charCount); 162ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 222ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 223ArgumentOutOfRangeException.ThrowIfNegative(charCount); 225ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 226ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 275ArgumentOutOfRangeException.ThrowIfNegative(charCount); 276ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (13)
48ArgumentOutOfRangeException.ThrowIfNegative(index); 49ArgumentOutOfRangeException.ThrowIfNegative(count); 68ArgumentOutOfRangeException.ThrowIfNegative(count); 82ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 83ArgumentOutOfRangeException.ThrowIfNegative(charCount); 109ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 110ArgumentOutOfRangeException.ThrowIfNegative(charCount); 127ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 128ArgumentOutOfRangeException.ThrowIfNegative(charCount); 130ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 131ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 161ArgumentOutOfRangeException.ThrowIfNegative(charCount); 162ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (15)
132ArgumentOutOfRangeException.ThrowIfNegative(codePage); 147ArgumentOutOfRangeException.ThrowIfNegative(codePage); 553ArgumentOutOfRangeException.ThrowIfNegative(index); 554ArgumentOutOfRangeException.ThrowIfNegative(count); 555ArgumentOutOfRangeException.ThrowIfGreaterThan(index, s.Length - count); 574ArgumentOutOfRangeException.ThrowIfNegative(count); 641ArgumentOutOfRangeException.ThrowIfNegative(index); 642ArgumentOutOfRangeException.ThrowIfNegative(count); 643ArgumentOutOfRangeException.ThrowIfGreaterThan(index, s.Length - count); 699ArgumentOutOfRangeException.ThrowIfNegative(charCount); 700ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 776ArgumentOutOfRangeException.ThrowIfNegative(count); 848ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 849ArgumentOutOfRangeException.ThrowIfNegative(charCount); 908ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
154ArgumentOutOfRangeException.ThrowIfNegative(charCount);
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (4)
62/// <exception cref="ArgumentOutOfRangeException"> 79/// <exception cref="ArgumentOutOfRangeException"> 91/// <exception cref="ArgumentOutOfRangeException"> 102/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (27)
119ArgumentOutOfRangeException.ThrowIfNegative(capacity); 120ArgumentOutOfRangeException.ThrowIfNegative(length); 121ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 154ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxCapacity); 155ArgumentOutOfRangeException.ThrowIfNegative(capacity); 269ArgumentOutOfRangeException.ThrowIfNegative(value); 304ArgumentOutOfRangeException.ThrowIfNegative(capacity); 359ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 364ArgumentOutOfRangeException.ThrowIfNegative(length); 391ArgumentOutOfRangeException.ThrowIfNegative(value); 655ArgumentOutOfRangeException.ThrowIfNegative(repeatCount); 721ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 722ArgumentOutOfRangeException.ThrowIfNegative(charCount); 768ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 769ArgumentOutOfRangeException.ThrowIfNegative(count); 804ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 805ArgumentOutOfRangeException.ThrowIfNegative(count); 873ArgumentOutOfRangeException.ThrowIfNegative(destinationIndex); 885ArgumentOutOfRangeException.ThrowIfNegative(count); 936ArgumentOutOfRangeException.ThrowIfNegative(count); 977ArgumentOutOfRangeException.ThrowIfNegative(length); 978ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 1360ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 1361ArgumentOutOfRangeException.ThrowIfNegative(charCount); 1463/// <exception cref="ArgumentOutOfRangeException">The length of the expanded string would exceed <see cref="StringBuilder.MaxCapacity"/>.</exception> 1512/// <exception cref="ArgumentOutOfRangeException">The length of the expanded string would exceed <see cref="StringBuilder.MaxCapacity"/>.</exception> 2259ArgumentOutOfRangeException.ThrowIfNegative(valueCount);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (20)
89ArgumentOutOfRangeException.ThrowIfNegative(index); 90ArgumentOutOfRangeException.ThrowIfNegative(count); 129ArgumentOutOfRangeException.ThrowIfNegative(count); 146ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 147ArgumentOutOfRangeException.ThrowIfNegative(charCount); 181ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 182ArgumentOutOfRangeException.ThrowIfNegative(charCount); 212ArgumentOutOfRangeException.ThrowIfNegative(charCount); 213ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 230ArgumentOutOfRangeException.ThrowIfNegative(index); 231ArgumentOutOfRangeException.ThrowIfNegative(count); 254ArgumentOutOfRangeException.ThrowIfNegative(count); 270ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 271ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 301ArgumentOutOfRangeException.ThrowIfNegative(charCount); 302ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 319ArgumentOutOfRangeException.ThrowIfNegative(index); 320ArgumentOutOfRangeException.ThrowIfNegative(count); 1754ArgumentOutOfRangeException.ThrowIfNegative(charCount); 1773ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (20)
97ArgumentOutOfRangeException.ThrowIfNegative(index); 98ArgumentOutOfRangeException.ThrowIfNegative(count); 137ArgumentOutOfRangeException.ThrowIfNegative(count); 154ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 155ArgumentOutOfRangeException.ThrowIfNegative(charCount); 189ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 190ArgumentOutOfRangeException.ThrowIfNegative(charCount); 220ArgumentOutOfRangeException.ThrowIfNegative(charCount); 221ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 238ArgumentOutOfRangeException.ThrowIfNegative(index); 239ArgumentOutOfRangeException.ThrowIfNegative(count); 262ArgumentOutOfRangeException.ThrowIfNegative(count); 278ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 279ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 309ArgumentOutOfRangeException.ThrowIfNegative(charCount); 310ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 327ArgumentOutOfRangeException.ThrowIfNegative(index); 328ArgumentOutOfRangeException.ThrowIfNegative(count); 1061ArgumentOutOfRangeException.ThrowIfNegative(charCount); 1080ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (20)
133ArgumentOutOfRangeException.ThrowIfNegative(index); 134ArgumentOutOfRangeException.ThrowIfNegative(count); 173ArgumentOutOfRangeException.ThrowIfNegative(count); 190ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 191ArgumentOutOfRangeException.ThrowIfNegative(charCount); 225ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 226ArgumentOutOfRangeException.ThrowIfNegative(charCount); 256ArgumentOutOfRangeException.ThrowIfNegative(charCount); 257ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 274ArgumentOutOfRangeException.ThrowIfNegative(index); 275ArgumentOutOfRangeException.ThrowIfNegative(count); 298ArgumentOutOfRangeException.ThrowIfNegative(count); 314ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 315ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 345ArgumentOutOfRangeException.ThrowIfNegative(charCount); 346ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 363ArgumentOutOfRangeException.ThrowIfNegative(index); 364ArgumentOutOfRangeException.ThrowIfNegative(count); 717ArgumentOutOfRangeException.ThrowIfNegative(charCount); 746ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (2)
796ArgumentOutOfRangeException.ThrowIfNegative(charCount); 827ArgumentOutOfRangeException.ThrowIfNegative(byteCount);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (5)
125/// <exception cref="ArgumentOutOfRangeException"> 147/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> is less than -1 or greater than <see cref="uint.MaxValue"/> - 1.</exception> 171/// <exception cref="ArgumentOutOfRangeException"> 359/// <exception cref="ArgumentOutOfRangeException"> 393/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (3)
185/// <exception cref="ArgumentOutOfRangeException"> 194ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 218/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (12)
173/// <exception cref="ArgumentOutOfRangeException"><paramref name="spinCount"/> is less than 177ArgumentOutOfRangeException.ThrowIfNegative(spinCount); 178ArgumentOutOfRangeException.ThrowIfGreaterThan(spinCount, SpinCountState_MaxValue); 388/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 401ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 402ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 419/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 434ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 435ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 448/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 472/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 487ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (3)
29/// <exception cref="ArgumentOutOfRangeException"><paramref name="period"/> must be <see cref="Timeout.InfiniteTimeSpan"/> or represent a number of milliseconds equal to or larger than 1 and smaller than <see cref="uint.MaxValue"/>.</exception> 47/// <exception cref="ArgumentOutOfRangeException"><paramref name="period"/> must be <see cref="Timeout.InfiniteTimeSpan"/> or represent a number of milliseconds equal to or larger than 1 and smaller than <see cref="uint.MaxValue"/>.</exception> 81/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> must be <see cref="Timeout.InfiniteTimeSpan"/> or represent a number of milliseconds equal to or larger than 1 and smaller than <see cref="uint.MaxValue"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (3)
241ArgumentOutOfRangeException.ThrowIfLessThan(ltm, -1, nameof(timeout)); 242ArgumentOutOfRangeException.ThrowIfGreaterThan(ltm, int.MaxValue, nameof(timeout)); 253ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (3)
24ArgumentOutOfRangeException.ThrowIfNegative(initialCount); 25ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maximumCount); 59ArgumentOutOfRangeException.ThrowIfNegativeOrZero(releaseCount);
src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (11)
128/// <exception cref="ArgumentOutOfRangeException"><paramref name="initialCount"/> 143/// <exception cref="ArgumentOutOfRangeException"> <paramref name="initialCount"/> 207/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 237/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 264/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 281/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a negative number other than -1, 514/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a negative number other than -1, 538/// <exception cref="ArgumentOutOfRangeException"> 562/// <exception cref="ArgumentOutOfRangeException"> 595/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a negative number other than -1, 755/// <exception cref="ArgumentOutOfRangeException"><paramref name="releaseCount"/> is less
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (2)
218/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 256/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is
src\libraries\System.Private.CoreLib\src\System\Threading\SpinWait.cs (4)
137/// <exception cref="ArgumentOutOfRangeException"> 146ArgumentOutOfRangeException.ThrowIfLessThan(sleep1Threshold, -1); 276/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative number 301/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (13)
148/// <exception cref="ArgumentOutOfRangeException"> 172/// <exception cref="ArgumentOutOfRangeException"> 237/// <exception cref="ArgumentOutOfRangeException"> 264/// <exception cref="ArgumentOutOfRangeException"> 524/// <exception cref="ArgumentOutOfRangeException">The <paramref name="options"/> argument specifies an invalid value.</exception> 709/// <exception cref="ArgumentOutOfRangeException"> 746/// <exception cref="ArgumentOutOfRangeException"> 893/// <exception cref="ArgumentOutOfRangeException"> 931/// <exception cref="ArgumentOutOfRangeException"> 1095/// <exception cref="ArgumentOutOfRangeException"> 1142/// <exception cref="ArgumentOutOfRangeException"> 1314/// <exception cref="ArgumentOutOfRangeException"> 1363/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (20)
126/// <exception cref="ArgumentOutOfRangeException"> 169/// <exception cref="ArgumentOutOfRangeException"> 302/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 339/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 427/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 466/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 579/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 612/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 734/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 850/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 975/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1108/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1402/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1443/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1536/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1579/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1772/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1813/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1906/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1949/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (31)
386/// <exception cref="ArgumentOutOfRangeException"> 407/// <exception cref="ArgumentOutOfRangeException"> 461/// <exception cref="ArgumentOutOfRangeException"> 483/// <exception cref="ArgumentOutOfRangeException"> 2458/// <exception cref="ArgumentOutOfRangeException">The <paramref name="options"/> argument specifies an invalid value.</exception> 2647/// <exception cref="ArgumentOutOfRangeException"> 2668/// <exception cref="ArgumentOutOfRangeException"> 2715/// <exception cref="ArgumentOutOfRangeException"> 2745/// <exception cref="ArgumentOutOfRangeException"> 3698/// <exception cref="ArgumentOutOfRangeException"> 3735/// <exception cref="ArgumentOutOfRangeException"> 3879/// <exception cref="ArgumentOutOfRangeException"> 3917/// <exception cref="ArgumentOutOfRangeException"> 4074/// <exception cref="ArgumentOutOfRangeException"> 4114/// <exception cref="ArgumentOutOfRangeException"> 4277/// <exception cref="ArgumentOutOfRangeException"> 4318/// <exception cref="ArgumentOutOfRangeException"> 4737/// <exception cref="ArgumentOutOfRangeException"> 4782/// <exception cref="ArgumentOutOfRangeException"> 4859/// <exception cref="ArgumentOutOfRangeException"> 5161/// <exception cref="ArgumentOutOfRangeException"> 5225/// <exception cref="ArgumentOutOfRangeException"> 5258/// <exception cref="ArgumentOutOfRangeException"> 5633/// <exception cref="ArgumentOutOfRangeException"> 5645/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 5646/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> property is greater than 4294967294.</exception> 5656/// <exception cref="ArgumentOutOfRangeException"> 5676/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 5677/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> property is greater than 4294967294.</exception> 5690/// <exception cref="ArgumentOutOfRangeException"> 5704/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (2)
42/// <exception cref="ArgumentOutOfRangeException"> 62/// <exception cref="ArgumentOutOfRangeException">The <paramref name="creationOptions"/> represent options invalid for use with a <see cref="TaskCompletionSource"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (2)
45/// <exception cref="ArgumentOutOfRangeException"> 65/// <exception cref="ArgumentOutOfRangeException">The <paramref name="creationOptions"/> represent options invalid for use with a <see cref="TaskCompletionSource{TResult}"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (38)
132/// <exception cref="ArgumentOutOfRangeException"> 175/// <exception cref="ArgumentOutOfRangeException"> 319/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 355/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 442/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 480/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 573/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 613/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 711/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 753/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 813/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 844/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 897/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 962/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1035/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1116/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1176/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1208/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1263/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1330/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1403/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1486/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1752/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1793/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1887/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 1930/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2032/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2077/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2183/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2230/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2470/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2511/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2613/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2658/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2763/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2810/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2904/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2947/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (3)
124ArgumentOutOfRangeException.ThrowIfNegative(maxStackSize); 144ArgumentOutOfRangeException.ThrowIfNegative(maxStackSize); 367ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, Timeout.Infinite);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (10)
1416ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1431ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1446ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1447ArgumentOutOfRangeException.ThrowIfGreaterThan(millisecondsTimeOutInterval, int.MaxValue); 1462ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1463ArgumentOutOfRangeException.ThrowIfGreaterThan(millisecondsTimeOutInterval, int.MaxValue); 1480ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, nameof(timeout)); 1481ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, int.MaxValue, nameof(timeout)); 1499ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, nameof(timeout)); 1500ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, int.MaxValue, nameof(timeout));
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (18)
496ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, parameter); 497ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, Timer.MaxSupportedTimeout, parameter); 842ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 843ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 854ArgumentOutOfRangeException.ThrowIfLessThan(dueTm, -1, nameof(dueTime)); 855ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTm, MaxSupportedTimeout, nameof(dueTime)); 858ArgumentOutOfRangeException.ThrowIfLessThan(periodTm, -1, nameof(period)); 859ArgumentOutOfRangeException.ThrowIfGreaterThan(periodTm, MaxSupportedTimeout, nameof(period)); 878ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 879ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 880ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTime, MaxSupportedTimeout); 881ArgumentOutOfRangeException.ThrowIfGreaterThan(period, MaxSupportedTimeout); 910ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 911ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 927ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 928ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 929ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTime, MaxSupportedTimeout); 930ArgumentOutOfRangeException.ThrowIfGreaterThan(period, MaxSupportedTimeout);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (5)
82ArgumentOutOfRangeException.ThrowIfLessThan(timeoutMilliseconds, -1, nameof(timeout)); 83ArgumentOutOfRangeException.ThrowIfGreaterThan(timeoutMilliseconds, int.MaxValue, nameof(timeout)); 102ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 312ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 460ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
749private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) 759private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, int paramNumber, ExceptionResource resource)
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (12)
145/// <exception cref="ArgumentOutOfRangeException"> 167/// <exception cref="ArgumentOutOfRangeException"> 330/// <exception cref="ArgumentOutOfRangeException"> 346/// <exception cref="ArgumentOutOfRangeException"> 367/// <exception cref="ArgumentOutOfRangeException"> 382/// <exception cref="ArgumentOutOfRangeException"> 402/// <exception cref="ArgumentOutOfRangeException"> 416/// <exception cref="ArgumentOutOfRangeException"> 435/// <exception cref="ArgumentOutOfRangeException"> 448/// <exception cref="ArgumentOutOfRangeException"> 467/// <exception cref="ArgumentOutOfRangeException"> 495/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (6)
1555catch (ArgumentOutOfRangeException) { } 1565catch (ArgumentOutOfRangeException) { } 1746catch (ArgumentOutOfRangeException) { } 1756catch (ArgumentOutOfRangeException) { } 1816catch (ArgumentOutOfRangeException) { } 1826catch (ArgumentOutOfRangeException) { }
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
351catch (ArgumentOutOfRangeException e)
src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
371ArgumentOutOfRangeException.ThrowIfNegative(genericParameterCount); 649ArgumentOutOfRangeException.ThrowIfNegative(position);
src\libraries\System.Private.CoreLib\src\System\Version.cs (10)
32ArgumentOutOfRangeException.ThrowIfNegative(major); 33ArgumentOutOfRangeException.ThrowIfNegative(minor); 34ArgumentOutOfRangeException.ThrowIfNegative(build); 35ArgumentOutOfRangeException.ThrowIfNegative(revision); 45ArgumentOutOfRangeException.ThrowIfNegative(major); 46ArgumentOutOfRangeException.ThrowIfNegative(minor); 47ArgumentOutOfRangeException.ThrowIfNegative(build); 57ArgumentOutOfRangeException.ThrowIfNegative(major); 58ArgumentOutOfRangeException.ThrowIfNegative(minor); 383ArgumentOutOfRangeException.ThrowIfNegative(parsedComponent, componentName);
src\System\Array.CoreCLR.cs (5)
48ArgumentOutOfRangeException.ThrowIfNegative(length); 51ArgumentOutOfRangeException.ThrowIfLessThan(sourceIndex, srcLB); 52ArgumentOutOfRangeException.ThrowIfNegative(sourceIndex - srcLB, nameof(sourceIndex)); 56ArgumentOutOfRangeException.ThrowIfLessThan(destinationIndex, dstLB); 57ArgumentOutOfRangeException.ThrowIfNegative(destinationIndex - dstLB, nameof(destinationIndex));
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
43ArgumentOutOfRangeException.ThrowIfNegative(index);
src\System\GC.CoreCLR.cs (17)
138ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bytesAllocated); 141ArgumentOutOfRangeException.ThrowIfGreaterThan(bytesAllocated, int.MaxValue); 149ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bytesAllocated); 152ArgumentOutOfRangeException.ThrowIfGreaterThan(bytesAllocated, int.MaxValue); 193ArgumentOutOfRangeException.ThrowIfNegative(generation); 241ArgumentOutOfRangeException.ThrowIfNegative(generation); 444ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 456ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 478ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize); 482ArgumentOutOfRangeException.ThrowIfNegativeOrZero(lohSize); 484ArgumentOutOfRangeException.ThrowIfGreaterThan(lohSize, totalSize); 612ArgumentOutOfRangeException.ThrowIfLessThan(highMemoryPercent, 0); 613ArgumentOutOfRangeException.ThrowIfGreaterThan(highMemoryPercent, 1.0); 614ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(highMemoryPercent, lowMemoryPercent); 615ArgumentOutOfRangeException.ThrowIfLessThan(lowMemoryPercent, 0); 654/// <exception cref="ArgumentOutOfRangeException"> 667ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize);
src\System\Reflection\Emit\DynamicILGenerator.cs (3)
905ArgumentOutOfRangeException.ThrowIfNegative(codeSize); 921ArgumentOutOfRangeException.ThrowIfNegative(exceptionsSize); 937ArgumentOutOfRangeException.ThrowIfNegative(signatureSize);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
364ArgumentOutOfRangeException.ThrowIfNegative(size);
src\System\Text\StringBuilder.CoreCLR.cs (3)
29ArgumentOutOfRangeException.ThrowIfGreaterThan(newLength, m_MaxCapacity, "capacity"); 44ArgumentOutOfRangeException.ThrowIfGreaterThan(source.Length, m_MaxCapacity, "capacity"); 59ArgumentOutOfRangeException.ThrowIfGreaterThan(newLength, m_MaxCapacity, "capacity");
src\System\Threading\Monitor.CoreCLR.cs (1)
155ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
System.Private.DataContractSerialization (96)
System\Runtime\Serialization\DataContractSerializer.cs (1)
137ArgumentOutOfRangeException.ThrowIfNegative(maxItemsInObjectGraph);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
602ArgumentOutOfRangeException.ThrowIfNegative(maxItemsInObjectGraph);
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
720ArgumentOutOfRangeException.ThrowIfNegative(offset); 725ArgumentOutOfRangeException.ThrowIfNegative(count); 742ArgumentOutOfRangeException.ThrowIfNegative(offset); 747ArgumentOutOfRangeException.ThrowIfNegative(count); 779ArgumentOutOfRangeException.ThrowIfNegative(offset); 784ArgumentOutOfRangeException.ThrowIfNegative(count); 820ArgumentOutOfRangeException.ThrowIfNegative(offset); 825ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (8)
361ArgumentOutOfRangeException.ThrowIfNegative(index); 362ArgumentOutOfRangeException.ThrowIfNegative(count); 377ArgumentOutOfRangeException.ThrowIfNegative(index); 378ArgumentOutOfRangeException.ThrowIfNegative(count); 403ArgumentOutOfRangeException.ThrowIfNegative(index); 404ArgumentOutOfRangeException.ThrowIfNegative(count); 692ArgumentOutOfRangeException.ThrowIfNegative(index); 693ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Text\Base64Encoding.cs (15)
31ArgumentOutOfRangeException.ThrowIfNegative(charCount); 53ArgumentOutOfRangeException.ThrowIfNegative(index); 56ArgumentOutOfRangeException.ThrowIfNegative(count); 104ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 108ArgumentOutOfRangeException.ThrowIfNegative(charCount); 113ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 177ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 181ArgumentOutOfRangeException.ThrowIfNegative(charCount); 186ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 260ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 263ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 269ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 344ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 347ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 353ArgumentOutOfRangeException.ThrowIfNegative(charIndex);
System\Text\BinHexEncoding.cs (7)
13ArgumentOutOfRangeException.ThrowIfNegative(charCount); 27ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 30ArgumentOutOfRangeException.ThrowIfNegative(charCount); 34ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 66ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 69ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 74ArgumentOutOfRangeException.ThrowIfNegative(charIndex);
System\Xml\UniqueId.cs (5)
69ArgumentOutOfRangeException.ThrowIfNegative(offset); 98ArgumentOutOfRangeException.ThrowIfNegative(offset); 101ArgumentOutOfRangeException.ThrowIfNegative(count); 204ArgumentOutOfRangeException.ThrowIfNegative(offset); 284ArgumentOutOfRangeException.ThrowIfNegative(offset);
System\Xml\XmlBaseReader.cs (9)
503ArgumentOutOfRangeException.ThrowIfNegative(index); 1130ArgumentOutOfRangeException.ThrowIfNegative(offset); 1133ArgumentOutOfRangeException.ThrowIfNegative(count); 1158ArgumentOutOfRangeException.ThrowIfNegative(offset); 1161ArgumentOutOfRangeException.ThrowIfNegative(count); 1346ArgumentOutOfRangeException.ThrowIfNegative(offset); 1349ArgumentOutOfRangeException.ThrowIfNegative(count); 1382ArgumentOutOfRangeException.ThrowIfNegative(offset); 1385ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlBaseWriter.cs (6)
1027ArgumentOutOfRangeException.ThrowIfNegative(offset); 1028ArgumentOutOfRangeException.ThrowIfNegative(count); 1079ArgumentOutOfRangeException.ThrowIfNegative(offset); 1080ArgumentOutOfRangeException.ThrowIfNegative(count); 1442ArgumentOutOfRangeException.ThrowIfNegative(offset); 1443ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlBinaryReader.cs (4)
48ArgumentOutOfRangeException.ThrowIfNegative(offset); 51ArgumentOutOfRangeException.ThrowIfNegative(count); 1229ArgumentOutOfRangeException.ThrowIfNegative(offset); 1232ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlBinaryWriter.cs (2)
1279ArgumentOutOfRangeException.ThrowIfNegative(offset); 1282ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlCanonicalWriter.cs (18)
208ArgumentOutOfRangeException.ThrowIfNegative(prefixOffset); 211ArgumentOutOfRangeException.ThrowIfNegative(prefixLength); 216ArgumentOutOfRangeException.ThrowIfNegative(localNameOffset); 219ArgumentOutOfRangeException.ThrowIfNegative(localNameLength); 384ArgumentOutOfRangeException.ThrowIfNegative(prefixOffset); 387ArgumentOutOfRangeException.ThrowIfNegative(prefixLength); 392ArgumentOutOfRangeException.ThrowIfNegative(nsOffset); 395ArgumentOutOfRangeException.ThrowIfNegative(nsLength); 435ArgumentOutOfRangeException.ThrowIfNegative(prefixOffset); 438ArgumentOutOfRangeException.ThrowIfNegative(prefixLength); 443ArgumentOutOfRangeException.ThrowIfNegative(localNameOffset); 446ArgumentOutOfRangeException.ThrowIfNegative(localNameLength); 506ArgumentOutOfRangeException.ThrowIfNegative(offset); 509ArgumentOutOfRangeException.ThrowIfNegative(count); 561ArgumentOutOfRangeException.ThrowIfNegative(offset); 564ArgumentOutOfRangeException.ThrowIfNegative(count); 598ArgumentOutOfRangeException.ThrowIfNegative(offset); 601ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlConverter.cs (1)
958catch (ArgumentOutOfRangeException) // Overflow
System\Xml\XmlDictionaryReader.cs (2)
1009ArgumentOutOfRangeException.ThrowIfNegative(offset); 1012ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlDictionaryReaderQuotas.cs (5)
96ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 113ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 130ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 148ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 166ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Xml\XmlDictionaryWriter.cs (2)
440ArgumentOutOfRangeException.ThrowIfNegative(offset); 443ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Xml\XmlUTF8TextReader.cs (2)
560ArgumentOutOfRangeException.ThrowIfNegative(offset); 563ArgumentOutOfRangeException.ThrowIfNegative(count);
System.Private.Uri (6)
System\Uri.cs (3)
1379ArgumentOutOfRangeException.ThrowIfGreaterThan(character, '\xff'); 1418ArgumentOutOfRangeException.ThrowIfNegative(index); 1419ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, pattern.Length);
System\UriBuilder.cs (2)
183ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 184ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0xFFFF);
System\UriScheme.cs (1)
171ArgumentOutOfRangeException.ThrowIfEqual(schemeName.Length, 1);
System.Private.Xml (157)
System\Xml\Base64Decoder.cs (6)
44ArgumentOutOfRangeException.ThrowIfNegative(len); 45ArgumentOutOfRangeException.ThrowIfNegative(startPos); 46ArgumentOutOfRangeException.ThrowIfGreaterThan(len, chars.Length - startPos); 63ArgumentOutOfRangeException.ThrowIfNegative(len); 64ArgumentOutOfRangeException.ThrowIfNegative(startPos); 65ArgumentOutOfRangeException.ThrowIfGreaterThan(len, str.Length - startPos);
System\Xml\Base64Encoder.cs (3)
29ArgumentOutOfRangeException.ThrowIfNegative(index); 30ArgumentOutOfRangeException.ThrowIfNegative(count); 31ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\BinaryXml\XmlBinaryReader.cs (4)
691ArgumentOutOfRangeException.ThrowIfNegative(i); 692ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attrCount); 748ArgumentOutOfRangeException.ThrowIfNegative(i); 749ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attrCount);
System\Xml\BinHexDecoder.cs (6)
44ArgumentOutOfRangeException.ThrowIfNegative(len); 45ArgumentOutOfRangeException.ThrowIfNegative(startPos); 46ArgumentOutOfRangeException.ThrowIfGreaterThan(len, chars.Length - startPos); 65ArgumentOutOfRangeException.ThrowIfNegative(len); 66ArgumentOutOfRangeException.ThrowIfNegative(startPos); 67ArgumentOutOfRangeException.ThrowIfGreaterThan(len, str.Length - startPos);
System\Xml\BinHexEncoder.cs (3)
14ArgumentOutOfRangeException.ThrowIfNegative(index); 15ArgumentOutOfRangeException.ThrowIfNegative(count); 16ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\ReadContentAsBinaryHelper.cs (12)
66ArgumentOutOfRangeException.ThrowIfNegative(count); 67ArgumentOutOfRangeException.ThrowIfNegative(index); 68ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 109ArgumentOutOfRangeException.ThrowIfNegative(count); 110ArgumentOutOfRangeException.ThrowIfNegative(index); 111ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 152ArgumentOutOfRangeException.ThrowIfNegative(count); 153ArgumentOutOfRangeException.ThrowIfNegative(index); 154ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 195ArgumentOutOfRangeException.ThrowIfNegative(count); 196ArgumentOutOfRangeException.ThrowIfNegative(index); 197ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlCharCheckingReader.cs (6)
482ArgumentOutOfRangeException.ThrowIfNegative(count); 483ArgumentOutOfRangeException.ThrowIfNegative(index); 484ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 530ArgumentOutOfRangeException.ThrowIfNegative(count); 531ArgumentOutOfRangeException.ThrowIfNegative(index); 532ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlCharCheckingWriter.cs (3)
267ArgumentOutOfRangeException.ThrowIfNegative(index); 268ArgumentOutOfRangeException.ThrowIfNegative(count); 269ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (3)
214ArgumentOutOfRangeException.ThrowIfNegative(index); 215ArgumentOutOfRangeException.ThrowIfNegative(count); 216ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlReader.cs (2)
581ArgumentOutOfRangeException.ThrowIfNegative(i); 582ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, AttributeCount);
System\Xml\Core\XmlSubtreeReader.cs (3)
1584ArgumentOutOfRangeException.ThrowIfNegative(count); 1585ArgumentOutOfRangeException.ThrowIfNegative(index); 1586ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlTextEncoder.cs (6)
114ArgumentOutOfRangeException.ThrowIfNegative(offset); 115ArgumentOutOfRangeException.ThrowIfNegative(count); 116ArgumentOutOfRangeException.ThrowIfGreaterThan(count, array.Length - offset); 440ArgumentOutOfRangeException.ThrowIfNegative(count); 441ArgumentOutOfRangeException.ThrowIfNegative(offset); 442ArgumentOutOfRangeException.ThrowIfGreaterThan(count, array.Length - offset);
System\Xml\Core\XmlTextReaderImpl.cs (20)
1067ArgumentOutOfRangeException.ThrowIfNegative(i); 1068ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attrCount); 1129ArgumentOutOfRangeException.ThrowIfNegative(i); 1130ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attrCount); 1595ArgumentOutOfRangeException.ThrowIfNegative(count); 1596ArgumentOutOfRangeException.ThrowIfNegative(index); 1597ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1642ArgumentOutOfRangeException.ThrowIfNegative(count); 1643ArgumentOutOfRangeException.ThrowIfNegative(index); 1644ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1688ArgumentOutOfRangeException.ThrowIfNegative(count); 1689ArgumentOutOfRangeException.ThrowIfNegative(index); 1690ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1735ArgumentOutOfRangeException.ThrowIfNegative(count); 1736ArgumentOutOfRangeException.ThrowIfNegative(index); 1737ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1795ArgumentOutOfRangeException.ThrowIfNegative(count); 1796ArgumentOutOfRangeException.ThrowIfNegative(index); 1797ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 2073ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)value, (uint)DtdProcessing.Parse, nameof(value));
System\Xml\Core\XmlTextReaderImplAsync.cs (15)
391ArgumentOutOfRangeException.ThrowIfNegative(count); 392ArgumentOutOfRangeException.ThrowIfNegative(index); 393ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 447ArgumentOutOfRangeException.ThrowIfNegative(count); 448ArgumentOutOfRangeException.ThrowIfNegative(index); 449ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 512ArgumentOutOfRangeException.ThrowIfNegative(count); 513ArgumentOutOfRangeException.ThrowIfNegative(index); 514ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 568ArgumentOutOfRangeException.ThrowIfNegative(count); 569ArgumentOutOfRangeException.ThrowIfNegative(index); 570ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 620ArgumentOutOfRangeException.ThrowIfNegative(count); 621ArgumentOutOfRangeException.ThrowIfNegative(index); 622ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlTextWriter.cs (1)
353ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Xml\Core\XmlWellFormedWriter.cs (9)
1064ArgumentOutOfRangeException.ThrowIfNegative(index); 1065ArgumentOutOfRangeException.ThrowIfNegative(count); 1066ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1090ArgumentOutOfRangeException.ThrowIfNegative(index); 1091ArgumentOutOfRangeException.ThrowIfNegative(count); 1092ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1142ArgumentOutOfRangeException.ThrowIfNegative(index); 1143ArgumentOutOfRangeException.ThrowIfNegative(count); 1144ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlWellFormedWriterAsync.cs (9)
1002ArgumentOutOfRangeException.ThrowIfNegative(index); 1003ArgumentOutOfRangeException.ThrowIfNegative(count); 1004ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1028ArgumentOutOfRangeException.ThrowIfNegative(index); 1029ArgumentOutOfRangeException.ThrowIfNegative(count); 1030ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index); 1080ArgumentOutOfRangeException.ThrowIfNegative(index); 1081ArgumentOutOfRangeException.ThrowIfNegative(count); 1082ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - index);
System\Xml\Core\XmlWriterSettings.cs (1)
211ArgumentOutOfRangeException.ThrowIfGreaterThan(unchecked((uint)value), (uint)NamespaceHandling.OmitDuplicates, nameof(value));
System\Xml\Core\XsdCachingReader.cs (4)
282ArgumentOutOfRangeException.ThrowIfNegative(i); 283ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attributeCount); 355ArgumentOutOfRangeException.ThrowIfNegative(i); 356ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attributeCount);
System\Xml\Core\XsdValidatingReader.cs (4)
1166ArgumentOutOfRangeException.ThrowIfNegative(i); 1167ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attributeCount); 1274ArgumentOutOfRangeException.ThrowIfNegative(i); 1275ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attributeCount);
System\Xml\Dom\XmlAttributeCollection.cs (1)
27catch (ArgumentOutOfRangeException)
System\Xml\Dom\XmlNamedNodemap.cs (1)
77catch (ArgumentOutOfRangeException)
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (3)
48ArgumentOutOfRangeException.ThrowIfNotEqual(index, 0); 99ArgumentOutOfRangeException.ThrowIfNotEqual(index, 0); 108ArgumentOutOfRangeException.ThrowIfNotEqual(index, 0);
System\Xml\Dom\XmlNodeReader.cs (2)
358ArgumentOutOfRangeException.ThrowIfNegative(attributeIndex); 359ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(attributeIndex, AttributeCount);
System\Xml\Dom\XmlText.cs (1)
108ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, length);
System\Xml\NameTable.cs (1)
97ArgumentOutOfRangeException.ThrowIfNegative(len);
System\Xml\Resolvers\XmlPreloadedResolver.cs (3)
295ArgumentOutOfRangeException.ThrowIfNegative(count); 296ArgumentOutOfRangeException.ThrowIfNegative(offset); 297ArgumentOutOfRangeException.ThrowIfGreaterThan(count, value.Length - offset);
System\Xml\Schema\XmlSchemaCollection.cs (4)
230ArgumentOutOfRangeException.ThrowIfNegative(index); 234ArgumentOutOfRangeException.ThrowIfEqual(index, array.Length); 242ArgumentOutOfRangeException.ThrowIfNegative(index); 249ArgumentOutOfRangeException.ThrowIfEqual(index, array.Length);
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
193ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 246ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
System\Xml\Schema\XmlSchemaSet.cs (2)
668ArgumentOutOfRangeException.ThrowIfNegative(index); 669ArgumentOutOfRangeException.ThrowIfGreaterThan(index, schemas.Length - 1);
System\Xml\Schema\XsdDuration.cs (8)
51ArgumentOutOfRangeException.ThrowIfNegative(years); 52ArgumentOutOfRangeException.ThrowIfNegative(months); 53ArgumentOutOfRangeException.ThrowIfNegative(days); 54ArgumentOutOfRangeException.ThrowIfNegative(hours); 55ArgumentOutOfRangeException.ThrowIfNegative(minutes); 56ArgumentOutOfRangeException.ThrowIfNegative(seconds); 57ArgumentOutOfRangeException.ThrowIfNegative(nanoseconds); 58ArgumentOutOfRangeException.ThrowIfGreaterThan(nanoseconds, 999999999);
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (3)
248ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 323ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 727ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (2)
423ArgumentOutOfRangeException.ThrowIfGreaterThan(minValue, value); 424ArgumentOutOfRangeException.ThrowIfLessThan(maxValue, value);
System\Xml\Xsl\XsltOld\ReaderOutput.cs (4)
265ArgumentOutOfRangeException.ThrowIfNegative(i); 266ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(i, _attributeCount); 614ArgumentOutOfRangeException.ThrowIfNegative(attrib); 615ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(attrib, _attributeCount);
System.Private.Xml.Linq (2)
System\Xml\Linq\XNodeReader.cs (2)
560ArgumentOutOfRangeException.ThrowIfNegative(index); 697ArgumentOutOfRangeException.ThrowIfNegative(index);
System.Reflection.Emit (1)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
150ArgumentOutOfRangeException.ThrowIfNegative(iOffset);
System.Reflection.Metadata (88)
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
107/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end-of-stream from current position.</exception>
System\Reflection\Metadata\BlobBuilder.cs (10)
269/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the buffer content.</exception> 313/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the buffer content.</exception> 582/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 620/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 650/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 691/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 751/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the <paramref name="buffer"/>.</exception> 778/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the <paramref name="buffer"/>.</exception> 1130/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> can't be represented as a compressed signed integer.</exception> 1149/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> can't be represented as a compressed unsigned integer.</exception>
System\Reflection\Metadata\BlobReader.cs (2)
30/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is negative.</exception> 636/// <exception cref="ArgumentOutOfRangeException"><paramref name="typeCode"/> is not a valid <see cref="ConstantTypeCode"/>.</exception>
System\Reflection\Metadata\BlobWriter.cs (9)
86/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the buffer content.</exception> 99/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the buffer content.</exception> 121/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 134/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 168/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 199/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the <paramref name="buffer"/>.</exception> 224/// <exception cref="ArgumentOutOfRangeException">Range specified by <paramref name="start"/> and <paramref name="byteCount"/> falls outside of the bounds of the <paramref name="buffer"/>.</exception> 497/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> can't be represented as a compressed signed integer.</exception> 515/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> can't be represented as a compressed unsigned integer.</exception>
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (10)
52/// <exception cref="ArgumentOutOfRangeException"><paramref name="genericArgumentCount"/> is not in range [0, 0xffff].</exception> 73/// <exception cref="ArgumentOutOfRangeException"><paramref name="genericParameterCount"/> is not in range [0, 0xffff].</exception> 152/// <exception cref="ArgumentOutOfRangeException"><paramref name="variableCount"/> is not in range [0, 0x1fffffff].</exception> 181/// <exception cref="ArgumentOutOfRangeException"><paramref name="attributeCount"/> is not in range [0, 0x1fffffff].</exception> 990/// <exception cref="ArgumentOutOfRangeException"><paramref name="type"/> is not valid in this context.</exception> 1082/// <exception cref="ArgumentOutOfRangeException"><paramref name="genericParameterCount"/> is not in range [0, 0xffff].</exception> 1122/// <exception cref="ArgumentOutOfRangeException"><paramref name="genericArgumentCount"/> is not in range [1, 0xffff].</exception> 1145/// <exception cref="ArgumentOutOfRangeException"><paramref name="parameterIndex"/> is not in range [0, 0xffff].</exception> 1161/// <exception cref="ArgumentOutOfRangeException"><paramref name="parameterIndex"/> is not in range [0, 0xffff].</exception> 1266/// <exception cref="ArgumentOutOfRangeException">
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (6)
116/// <exception cref="ArgumentOutOfRangeException"> 133/// <exception cref="ArgumentOutOfRangeException"> 154/// <exception cref="ArgumentOutOfRangeException"> 172/// <exception cref="ArgumentOutOfRangeException"> 198/// <exception cref="ArgumentOutOfRangeException"><paramref name="kind"/> has invalid value.</exception> 199/// <exception cref="ArgumentOutOfRangeException">
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (7)
217/// <exception cref="ArgumentOutOfRangeException"><paramref name="slotIndex"/> is negative.</exception> 251/// <exception cref="ArgumentOutOfRangeException"><paramref name="slotIndex"/> is negative.</exception> 285/// <exception cref="ArgumentOutOfRangeException"><paramref name="slotIndex"/> is negative.</exception> 308/// <exception cref="ArgumentOutOfRangeException"><paramref name="argumentIndex"/> is negative.</exception> 342/// <exception cref="ArgumentOutOfRangeException"><paramref name="argumentIndex"/> is negative.</exception> 365/// <exception cref="ArgumentOutOfRangeException"><paramref name="argumentIndex"/> is negative.</exception> 443/// <exception cref="ArgumentOutOfRangeException"><paramref name="branchCount"/>
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (4)
42/// <exception cref="ArgumentOutOfRangeException"> 65/// <exception cref="ArgumentOutOfRangeException"> 135/// <exception cref="ArgumentOutOfRangeException"><paramref name="maxStack"/> is out of range [0, <see cref="ushort.MaxValue"/>].</exception> 158/// <exception cref="ArgumentOutOfRangeException"><paramref name="maxStack"/> is out of range [0, <see cref="ushort.MaxValue"/>].</exception>
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (4)
73/// <exception cref="ArgumentOutOfRangeException">Offset is negative.</exception> 138/// <exception cref="ArgumentOutOfRangeException"><paramref name="heap"/> is not a valid heap index.</exception> 139/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is negative.</exception> 473/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is negative.</exception>
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (8)
133/// <exception cref="ArgumentOutOfRangeException"><paramref name="table"/> is not a valid table index.</exception> 134/// <exception cref="ArgumentOutOfRangeException"><paramref name="rowCount"/> is negative.</exception> 222/// <exception cref="ArgumentOutOfRangeException"><paramref name="table"/> is not a valid table index.</exception> 798/// <exception cref="ArgumentOutOfRangeException"><paramref name="sequenceNumber"/> is greater than <see cref="ushort.MaxValue"/>.</exception> 828/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is greater than <see cref="ushort.MaxValue"/>.</exception> 951/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> is negative.</exception> 984/// <exception cref="ArgumentOutOfRangeException"><paramref name="bodyOffset"/> is less than -1.</exception> 1295/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is greater than <see cref="ushort.MaxValue"/>.</exception>
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (6)
19/// <exception cref="ArgumentOutOfRangeException"><paramref name="tableIndex"/> is not a valid table index.</exception> 39/// <exception cref="ArgumentOutOfRangeException"><paramref name="tableIndex"/> is not a valid table index.</exception> 113/// <exception cref="ArgumentOutOfRangeException"><paramref name="tableIndex"/> is not a valid table index.</exception> 194/// <exception cref="ArgumentOutOfRangeException"><paramref name="heapIndex"/> is not a valid heap index.</exception> 209/// <exception cref="ArgumentOutOfRangeException"><paramref name="heapIndex"/> is not a valid heap index.</exception> 224/// <exception cref="ArgumentOutOfRangeException"><paramref name="heapIndex"/> is not a valid heap index.</exception>
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (1)
93/// <exception cref="ArgumentOutOfRangeException"><paramref name="methodBodyStreamRva"/> or <paramref name="mappedFieldDataStreamRva"/> is negative.</exception>
System\Reflection\Metadata\MetadataReader.cs (1)
65/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is not positive.</exception>
System\Reflection\Metadata\MetadataReaderProvider.cs (4)
51/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is negative.</exception> 65/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is negative.</exception> 136/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception> 161/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception>
System\Reflection\Metadata\TypeNameParserOptions.cs (1)
19ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, 0, nameof(value));
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (3)
80/// <exception cref="ArgumentOutOfRangeException"><paramref name="portablePdbVersion"/> is smaller than 0x0100.</exception> 98/// <exception cref="ArgumentOutOfRangeException"><paramref name="age"/> is less than 1.</exception> 99/// <exception cref="ArgumentOutOfRangeException"><paramref name="portablePdbVersion"/> is smaller than 0x0100.</exception>
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
19/// <exception cref="ArgumentOutOfRangeException"><paramref name="portablePdbVersion"/> is smaller than 0x0100.</exception>
System\Reflection\PortableExecutable\PEHeaderBuilder.cs (1)
42/// <exception cref="ArgumentOutOfRangeException">
System\Reflection\PortableExecutable\PEHeaders.cs (2)
56/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception> 72/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception>
System\Reflection\PortableExecutable\PEMemoryBlock.cs (2)
47/// <exception cref="ArgumentOutOfRangeException">Specified range is not contained within the block.</exception> 65/// <exception cref="ArgumentOutOfRangeException">Specified range is not contained within the block.</exception>
System\Reflection\PortableExecutable\PEReader.cs (5)
50/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is negative.</exception> 68/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is negative.</exception> 124/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> has an invalid value.</exception> 152/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception> 481/// <exception cref="ArgumentOutOfRangeException"><paramref name="relativeVirtualAddress"/> is negative.</exception>
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
553catch (ArgumentOutOfRangeException e) 635catch (ArgumentOutOfRangeException e)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net9.0\System.Runtime.Forwards.cs (1)
38[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentOutOfRangeException))]
System.Runtime.Numerics (3)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
783ArgumentOutOfRangeException.ThrowIfNegative(groupSizeCount | bufferSize, string.Empty); // If we overflow
System\Numerics\BigInteger.cs (2)
963ArgumentOutOfRangeException.ThrowIfNegative(exponent.Sign, nameof(exponent)); 1023ArgumentOutOfRangeException.ThrowIfNegative(exponent);
System.Security.Cryptography (265)
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (12)
131/// <exception cref="ArgumentOutOfRangeException"> 189/// <exception cref="ArgumentOutOfRangeException"> 241/// <exception cref="ArgumentOutOfRangeException"> 274/// <exception cref="ArgumentOutOfRangeException"> 305/// <exception cref="ArgumentOutOfRangeException"> 346/// <exception cref="ArgumentOutOfRangeException"> 386/// <exception cref="ArgumentOutOfRangeException"> 412/// <exception cref="ArgumentOutOfRangeException"> 440/// <exception cref="ArgumentOutOfRangeException"> 456/// <exception cref="ArgumentOutOfRangeException"> 483/// <exception cref="ArgumentOutOfRangeException"> 516/// <exception cref="ArgumentOutOfRangeException">
System\Security\Cryptography\CryptoStream.cs (1)
749ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
System\Security\Cryptography\DSA.cs (29)
116/// <exception cref="ArgumentOutOfRangeException"> 140ArgumentOutOfRangeException.ThrowIfNegative(offset); 141ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 143ArgumentOutOfRangeException.ThrowIfNegative(count); 144ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 166/// <exception cref="ArgumentOutOfRangeException"> 197ArgumentOutOfRangeException.ThrowIfNegative(offset); 198ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 200ArgumentOutOfRangeException.ThrowIfNegative(count); 201ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 262/// <exception cref="ArgumentOutOfRangeException"> 310ArgumentOutOfRangeException.ThrowIfNegative(offset); 311ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 313ArgumentOutOfRangeException.ThrowIfNegative(count); 314ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 338/// <exception cref="ArgumentOutOfRangeException"> 370ArgumentOutOfRangeException.ThrowIfNegative(offset); 371ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 373ArgumentOutOfRangeException.ThrowIfNegative(count); 374ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 405/// <exception cref="ArgumentOutOfRangeException"> 464/// <exception cref="ArgumentOutOfRangeException"> 571/// <exception cref="ArgumentOutOfRangeException"> 649/// <exception cref="ArgumentOutOfRangeException"> 686/// <exception cref="ArgumentOutOfRangeException"> 743/// <exception cref="ArgumentOutOfRangeException"> 799/// <exception cref="ArgumentOutOfRangeException"> 828/// <exception cref="ArgumentOutOfRangeException"> 1101/// <exception cref="ArgumentOutOfRangeException">
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (1)
50ArgumentOutOfRangeException.ThrowIfNegative(dwKeySize);
System\Security\Cryptography\ECDsa.cs (33)
54ArgumentOutOfRangeException.ThrowIfNegative(offset); 55ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 57ArgumentOutOfRangeException.ThrowIfNegative(count); 58ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 80/// <exception cref="ArgumentOutOfRangeException"> 111ArgumentOutOfRangeException.ThrowIfNegative(offset); 112ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 114ArgumentOutOfRangeException.ThrowIfNegative(count); 115ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 192/// <exception cref="ArgumentOutOfRangeException"> 223/// <exception cref="ArgumentOutOfRangeException"> 274/// <exception cref="ArgumentOutOfRangeException"> 302/// <exception cref="ArgumentOutOfRangeException"> 354/// <exception cref="ArgumentOutOfRangeException"> 491/// <exception cref="ArgumentOutOfRangeException"> 607/// <exception cref="ArgumentOutOfRangeException"> 651/// <exception cref="ArgumentOutOfRangeException"> 730ArgumentOutOfRangeException.ThrowIfNegative(offset); 731ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 733ArgumentOutOfRangeException.ThrowIfNegative(count); 734ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 758/// <exception cref="ArgumentOutOfRangeException"> 790ArgumentOutOfRangeException.ThrowIfNegative(offset); 791ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 793ArgumentOutOfRangeException.ThrowIfNegative(count); 794ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 821/// <exception cref="ArgumentOutOfRangeException"> 860/// <exception cref="ArgumentOutOfRangeException"> 938/// <exception cref="ArgumentOutOfRangeException"> 1059/// <exception cref="ArgumentOutOfRangeException"> 1124/// <exception cref="ArgumentOutOfRangeException"> 1150/// <exception cref="ArgumentOutOfRangeException"> 1245/// <exception cref="ArgumentOutOfRangeException">
System\Security\Cryptography\HashAlgorithm.cs (2)
80ArgumentOutOfRangeException.ThrowIfNegative(offset); 238ArgumentOutOfRangeException.ThrowIfNegative(inputOffset);
System\Security\Cryptography\HashProvider.cs (2)
24ArgumentOutOfRangeException.ThrowIfNegative(offset); 25ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Security\Cryptography\HKDF.cs (4)
83/// <exception cref="ArgumentOutOfRangeException"><paramref name="outputLength"/> is less than 1.</exception> 88ArgumentOutOfRangeException.ThrowIfNegativeOrZero(outputLength); 207/// <exception cref="ArgumentOutOfRangeException"><paramref name="outputLength"/> is less than 1.</exception> 212ArgumentOutOfRangeException.ThrowIfNegativeOrZero(outputLength);
System\Security\Cryptography\IncrementalHash.cs (5)
74/// <exception cref="ArgumentOutOfRangeException"> 77/// <exception cref="ArgumentOutOfRangeException"> 90ArgumentOutOfRangeException.ThrowIfNegative(offset); 91ArgumentOutOfRangeException.ThrowIfNegative(count); 92ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length);
System\Security\Cryptography\Kmac128.cs (15)
94/// <exception cref="ArgumentOutOfRangeException"> 102ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 135/// <exception cref="ArgumentOutOfRangeException"> 143ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 190/// <exception cref="ArgumentOutOfRangeException"> 221/// <exception cref="ArgumentOutOfRangeException"> 235ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 276/// <exception cref="ArgumentOutOfRangeException"> 295ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 313/// <exception cref="ArgumentOutOfRangeException"> 331ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 389/// <exception cref="ArgumentOutOfRangeException"> 409ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 436/// <exception cref="ArgumentOutOfRangeException"> 455ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\Kmac256.cs (15)
94/// <exception cref="ArgumentOutOfRangeException"> 102ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 135/// <exception cref="ArgumentOutOfRangeException"> 143ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 190/// <exception cref="ArgumentOutOfRangeException"> 221/// <exception cref="ArgumentOutOfRangeException"> 235ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 276/// <exception cref="ArgumentOutOfRangeException"> 295ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 313/// <exception cref="ArgumentOutOfRangeException"> 331ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 389/// <exception cref="ArgumentOutOfRangeException"> 409ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 436/// <exception cref="ArgumentOutOfRangeException"> 455ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\KmacXof128.cs (15)
94/// <exception cref="ArgumentOutOfRangeException"> 102ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 135/// <exception cref="ArgumentOutOfRangeException"> 143ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 190/// <exception cref="ArgumentOutOfRangeException"> 221/// <exception cref="ArgumentOutOfRangeException"> 235ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 276/// <exception cref="ArgumentOutOfRangeException"> 295ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 313/// <exception cref="ArgumentOutOfRangeException"> 331ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 389/// <exception cref="ArgumentOutOfRangeException"> 409ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 436/// <exception cref="ArgumentOutOfRangeException"> 455ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\KmacXof256.cs (15)
94/// <exception cref="ArgumentOutOfRangeException"> 102ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 135/// <exception cref="ArgumentOutOfRangeException"> 143ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 190/// <exception cref="ArgumentOutOfRangeException"> 221/// <exception cref="ArgumentOutOfRangeException"> 235ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 276/// <exception cref="ArgumentOutOfRangeException"> 295ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 313/// <exception cref="ArgumentOutOfRangeException"> 331ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 389/// <exception cref="ArgumentOutOfRangeException"> 409ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 436/// <exception cref="ArgumentOutOfRangeException"> 455ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\OidCollection.cs (1)
43ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual((uint)index, (uint)_count, nameof(index));
System\Security\Cryptography\PasswordDeriveBytes.cs (1)
89ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Security\Cryptography\PbeParameters.cs (1)
17ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterationCount);
System\Security\Cryptography\PemEncoding.cs (6)
276/// <exception cref="ArgumentOutOfRangeException"> 311ArgumentOutOfRangeException.ThrowIfNegative(labelLength); 312ArgumentOutOfRangeException.ThrowIfNegative(dataLength); 363/// <exception cref="ArgumentOutOfRangeException"> 464/// <exception cref="ArgumentOutOfRangeException"> 507/// <exception cref="ArgumentOutOfRangeException">
System\Security\Cryptography\RandomNumberGenerator.cs (9)
144ArgumentOutOfRangeException.ThrowIfNegativeOrZero(toExclusive); 156/// <exception cref="ArgumentOutOfRangeException"> 161ArgumentOutOfRangeException.ThrowIfNegative(count); 197/// <exception cref="ArgumentOutOfRangeException"> 207ArgumentOutOfRangeException.ThrowIfNegative(length); 223/// <exception cref="ArgumentOutOfRangeException"> 234ArgumentOutOfRangeException.ThrowIfNegative(length); 399ArgumentOutOfRangeException.ThrowIfNegative(offset); 400ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (5)
79ArgumentOutOfRangeException.ThrowIfNegative(saltSize); 80ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 110ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 131ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 173ArgumentOutOfRangeException.ThrowIfNegativeOrZero(cb);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (12)
26/// <exception cref="ArgumentOutOfRangeException"> 61/// <exception cref="ArgumentOutOfRangeException"> 82ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 83ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 100/// <exception cref="ArgumentOutOfRangeException"> 119ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 137/// <exception cref="ArgumentOutOfRangeException"> 180/// <exception cref="ArgumentOutOfRangeException"> 209ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 210ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 227/// <exception cref="ArgumentOutOfRangeException"> 254ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations);
System\Security\Cryptography\RSA.cs (8)
388ArgumentOutOfRangeException.ThrowIfNegative(offset); 389ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 391ArgumentOutOfRangeException.ThrowIfNegative(count); 392ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset); 651ArgumentOutOfRangeException.ThrowIfNegative(offset); 652ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, data.Length); 654ArgumentOutOfRangeException.ThrowIfNegative(count); 655ArgumentOutOfRangeException.ThrowIfGreaterThan(count, data.Length - offset);
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (1)
24ArgumentOutOfRangeException.ThrowIfNegative(dwKeySize);
System\Security\Cryptography\Shake128.cs (13)
90/// <exception cref="ArgumentOutOfRangeException"> 97ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 135/// <exception cref="ArgumentOutOfRangeException"> 142ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 178/// <exception cref="ArgumentOutOfRangeException"> 189ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 278/// <exception cref="ArgumentOutOfRangeException"> 301/// <exception cref="ArgumentOutOfRangeException"> 310ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 342/// <exception cref="ArgumentOutOfRangeException"> 355ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 445/// <exception cref="ArgumentOutOfRangeException"> 461ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\Shake256.cs (13)
90/// <exception cref="ArgumentOutOfRangeException"> 97ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 135/// <exception cref="ArgumentOutOfRangeException"> 142ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 178/// <exception cref="ArgumentOutOfRangeException"> 189ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 278/// <exception cref="ArgumentOutOfRangeException"> 301/// <exception cref="ArgumentOutOfRangeException"> 310ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 342/// <exception cref="ArgumentOutOfRangeException"> 355ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 445/// <exception cref="ArgumentOutOfRangeException"> 461ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\SymmetricAlgorithm.cs (30)
231/// <exception cref="ArgumentOutOfRangeException"> 275/// <exception cref="ArgumentOutOfRangeException"> 315ArgumentOutOfRangeException.ThrowIfNegative(plaintextLength); 354/// <exception cref="ArgumentOutOfRangeException"> 396ArgumentOutOfRangeException.ThrowIfNegative(plaintextLength); 397ArgumentOutOfRangeException.ThrowIfNegativeOrZero(feedbackSizeInBits); 435/// <exception cref="ArgumentOutOfRangeException"> 458/// <exception cref="ArgumentOutOfRangeException"> 497/// <exception cref="ArgumentOutOfRangeException"> 529/// <exception cref="ArgumentOutOfRangeException"> 553/// <exception cref="ArgumentOutOfRangeException"> 576/// <exception cref="ArgumentOutOfRangeException"> 615/// <exception cref="ArgumentOutOfRangeException"> 647/// <exception cref="ArgumentOutOfRangeException"> 672/// <exception cref="ArgumentOutOfRangeException"> 700/// <exception cref="ArgumentOutOfRangeException"> 750/// <exception cref="ArgumentOutOfRangeException"> 792/// <exception cref="ArgumentOutOfRangeException"> 827/// <exception cref="ArgumentOutOfRangeException"> 855/// <exception cref="ArgumentOutOfRangeException"> 903/// <exception cref="ArgumentOutOfRangeException"> 945/// <exception cref="ArgumentOutOfRangeException"> 983/// <exception cref="ArgumentOutOfRangeException"> 1033/// <exception cref="ArgumentOutOfRangeException"> 1101/// <exception cref="ArgumentOutOfRangeException"> 1168/// <exception cref="ArgumentOutOfRangeException"> 1223/// <exception cref="ArgumentOutOfRangeException"> 1273/// <exception cref="ArgumentOutOfRangeException"> 1341/// <exception cref="ArgumentOutOfRangeException"> 1400/// <exception cref="ArgumentOutOfRangeException">
System\Security\Cryptography\UniversalCryptoTransform.cs (7)
72ArgumentOutOfRangeException.ThrowIfNegative(inputOffset); 73ArgumentOutOfRangeException.ThrowIfGreaterThan(inputOffset, inputBuffer.Length); 74ArgumentOutOfRangeException.ThrowIfNegativeOrZero(inputCount); 81ArgumentOutOfRangeException.ThrowIfGreaterThan(outputOffset, outputBuffer.Length); 94ArgumentOutOfRangeException.ThrowIfNegative(inputOffset); 95ArgumentOutOfRangeException.ThrowIfNegative(inputCount); 96ArgumentOutOfRangeException.ThrowIfGreaterThan(inputOffset, inputBuffer.Length);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (4)
102/// <exception cref="ArgumentOutOfRangeException"> 139ArgumentOutOfRangeException.ThrowIfNegative(crlNumber); 286/// <exception cref="ArgumentOutOfRangeException"> 323ArgumentOutOfRangeException.ThrowIfNegative(crlNumber);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (3)
60/// <exception cref="ArgumentOutOfRangeException"> 93/// <exception cref="ArgumentOutOfRangeException"> 126/// <exception cref="ArgumentOutOfRangeException">
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (2)
79/// <exception cref="ArgumentOutOfRangeException"> 111ArgumentOutOfRangeException.ThrowIfNegative(pathLengthConstraint);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (1)
906/// <exception cref="ArgumentOutOfRangeException">
System.Text.Json (25)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
26/// <exception cref="ArgumentOutOfRangeException">Invalid <paramref name="defaults"/> parameter.</exception>
System\Text\Json\Document\JsonDocumentOptions.cs (2)
21/// <exception cref="ArgumentOutOfRangeException"> 43/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\JsonHelpers.Date.cs (2)
436catch (ArgumentOutOfRangeException) 482catch (ArgumentOutOfRangeException)
System\Text\Json\Nodes\JsonArray.IList.cs (3)
74/// <exception cref="ArgumentOutOfRangeException"> 107/// <exception cref="ArgumentOutOfRangeException"> 132/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Nodes\JsonNode.cs (1)
196/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
129/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Reader\JsonReaderOptions.cs (2)
21/// <exception cref="ArgumentOutOfRangeException"> 45/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Serialization\JsonSerializerOptions.cs (5)
554/// <exception cref="ArgumentOutOfRangeException"> 625/// <exception cref="ArgumentOutOfRangeException"> 701/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> contains an invalid character.</exception> 723/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is out of the allowed range.</exception> 762/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
463/// <exception cref="ArgumentOutOfRangeException"> 498/// <exception cref="ArgumentOutOfRangeException"> 542/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\ThrowHelper.cs (1)
39private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(string parameterName, string message)
System\Text\Json\Writer\JsonWriterOptions.cs (4)
52/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> contains an invalid character.</exception> 70/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is out of the allowed range.</exception> 93/// <exception cref="ArgumentOutOfRangeException"> 147/// <exception cref="ArgumentOutOfRangeException">
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
26/// <exception cref="ArgumentOutOfRangeException">Invalid <paramref name="defaults"/> parameter.</exception>
System.Text.RegularExpressions (12)
System\Text\RegularExpressions\GroupCollection.cs (2)
114ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 115ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length);
System\Text\RegularExpressions\Regex.Count.cs (4)
74/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not a valid bitwise combination of RegexOptions values.</exception> 86/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not a valid bitwise combination of RegexOptions values, or <paramref name="matchTimeout"/> is negative, zero, or greater than approximately 24 days.</exception> 108/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not a valid bitwise combination of RegexOptions values.</exception> 121/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not a valid bitwise combination of RegexOptions values, or <paramref name="matchTimeout"/> is negative, zero, or greater than approximately 24 days.</exception>
System\Text\RegularExpressions\Regex.cs (1)
163/// <exception cref="ArgumentOutOfRangeException">If the specified timeout is not within a valid range.</exception>
System\Text\RegularExpressions\Regex.EnumerateMatches.cs (2)
41/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not a valid bitwise combination of RegexOptions values.</exception> 61/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not a valid bitwise combination of RegexOptions values, or <paramref name="matchTimeout"/> is negative, zero, or greater than approximately 24 days.</exception>
System\Text\RegularExpressions\Regex.Match.cs (2)
46/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not in a valid <see cref="RegexOptions"/> value.</exception> 64/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> is not in a valid <see cref="RegexOptions"/> value or <paramref name="matchTimeout"/> is negative,
System\Text\RegularExpressions\Regex.Timeout.cs (1)
90catch (ArgumentOutOfRangeException)
System.Threading (38)
System\Threading\Barrier.cs (15)
198/// <exception cref="ArgumentOutOfRangeException"> <paramref name="participantCount"/> is less than 0 211/// <exception cref="System.ArgumentOutOfRangeException"> <paramref name="participantCount"/> is less than 0 221ArgumentOutOfRangeException.ThrowIfNegative(participantCount); 222ArgumentOutOfRangeException.ThrowIfGreaterThan(participantCount, MAX_PARTICIPANTS); 296catch (ArgumentOutOfRangeException) 309/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="participantCount"/> is less than 311/// <exception cref="System.ArgumentOutOfRangeException">Adding <paramref name="participantCount"/> participants would cause the 325ArgumentOutOfRangeException.ThrowIfNegativeOrZero(participantCount); 326ArgumentOutOfRangeException.ThrowIfGreaterThan(participantCount, MAX_PARTICIPANTS); 409/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="participantCount"/> is less than 421ArgumentOutOfRangeException.ThrowIfNegativeOrZero(participantCount); 524/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/>is a negative number 553/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/>is a negative number 585/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 612/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a
System\Threading\CountdownEvent.cs (18)
46/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="initialCount"/> is less 50ArgumentOutOfRangeException.ThrowIfNegative(initialCount); 210/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="signalCount"/> is less 216ArgumentOutOfRangeException.ThrowIfNegativeOrZero(signalCount); 287/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="signalCount"/> is less than 310/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="signalCount"/> is less 320ArgumentOutOfRangeException.ThrowIfNegativeOrZero(signalCount); 375/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="count"/> is 382ArgumentOutOfRangeException.ThrowIfNegative(count); 449/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 460ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 461ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 478/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 491ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 492ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 505/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 528/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 539ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
System\Threading\ReaderWriterLock.cs (5)
80ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 282ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 668ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 1111ArgumentOutOfRangeException.ThrowIfLessThan(timeoutMilliseconds, -1, nameof(timeout)); 1112ArgumentOutOfRangeException.ThrowIfGreaterThan(timeoutMilliseconds, int.MaxValue, nameof(timeout));
System.Threading.RateLimiting (4)
System\Threading\RateLimiting\PartitionedRateLimiter.T.cs (2)
29/// <exception cref="ArgumentOutOfRangeException"></exception> 58/// <exception cref="ArgumentOutOfRangeException"></exception>
System\Threading\RateLimiting\RateLimiter.cs (2)
36/// <exception cref="ArgumentOutOfRangeException"></exception> 63/// <exception cref="ArgumentOutOfRangeException"></exception>
System.Threading.Tasks.Dataflow (12)
Base\DataflowBlock.cs (4)
845/// <exception cref="System.ArgumentOutOfRangeException"> 866/// <exception cref="System.ArgumentOutOfRangeException"> 922/// <exception cref="System.ArgumentOutOfRangeException"> 945/// <exception cref="System.ArgumentOutOfRangeException">
Blocks\BatchBlock.cs (4)
35/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception> 43/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception> 44/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be no greater than the value of the BoundedCapacity option if a non-default value has been set.</exception> 305/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception>
Blocks\BatchedJoinBlock.cs (4)
44/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception> 52/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception> 292/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception> 300/// <exception cref="System.ArgumentOutOfRangeException">The <paramref name="batchSize"/> must be positive.</exception>
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\Parallel.cs (3)
76/// <exception cref="System.ArgumentOutOfRangeException"> 85ArgumentOutOfRangeException.ThrowIfZero(value, nameof(MaxDegreeOfParallelism)); 86ArgumentOutOfRangeException.ThrowIfLessThan(value, -1, nameof(MaxDegreeOfParallelism));
System.Transactions.Local (3)
System\Transactions\TransactionManager.cs (2)
376ArgumentOutOfRangeException.ThrowIfLessThan(value, TimeSpan.Zero); 535ArgumentOutOfRangeException.ThrowIfLessThan(transactionTimeout, TimeSpan.Zero);
System\Transactions\TransactionScope.cs (1)
1125ArgumentOutOfRangeException.ThrowIfLessThan(scopeTimeout, TimeSpan.Zero, paramName);
System.Web.HttpUtility (4)
System\Web\Util\HttpEncoder.cs (4)
619ArgumentOutOfRangeException.ThrowIfNegative(offset); 620ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, bytes.Length); 622ArgumentOutOfRangeException.ThrowIfNegative(count); 623ArgumentOutOfRangeException.ThrowIfGreaterThan(count, bytes.Length - offset);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
134ArgumentOutOfRangeException.ThrowIfNegative(index); 135ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count);
System.Windows.Input.Manipulations (11)
System\Windows\Input\Manipulations\Exceptions.cs (1)
194private static ArgumentOutOfRangeException ArgumentOutOfRange(
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (2)
282/// <exception cref="System.ArgumentOutOfRangeException">The timestamp parameter 298/// <exception cref="System.ArgumentOutOfRangeException">The timestamp parameter
System\Windows\Input\Manipulations\Manipulation2DStartedEventArgs.cs (1)
38/// <exception cref="ArgumentOutOfRangeException">Thrown when either originX or
System\Windows\Input\Manipulations\ManipulationProcessor2D.cs (5)
92/// <exception cref="ArgumentOutOfRangeException">The <em>supportedManipulations</em> parameter is 108/// <exception cref="ArgumentOutOfRangeException">The <em>supportedManipulations</em> parameter is 184/// <exception cref="ArgumentOutOfRangeException">The property tries to set a value 250/// <exception cref="ArgumentOutOfRangeException"> 295/// <exception cref="ArgumentOutOfRangeException">The timestamp is less than the
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
139/// <exception cref="ArgumentOutOfRangeException">The timestamp is less than the
System\Windows\Input\Manipulations\Manipulator2D.cs (1)
84/// <exception cref="ArgumentOutOfRangeException">The x-coordinate or y-coordinate are <strong>float.NaN</strong>,
System.Xaml (11)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (11)
313ArgumentOutOfRangeException.ThrowIfNotEqual(index, 0); 366ArgumentOutOfRangeException.ThrowIfNegative(value); 367ArgumentOutOfRangeException.ThrowIfGreaterThan(value, SIZE); 688ArgumentOutOfRangeException.ThrowIfNegative(value); 689ArgumentOutOfRangeException.ThrowIfGreaterThan(value, SIZE); 1247ArgumentOutOfRangeException.ThrowIfNegative(value); 1248ArgumentOutOfRangeException.ThrowIfGreaterThan(value, SIZE); 1497ArgumentOutOfRangeException.ThrowIfNegative(value); 1498ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _entries.Length); 1844ArgumentOutOfRangeException.ThrowIfNegative(index); 2219ArgumentOutOfRangeException.ThrowIfNegative(index);
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
405ArgumentOutOfRangeException.ThrowIfNegative(milliseconds);
System\Windows\Automation\Text\TextRange.cs (1)
293ArgumentOutOfRangeException.ThrowIfLessThan(maxLength, -1);
UIAutomationClientSideProviders (18)
MS\Internal\AutomationProxies\WindowsButton.cs (1)
98ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
72ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsContainer.cs (1)
64ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
86ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (1)
52ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsIPAddress.cs (1)
57ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsNonControl.cs (1)
48ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsProgressbar.cs (1)
51ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
53ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
66ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (1)
71ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
57ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsSpinner.cs (1)
57ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsStartMenu.cs (1)
44ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
64ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
58ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
58ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
58ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
WasmBuildTasks (1)
UpdateChromeVersions.cs (1)
234catch (Exception ex) when (ex is FormatException || ex is OverflowException || ex is ArgumentOutOfRangeException)