785 references to 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));
illink (4)
InMemory.FunctionalTests (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
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.Components (2)
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));
Microsoft.AspNetCore.Components.Server (8)
BlazorPack\Requires.cs (1)
28throw new ArgumentOutOfRangeException(paramName);
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 (1)
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.Cryptography.KeyDerivation (2)
KeyDerivation.cs (1)
36throw new ArgumentOutOfRangeException(nameof(prf));
PBKDF2\NetCorePbkdf2Provider.cs (1)
37throw new ArgumentOutOfRangeException(nameof(prf));
Microsoft.AspNetCore.DataProtection (6)
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)));
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 (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
299throw new ArgumentOutOfRangeException(nameof(arrayIndex));
Microsoft.AspNetCore.Http.Abstractions (21)
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))
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 (1)
Internal\ConnectionLogScope.cs (1)
37throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
219private static Exception CreateArgumentOutOfRangeException(string argumentName) { return new ArgumentOutOfRangeException(argumentName); }
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.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 (14)
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));
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.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.Owin (1)
WebSockets\WebSocketAdapter.cs (1)
115throw new ArgumentOutOfRangeException(nameof(buffer));
Microsoft.AspNetCore.Rewrite (3)
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 (2)
Constraints\HttpMethodRouteConstraint.cs (1)
73throw new ArgumentOutOfRangeException(nameof(routeDirection));
Matching\CandidateSet.cs (1)
359throw new ArgumentOutOfRangeException("index");
Microsoft.AspNetCore.Server.HttpSys (4)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
TimeoutManager.cs (2)
159throw new ArgumentOutOfRangeException(nameof(value)); 186throw new ArgumentOutOfRangeException(nameof(value));
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\ConnectionLogScope.cs (1)
29throw new ArgumentOutOfRangeException(nameof(index));
Internal\Http\HttpHeaders.cs (1)
681throw new ArgumentOutOfRangeException(CoreStrings.FormatInvalidContentLength_InvalidNumber(value));
Internal\Http\HttpProtocol.cs (1)
1459throw new ArgumentOutOfRangeException(nameof(bytes));
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\ThrowHelper.cs (1)
19return new ArgumentOutOfRangeException(GetArgumentName(argument));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (2)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length));
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
299throw new ArgumentOutOfRangeException(nameof(arrayIndex));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
145throw new ArgumentOutOfRangeException(nameof(index));
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.WebUtilities (2)
HttpRequestStreamReader.cs (2)
160throw new ArgumentOutOfRangeException(nameof(count)); 221throw new ArgumentOutOfRangeException(nameof(count));
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
MultipartReaderBenchmark.cs (1)
88throw new ArgumentOutOfRangeException(nameof(SectionCount));
Microsoft.Build (11)
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);
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (1)
149throw new ArgumentOutOfRangeException(nameof(count));
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
256throw new ArgumentOutOfRangeException(nameof(stream));
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 (2)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
148throw new ArgumentOutOfRangeException(nameof(index));
Evaluation\Expander_Tests.cs (1)
3955_ => throw new ArgumentOutOfRangeException(nameof(hashType))
Microsoft.Build.Framework (4)
SegmentedArray.cs (2)
32throw new ArgumentOutOfRangeException(nameof(length)); 52throw new ArgumentOutOfRangeException(nameof(length));
SegmentedArray`1.cs (1)
73throw new ArgumentOutOfRangeException(nameof(length));
ThrowHelper.cs (1)
153throw new ArgumentOutOfRangeException(GetArgumentName(argument));
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 (3)
Comparers\ApiComparer.cs (1)
118throw new ArgumentOutOfRangeException("kind");
Extensions\CustomAttributeProvider.cs (1)
85throw new ArgumentOutOfRangeException(nameof(typeCode));
Mappings\ElementMapping.cs (1)
50throw new ArgumentOutOfRangeException("index");
Microsoft.DotNet.AsmDiff (7)
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");
DiffEngine.cs (2)
74throw new ArgumentOutOfRangeException("format"); 93throw new ArgumentOutOfRangeException("format");
DiffRecorder.cs (1)
161throw new ArgumentOutOfRangeException("style");
Microsoft.DotNet.Build.Tasks.Workloads (1)
Swix\MsiSwixProject.wix.cs (1)
78throw new ArgumentOutOfRangeException(Strings.ChipOrMachineArchRequired);
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.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.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
751throw new ArgumentOutOfRangeException(nameof(index));
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.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 (3)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
24throw new ArgumentOutOfRangeException(nameof(direction));
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 (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
214throw new ArgumentOutOfRangeException("index");
Microsoft.Net.Http.Headers (12)
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 (1)
33throw new ArgumentOutOfRangeException(nameof(value));
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))
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 (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
465throw new ArgumentOutOfRangeException(nameof(i));
PresentationCore (26)
MS\Internal\Ink\StylusShape.cs (4)
51throw new ArgumentOutOfRangeException("width"); 56throw new ArgumentOutOfRangeException("height"); 61throw new ArgumentOutOfRangeException("rotation"); 66throw new ArgumentOutOfRangeException("tip");
System\Windows\DataObjectEventArgs.cs (1)
55throw new ArgumentOutOfRangeException("routedEvent");
System\Windows\Ink\Stroke2.cs (2)
220throw new System.ArgumentOutOfRangeException("percentageWithinBounds"); 272throw new System.ArgumentOutOfRangeException("percentageWithinLasso");
System\Windows\Ink\StrokeCollection2.cs (3)
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\InterOp\D3DImage.cs (2)
148throw new ArgumentOutOfRangeException("backBufferType"); 250throw new ArgumentOutOfRangeException("timeout");
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\FormattedText.cs (1)
312throw new ArgumentOutOfRangeException("count");
System\Windows\Media\GlyphRun.cs (3)
511throw new ArgumentOutOfRangeException("characterHit"); 737throw new ArgumentOutOfRangeException("characterHit"); 784throw new ArgumentOutOfRangeException("characterHit");
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
248throw new ArgumentOutOfRangeException("timeout");
PresentationFramework (85)
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 (1)
763throw new ArgumentOutOfRangeException(SR.TableCollectionNotEnoughCapacity);
MS\Internal\Documents\DocumentGrid.cs (8)
435throw new ArgumentOutOfRangeException("scale"); 602throw new ArgumentOutOfRangeException("offset"); 645throw new ArgumentOutOfRangeException("offset"); 811throw new ArgumentOutOfRangeException("value"); 833throw new ArgumentOutOfRangeException("value"); 2149throw new ArgumentOutOfRangeException("offset"); 2169throw new ArgumentOutOfRangeException("offset"); 2977throw new ArgumentOutOfRangeException("args");
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\IO\Packaging\ManagedIStream.cs (1)
83throw new ArgumentOutOfRangeException("origin");
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
103throw new ArgumentOutOfRangeException(nameof(index));
System\Windows\Automation\Peers\GridSplitterAutomationPeer.cs (2)
55throw new ArgumentOutOfRangeException("x"); 58throw new ArgumentOutOfRangeException("y");
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\DocumentViewer.cs (2)
145throw new ArgumentOutOfRangeException("pagesAcross"); 1055throw new ArgumentOutOfRangeException("pagesAcross");
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
287throw new ArgumentOutOfRangeException("offset"); 304throw new ArgumentOutOfRangeException("offset");
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\Data\RelativeSource.cs (1)
220throw new ArgumentOutOfRangeException(SR.RelativeSourceInvalidAncestorLevel);
System\Windows\FigureLength.cs (1)
113throw new ArgumentOutOfRangeException(SR.Format(SR.InvalidCtorParameterNoNegative, "value"));
System\Windows\Interop\DynamicScriptObject.cs (2)
140throw new ArgumentOutOfRangeException("indexes"); 168throw new ArgumentOutOfRangeException("indexes");
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
350throw new ArgumentOutOfRangeException("assemblyId"); 374throw new ArgumentOutOfRangeException("typeId"); 399throw new ArgumentOutOfRangeException("propertyId");
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 (43)
PrintConfig\DocumentNUp.cs (1)
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\PageDeviceFont.cs (1)
259throw new ArgumentOutOfRangeException("value");
PrintConfig\PageMediaSize.cs (1)
562throw new ArgumentOutOfRangeException("value");
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 (1)
412throw new ArgumentOutOfRangeException("value");
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 (18)
366throw 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"); 865throw new ArgumentOutOfRangeException("value"); 909throw new ArgumentOutOfRangeException("value"); 953throw new ArgumentOutOfRangeException("value"); 1037throw new ArgumentOutOfRangeException("value"); 1045throw 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 (3)
System\Collections\Generic\SortedSet.TreeSubSet.cs (3)
56throw new ArgumentOutOfRangeException(nameof(item)); 346throw new ArgumentOutOfRangeException(nameof(lowerValue)); 350throw new ArgumentOutOfRangeException(nameof(upperValue));
System.Collections.Concurrent (1)
System\Collections\Concurrent\PartitionerStatic.cs (1)
170throw new ArgumentOutOfRangeException(nameof(partitionerOptions));
System.Collections.Immutable (1)
Validation\Requires.cs (1)
101throw new ArgumentOutOfRangeException(parameterName);
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.Data.Common (2)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
81ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName);
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 (1)
System\Diagnostics\TraceListener.cs (1)
155throw new ArgumentOutOfRangeException(nameof(value));
System.Formats.Asn1 (9)
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 (1)
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.cs (1)
45throw new ArgumentOutOfRangeException(nameof(ruleSet));
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 (5)
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 (2)
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.ZipFile (2)
System\IO\Compression\ZipFile.Create.cs (2)
173throw new ArgumentOutOfRangeException(nameof(mode)); 459throw new ArgumentOutOfRangeException(nameof(compressionLevel));
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
37throw new ArgumentOutOfRangeException(nameof(hashLengthInBytes));
System.IO.MemoryMappedFiles (13)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (13)
67throw new ArgumentOutOfRangeException(nameof(inheritability)); 72throw new ArgumentOutOfRangeException(nameof(desiredAccessRights)); 223throw new ArgumentOutOfRangeException(nameof(inheritability)); 252throw new ArgumentOutOfRangeException(nameof(inheritability)); 303throw new ArgumentOutOfRangeException(nameof(access)); 313throw new ArgumentOutOfRangeException(nameof(options)); 318throw new ArgumentOutOfRangeException(nameof(inheritability)); 360throw new ArgumentOutOfRangeException(nameof(access)); 365throw new ArgumentOutOfRangeException(nameof(options)); 370throw new ArgumentOutOfRangeException(nameof(inheritability)); 408throw new ArgumentOutOfRangeException(nameof(access)); 442throw new ArgumentOutOfRangeException(nameof(access)); 530throw new ArgumentOutOfRangeException(nameof(access));
System.IO.Pipelines (4)
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.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 (3)
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.Net.Http (12)
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\HttpClientHandler.cs (1)
275throw new ArgumentOutOfRangeException(nameof(value));
System\Net\Http\MultipartContent.cs (1)
620throw new ArgumentOutOfRangeException(nameof(origin));
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (5)
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));
System.Net.HttpListener (2)
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.Mail (1)
System\Net\Mail\MailMessage.cs (1)
161throw new ArgumentOutOfRangeException(nameof(value));
System.Net.Primitives (5)
System\Net\Cache\RequestCachePolicy.cs (1)
17throw new ArgumentOutOfRangeException(nameof(level));
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 (2)
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (2)
389throw new ArgumentOutOfRangeException(nameof(destination)); 405throw new ArgumentOutOfRangeException(nameof(source));
System.Net.Requests (3)
System\Net\Cache\HttpRequestCachePolicy.cs (1)
119throw new ArgumentOutOfRangeException(nameof(level));
System\Net\FileWebRequest.cs (1)
33throw new ArgumentOutOfRangeException(nameof(uri));
System\Net\FtpWebRequest.cs (1)
487throw new ArgumentOutOfRangeException(nameof(uri));
System.Net.Sockets (18)
src\libraries\Common\src\System\Net\RangeValidationHelpers.cs (1)
24throw new ArgumentOutOfRangeException(nameof(segment));
System\Net\Sockets\Socket.cs (3)
848throw new ArgumentOutOfRangeException(nameof(port)); 871throw new ArgumentOutOfRangeException(nameof(port)); 904throw new ArgumentOutOfRangeException(nameof(port));
System\Net\Sockets\Socket.Tasks.cs (3)
174throw new ArgumentOutOfRangeException(nameof(port)); 826throw new ArgumentOutOfRangeException(nameof(buffer.Offset)); 830throw new ArgumentOutOfRangeException(nameof(buffer.Count));
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.WebSockets (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\WebSockets\ValueWebSocketReceiveResult.cs (2)
35private static void ThrowCountOutOfRange() => throw new ArgumentOutOfRangeException("count"); 36private static void ThrowMessageTypeOutOfRange() => throw new ArgumentOutOfRangeException("messageType");
System.Net.WebSockets.Client (2)
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.Numerics.Tensors (2)
System\NRange.cs (1)
121private static void ThrowArgumentOutOfRangeException() => throw new ArgumentOutOfRangeException("length");
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
130throw new ArgumentOutOfRangeException(nameof(digits));
System.Private.CoreLib (77)
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\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\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\UnmanagedMemoryAccessor.cs (1)
52throw new ArgumentOutOfRangeException(nameof(access));
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
92throw new ArgumentOutOfRangeException(nameof(access));
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\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\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\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\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 (1)
537new ArgumentOutOfRangeException(nameof(options)) :
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (1)
3032throw new ArgumentOutOfRangeException(nameof(continuationOptions));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
377throw new ArgumentOutOfRangeException(GetArgumentName(argument));
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
647throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_ParamSequence);
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Emitter.cs (1)
94throw new ArgumentOutOfRangeException(nameof(name));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
197throw XmlObjectSerializer.CreateSerializationException(SR.JsonDateTimeOutOfRange, new ArgumentOutOfRangeException(nameof(value)));
System.Private.Uri (10)
System\Uri.cs (3)
399throw new ArgumentOutOfRangeException(nameof(baseUri)); 441throw new ArgumentOutOfRangeException(nameof(baseUri)); 545throw new ArgumentOutOfRangeException(nameof(baseUri));
System\UriExt.cs (3)
349throw new ArgumentOutOfRangeException(nameof(format)); 897throw new ArgumentOutOfRangeException(nameof(format)); 963throw new ArgumentOutOfRangeException(nameof(uriFormat));
System\UriScheme.cs (4)
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 (26)
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 (4)
105_ => throw new ArgumentOutOfRangeException(nameof(tableIndex)), 186_ => throw new ArgumentOutOfRangeException(nameof(tableIndex)), 235_ => throw new ArgumentOutOfRangeException(nameof(heapIndex)), 401throw new ArgumentOutOfRangeException(nameof(rawTypeKind));
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 (4)
131throw new ArgumentOutOfRangeException(parameterName); 149throw new ArgumentOutOfRangeException("index"); 155throw new ArgumentOutOfRangeException("tableIndex"); 161throw new ArgumentOutOfRangeException("value");
System.Security.Cryptography (4)
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
160throw new ArgumentOutOfRangeException(nameof(signatureFormat));
System\Security\Cryptography\DSA.cs (1)
1116throw new ArgumentOutOfRangeException(nameof(signatureFormat));
System\Security\Cryptography\ECDsa.cs (1)
1273throw new ArgumentOutOfRangeException(nameof(signatureFormat));
System\Security\Cryptography\HKDF.cs (1)
307throw new ArgumentOutOfRangeException(nameof(hashAlgorithmName));
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 (10)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
39throw new ArgumentOutOfRangeException(nameof(defaults));
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 (3)
173throw new ArgumentOutOfRangeException(nameof(defaults)); 447throw new ArgumentOutOfRangeException(nameof(value)); 473throw new ArgumentOutOfRangeException(nameof(value));
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.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 (2)
System\Text\RegularExpressions\Regex.Timeout.cs (1)
92throw new ArgumentOutOfRangeException(SR.Format(SR.IllegalDefaultRegexMatchTimeoutInAppDomain, DefaultMatchTimeout_ConfigKeyName, defaultMatchTimeOut));
System\Text\RegularExpressions\ThrowHelper.cs (1)
16throw new ArgumentOutOfRangeException(GetStringForExceptionArgument(arg));
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 (4)
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.Tasks.Dataflow (5)
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));
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.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));