3199 instantiations of ArgumentOutOfRangeException
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
201throw new ArgumentOutOfRangeException(paramName, value, exMessage);
Aspire.Dashboard (5)
Components\Controls\Chart\ChartBase.cs (1)
348throw new ArgumentOutOfRangeException(nameof(percentile), percentile, "Percentile must be between 0 and 100.");
Model\Otlp\TelemetryFilter.cs (4)
54_ => throw new ArgumentOutOfRangeException(nameof(c), c, null) 68_ => throw new ArgumentOutOfRangeException(nameof(c), c, null) 82_ => throw new ArgumentOutOfRangeException(nameof(c), c, null) 96_ => throw new ArgumentOutOfRangeException(nameof(c), c, null)
Aspire.EndToEnd.Tests (3)
tests\Shared\WorkloadTesting\BuildEnvironment.cs (3)
66_ => throw new ArgumentOutOfRangeException(nameof(DefaultTargetFramework)) 271_ => throw new ArgumentOutOfRangeException(nameof(EnvironmentVariables.DefaultTFMForTesting), EnvironmentVariables.DefaultTFMForTesting, "Invalid value") 289_ => throw new ArgumentOutOfRangeException(nameof(tfm))
Aspire.Hosting (5)
ContainerResourceBuilderExtensions.cs (2)
179throw new ArgumentOutOfRangeException(nameof(tag), "Tag conflicts with digest provided on the 'image' parameter"); 202throw new ArgumentOutOfRangeException(nameof(image), parsedReference.Digest, "invalid digest format");
DistributedApplicationResourceBuilder.cs (1)
22throw new ArgumentOutOfRangeException(nameof(behavior), behavior, "ResourceAnnotationMutationBehavior must be either Append or Replace.");
Utils\ContainerReferenceParser.cs (2)
16throw new ArgumentOutOfRangeException(nameof(input), "repository name must have at least one component"); 23throw new ArgumentOutOfRangeException(nameof(input), input, "invalid reference format: could not parse container image name");
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
205throw new ArgumentOutOfRangeException(nameof(count), count, "Count must be between 1 and 250.");
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
27_ => throw new ArgumentOutOfRangeException(nameof(operation))
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
199throw new ArgumentOutOfRangeException(paramName, value, exMessage);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
199throw new ArgumentOutOfRangeException(paramName, value, exMessage);
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
69_ => throw new ArgumentOutOfRangeException(nameof(level), level, null),
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
207throw new ArgumentOutOfRangeException(paramName, value, exMessage);
Aspire.Workload.Tests (7)
NewUpAndBuildStandaloneTemplateTests.cs (2)
23_ => throw new ArgumentOutOfRangeException(nameof(sdk)) 31_ => throw new ArgumentOutOfRangeException(nameof(templates))
NewUpAndBuildSupportProjectTemplatesTests.cs (2)
27_ => throw new ArgumentOutOfRangeException(nameof(sdk)) 35_ => throw new ArgumentOutOfRangeException(nameof(templates))
tests\Shared\WorkloadTesting\BuildEnvironment.cs (3)
66_ => throw new ArgumentOutOfRangeException(nameof(DefaultTargetFramework)) 271_ => throw new ArgumentOutOfRangeException(nameof(EnvironmentVariables.DefaultTFMForTesting), EnvironmentVariables.DefaultTFMForTesting, "Invalid value") 289_ => throw new ArgumentOutOfRangeException(nameof(tfm))
CodeGenerator (2)
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (2)
59throw new ArgumentOutOfRangeException(nameof(bitsIndexStart)); 64throw new ArgumentOutOfRangeException(nameof(bitsCount));
csc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
181throw new ArgumentOutOfRangeException($"Request is over {MaximumRequestSize >> 20}MB in length");
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)}'.")
dotnet-svcutil-lib (503)
FrameworkFork\Microsoft.Xml\Xml\Base64Decoder.cs (6)
58throw new ArgumentOutOfRangeException("len"); 62throw new ArgumentOutOfRangeException("startPos"); 66throw new ArgumentOutOfRangeException("len"); 93throw new ArgumentOutOfRangeException("len"); 97throw new ArgumentOutOfRangeException("startPos"); 101throw new ArgumentOutOfRangeException("len");
FrameworkFork\Microsoft.Xml\Xml\Base64Encoder.cs (3)
38throw new ArgumentOutOfRangeException("index"); 42throw new ArgumentOutOfRangeException("count"); 46throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
715throw new ArgumentOutOfRangeException("i"); 771throw new ArgumentOutOfRangeException("i");
FrameworkFork\Microsoft.Xml\Xml\BinHexDecoder.cs (6)
51throw new ArgumentOutOfRangeException("len"); 55throw new ArgumentOutOfRangeException("startPos"); 59throw new ArgumentOutOfRangeException("len"); 87throw new ArgumentOutOfRangeException("len"); 91throw new ArgumentOutOfRangeException("startPos"); 95throw new ArgumentOutOfRangeException("len");
FrameworkFork\Microsoft.Xml\Xml\BinHexEncoder.cs (6)
23throw new ArgumentOutOfRangeException("index"); 27throw new ArgumentOutOfRangeException("count"); 31throw new ArgumentOutOfRangeException("count"); 54throw new ArgumentOutOfRangeException("offsetIn"); 58throw new ArgumentOutOfRangeException("count"); 62throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\BufferBuilder.cs (7)
119throw new ArgumentOutOfRangeException("value"); 189throw new ArgumentOutOfRangeException("start"); 193throw new ArgumentOutOfRangeException("count"); 244throw new ArgumentOutOfRangeException("start"); 248throw new ArgumentOutOfRangeException("count"); 367throw new ArgumentOutOfRangeException("startIndex"); 371throw new ArgumentOutOfRangeException("len");
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelper.cs (12)
76throw new ArgumentOutOfRangeException("count"); 80throw new ArgumentOutOfRangeException("index"); 84throw new ArgumentOutOfRangeException("count"); 132throw new ArgumentOutOfRangeException("count"); 136throw new ArgumentOutOfRangeException("index"); 140throw new ArgumentOutOfRangeException("count"); 188throw new ArgumentOutOfRangeException("count"); 192throw new ArgumentOutOfRangeException("index"); 196throw new ArgumentOutOfRangeException("count"); 244throw new ArgumentOutOfRangeException("count"); 248throw new ArgumentOutOfRangeException("index"); 252throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\ReadContentAsBinaryHelperAsync.cs (12)
26throw new ArgumentOutOfRangeException("count"); 30throw new ArgumentOutOfRangeException("index"); 34throw new ArgumentOutOfRangeException("count"); 82throw new ArgumentOutOfRangeException("count"); 86throw new ArgumentOutOfRangeException("index"); 90throw new ArgumentOutOfRangeException("count"); 138throw new ArgumentOutOfRangeException("count"); 142throw new ArgumentOutOfRangeException("index"); 146throw new ArgumentOutOfRangeException("count"); 194throw new ArgumentOutOfRangeException("count"); 198throw new ArgumentOutOfRangeException("index"); 202throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (6)
500throw new ArgumentOutOfRangeException("count"); 504throw new ArgumentOutOfRangeException("index"); 508throw new ArgumentOutOfRangeException("count"); 561throw new ArgumentOutOfRangeException("count"); 565throw new ArgumentOutOfRangeException("index"); 569throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (6)
316throw new ArgumentOutOfRangeException("count"); 320throw new ArgumentOutOfRangeException("index"); 324throw new ArgumentOutOfRangeException("count"); 377throw new ArgumentOutOfRangeException("count"); 381throw new ArgumentOutOfRangeException("index"); 385throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (3)
293throw new ArgumentOutOfRangeException("index"); 297throw new ArgumentOutOfRangeException("count"); 301throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (1)
656throw new ArgumentOutOfRangeException("i");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (6)
188throw new ArgumentOutOfRangeException("value"); 218throw new ArgumentOutOfRangeException("value"); 235throw new ArgumentOutOfRangeException("value"); 307throw new ArgumentOutOfRangeException("value"); 338throw new ArgumentOutOfRangeException("value"); 358throw new ArgumentOutOfRangeException("value");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (7)
291throw new ArgumentOutOfRangeException("i"); 304throw new ArgumentOutOfRangeException("i"); 358throw new ArgumentOutOfRangeException("i"); 373throw new ArgumentOutOfRangeException("i"); 1569throw new ArgumentOutOfRangeException("count"); 1573throw new ArgumentOutOfRangeException("index"); 1577throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextEncoder.cs (6)
128throw new ArgumentOutOfRangeException("offset"); 133throw new ArgumentOutOfRangeException("count"); 138throw new ArgumentOutOfRangeException("count"); 491throw new ArgumentOutOfRangeException("count"); 496throw new ArgumentOutOfRangeException("offset"); 501throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (20)
1078throw new ArgumentOutOfRangeException("i"); 1140throw new ArgumentOutOfRangeException("i"); 1608throw new ArgumentOutOfRangeException("count"); 1612throw new ArgumentOutOfRangeException("index"); 1616throw new ArgumentOutOfRangeException("count"); 1668throw new ArgumentOutOfRangeException("count"); 1672throw new ArgumentOutOfRangeException("index"); 1676throw new ArgumentOutOfRangeException("count"); 1727throw new ArgumentOutOfRangeException("count"); 1731throw new ArgumentOutOfRangeException("index"); 1735throw new ArgumentOutOfRangeException("count"); 1787throw new ArgumentOutOfRangeException("count"); 1791throw new ArgumentOutOfRangeException("index"); 1795throw new ArgumentOutOfRangeException("count"); 1860throw new ArgumentOutOfRangeException("count"); 1864throw new ArgumentOutOfRangeException("index"); 1868throw new ArgumentOutOfRangeException("count"); 2137throw new ArgumentOutOfRangeException("value"); 8287throw new ArgumentOutOfRangeException((_incReadDecoder is IncrementalReadCharsDecoder) ? "count" : "len"); 8291throw new ArgumentOutOfRangeException((_incReadDecoder is IncrementalReadCharsDecoder) ? "index" : "offset");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (9)
1114throw new ArgumentOutOfRangeException("index"); 1118throw new ArgumentOutOfRangeException("count"); 1122throw new ArgumentOutOfRangeException("count"); 1152throw new ArgumentOutOfRangeException("index"); 1156throw new ArgumentOutOfRangeException("count"); 1160throw new ArgumentOutOfRangeException("count"); 1216throw new ArgumentOutOfRangeException("index"); 1220throw new ArgumentOutOfRangeException("count"); 1224throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (3)
134throw new ArgumentOutOfRangeException("value"); 235throw new ArgumentOutOfRangeException("value"); 267throw new ArgumentOutOfRangeException("value");
FrameworkFork\Microsoft.Xml\Xml\Core\XsdCachingReader.cs (2)
286throw new ArgumentOutOfRangeException("i"); 368throw new ArgumentOutOfRangeException("i");
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (1)
1233throw new ArgumentOutOfRangeException("i");
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (6)
43throw new ArgumentOutOfRangeException("index"); 50throw new ArgumentOutOfRangeException("index"); 91throw new ArgumentOutOfRangeException("index"); 101throw new ArgumentOutOfRangeException("index"); 111throw new ArgumentOutOfRangeException("index"); 139throw new ArgumentOutOfRangeException("index");
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (5)
366throw new ArgumentOutOfRangeException("attributeIndex"); 558throw new ArgumentOutOfRangeException("attributeIndex"); //for other senario, AttributeCount is 0, i has to be out of range 1368throw new ArgumentOutOfRangeException("attributeIndex"); 1419throw new ArgumentOutOfRangeException("attributeIndex"); 1432throw new ArgumentOutOfRangeException("attributeIndex");
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlText.cs (1)
110throw new ArgumentOutOfRangeException("offset");
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (3)
311throw new ArgumentOutOfRangeException("count"); 315throw new ArgumentOutOfRangeException("offset"); 319throw new ArgumentOutOfRangeException("count");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (3)
268throw new ArgumentOutOfRangeException("index"); 284throw new ArgumentOutOfRangeException("index"); 292throw new ArgumentOutOfRangeException("index");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
221throw new ArgumentOutOfRangeException("arrayIndex"); 276throw new ArgumentOutOfRangeException("arrayIndex");
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (1)
804throw new ArgumentOutOfRangeException("index");
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (7)
50if (years < 0) throw new ArgumentOutOfRangeException("years"); 51if (months < 0) throw new ArgumentOutOfRangeException("months"); 52if (days < 0) throw new ArgumentOutOfRangeException("days"); 53if (hours < 0) throw new ArgumentOutOfRangeException("hours"); 54if (minutes < 0) throw new ArgumentOutOfRangeException("minutes"); 55if (seconds < 0) throw new ArgumentOutOfRangeException("seconds"); 56if (nanoseconds < 0 || nanoseconds > 999999999) throw new ArgumentOutOfRangeException("nanoseconds");
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (1)
559throw new ArgumentOutOfRangeException("index");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (1)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxItemsInObjectGraph", string.Format(SRSerialization.ValueMustBeNonNegative)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (2)
52throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("i", string.Format(SRSerialization.XmlElementAttributes))); 152throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("i", string.Format(SRSerialization.XmlElementAttributes)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (30)
40throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 68throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.ValueMustBeNonNegative))); 70throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 72throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 74throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - index))); 128throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 133throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 140throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 142throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 211throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 213throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 218throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 223throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 225throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 285throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2))); 304throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 306throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 308throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 310throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 316throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 318throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 398throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 400throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 402throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeNonNegative))); 404throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 410throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.ValueMustBeNonNegative))); 412throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (14)
38throw new ArgumentOutOfRangeException("charCount", SRSerialization.ValueMustBeNonNegative); 55throw new ArgumentOutOfRangeException("charIndex", SRSerialization.ValueMustBeNonNegative); 57throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)); 59throw new ArgumentOutOfRangeException("charCount", SRSerialization.ValueMustBeNonNegative); 61throw new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 65throw new ArgumentOutOfRangeException("byteIndex", SRSerialization.ValueMustBeNonNegative); 67throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 111throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeInRange, 0, int.MaxValue / 2)); 126throw new ArgumentOutOfRangeException("byteIndex", SRSerialization.ValueMustBeNonNegative); 128throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 130throw new ArgumentOutOfRangeException("byteCount", SRSerialization.ValueMustBeNonNegative); 132throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 137throw new ArgumentOutOfRangeException("charIndex", SRSerialization.ValueMustBeNonNegative); 139throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length));
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (12)
89throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 91throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, guid.Length))); 129throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 131throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 133throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 273throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 275throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("chars", string.Format(SRSerialization.XmlArrayTooSmallOutput, count))); 360throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 362throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 365throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("buffer", string.Format(SRSerialization.XmlArrayTooSmallOutput, guidLength)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (15)
524throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.XmlElementAttributes))); 526throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.ValueMustBeNonNegative))); 528throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, _attributeCount))); 1148throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1150throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 1152throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1154throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1178throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1180throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1182throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1184throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1338throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1340throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1342throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1344throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (9)
1004throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1007throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1009throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1061throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1064throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1066throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1431throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1434throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1436throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (8)
40throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 42throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 44throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 46throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1210throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1212throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1214throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (1)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(string.Format(SRSerialization.XmlInvalidID)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (4)
1272throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 1274throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1276throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 1278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (4)
896throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 898throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 900throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 902throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryString.cs (1)
32throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("key", string.Format(SRSerialization.ValueMustBeInRange, MinKey, MaxKey)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (4)
408throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 410throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 412throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 414throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (4)
567throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.ValueMustBeNonNegative))); 569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 571throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.ValueMustBeNonNegative))); 573throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (1)
193return TraceException<ArgumentOutOfRangeException>(new ArgumentOutOfRangeException(paramName, actualValue, message));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
275throw new ArgumentOutOfRangeException("Invalid millisecondsTimeout value " + millisecondsTimeout);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenImpersonationLevel",
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (2)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("identificationData", SRServiceModel.LengthMustBeGreaterThanZero)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenImpersonationLevel",
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpMessageSecurity.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpSecurity.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsSecurity.cs (2)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("mode")); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsSecurityMode.cs (1)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("mode"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
633throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxMessageSize", maxMessageSize, 658throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageOffset", messageOffset, 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("key", key, 1042throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 1068throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefix", prefix, 1112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (3)
108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Binding.cs (8)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BodyWriter.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (2)
106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, SRServiceModel.ValueMustBePositive)); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, SRServiceModel.ValueMustBePositive));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferManager.cs (3)
19throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferPoolSize", 25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("bufferSize", bufferSize,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (2)
156new ArgumentOutOfRangeException("timeout", SRServiceModel.SFxTimeoutOutOfRange0)); 331new ArgumentOutOfRangeException("timeout", SRServiceModel.SFxTimeoutOutOfRange0));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (6)
257throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 786throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset, SRServiceModel.ValueMustBeNonNegative)); 791throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset, string.Format(SRServiceModel.OffsetExceedsBufferSize, bufferSize))); 796throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, SRServiceModel.ValueMustBePositive)); 802throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (1)
41new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ContextBindingElement.cs (2)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DirectionalAction.cs (1)
19throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (1)
19throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, SRServiceModel.ValueMustBePositive));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingEncoders.cs (3)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageFrame.Offset", 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageFrame.Offset",
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
61new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset, 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", count,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (5)
223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 310throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LocalClientSecuritySettings.cs (14)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LocalServiceSecuritySettings.cs (20)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBeNonNegative)); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBeNonNegative)); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBeNonNegative)); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
86throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (13)
55new ArgumentOutOfRangeException("maxSizeOfHeaders", maxSizeOfHeaders, 334new ArgumentOutOfRangeException("index", index, 500new ArgumentOutOfRangeException("headerIndex", headerIndex, 549new ArgumentOutOfRangeException("index", index, 862new ArgumentOutOfRangeException("index", index, 966new ArgumentOutOfRangeException("headerIndex", headerIndex, 1066new ArgumentOutOfRangeException("headerIndex", index, 1138new ArgumentOutOfRangeException("initialSize", initialSize, 1235new ArgumentOutOfRangeException("headerIndex", headerIndex, 1416new ArgumentOutOfRangeException("headerIndex", headerIndex, 1431new ArgumentOutOfRangeException("headerIndex", headerIndex, 1582new ArgumentOutOfRangeException("headerIndex", headerIndex, 1614new ArgumentOutOfRangeException("headerIndex", headerIndex,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", index,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (3)
74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBePositive)); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBePositive)); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBePositive));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\NamedPipeConnectionPoolSettings.cs (3)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OneWayBindingElement.cs (1)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBePositive));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OutputChannel.cs (2)
36new ArgumentOutOfRangeException("timeout", timeout, SRServiceModel.SFxTimeoutOutOfRange0)); 81new ArgumentOutOfRangeException("timeout", timeout, SRServiceModel.SFxTimeoutOutOfRange0));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBePositive));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ProducerConsumerStream.cs (4)
59throw new ArgumentOutOfRangeException("offset"); 63throw new ArgumentOutOfRangeException("count"); 116throw new ArgumentOutOfRangeException("offset"); 120throw new ArgumentOutOfRangeException("count");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\QueuedObjectPool.cs (1)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("batchAllocCount"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElement.cs (8)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.TimeSpanMustbeGreaterThanTimeSpanZero)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.TimeSpanMustbeGreaterThanTimeSpanZero)); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.ValueMustBePositive)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (1)
265new ArgumentOutOfRangeException("timeout", timeout, SRServiceModel.SFxTimeoutOutOfRange0));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("timeout", timeout, SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElementImporter.cs (1)
109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
325throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, message)); 329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (1)
70throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TcpConnectionPoolSettings.cs (5)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (2)
478throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxMessageSize", maxMessageSize, 481throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageOffset", messageOffset,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (2)
64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
156throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElement.cs (2)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (2)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException( 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (3)
82new ArgumentOutOfRangeException("value", SRServiceModel.SFxContractDescriptionNameCannotBeEmpty)); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\FaultDescription.cs (1)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageDescription.cs (2)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction")); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessagePartDescription.cs (1)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (3)
123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRange0)); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SRServiceModel.SFxTimeoutOutOfRangeTooBig)); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", string.Format(SRServiceModel.SFxMaximumResolvedReferencesOutOfRange, value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationDescription.cs (2)
46new ArgumentOutOfRangeException("name", SRServiceModel.SFxOperationDescriptionNameCannotBeEmpty)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpoint.cs (1)
155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (2)
245throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset, 248throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", count,
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultCode.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("name"));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultContractAttribute.cs (2)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\FederatedMessageSecurityOverHttp.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpTransportSecurity.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageBodyMemberAttribute.cs (1)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractAttribute.cs (2)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractMemberAttribute.cs (2)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageParameterAttribute.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value",
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverHttp.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverTcp.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\NamedPipeTransportSecurity.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetNamedPipeSecurity.cs (1)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpContextBinding.cs (1)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpSecurity.cs (1)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContractAttribute.cs (2)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\ReliableSession.cs (1)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\NonceCache.cs (3)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
208throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (4)
402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 419throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.TimeSpanMustbeGreaterThanTimeSpanZero)); 577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.TimeSpanMustbeGreaterThanTimeSpanZero));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityStandardsManager.cs (1)
63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageSecurityVersion", SRServiceModel.MessageSecurityVersionOutOfRange));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ArgumentOutOfRangeException("recordedExpiryTime", SRServiceModel.CreationTimeUtcIsAfterExpiryTime));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTokenAttachmentMode.cs (1)
64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("securityVersion", SRServiceModel.MessageSecurityVersionOutOfRange));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversation.cs (1)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenReferenceStyle"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (2)
306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenReferenceStyle")); 437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenReferenceStyle"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (6)
1528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("layout")); 1651throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("suite")); 1900throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("parameters")); 1962throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inclusionMode")); 2083throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("referenceStyle")); 2249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("referenceStyle"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maximumKeyDerivationOffset", SRServiceModel.ValueMustBeNonNegative)); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maximumKeyDerivationLabelLength", SRServiceModel.ValueMustBeNonNegative)); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maximumKeyDerivationNonceLength", SRServiceModel.ValueMustBeGreaterThanZero)); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("securityVersion", SRServiceModel.MessageSecurityVersionOutOfRange));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenReferenceStyle")); 688throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("keySize", SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (3)
308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", SRServiceModel.ValueMustBeGreaterThanZero)); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateIdPrefix, idPrefix[0]))); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateId, idPrefix[i])));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceContractAttribute.cs (4)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\SpnEndpointIdentity.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value.Ticks, SRServiceModel.ValueMustBeNonNegative));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (3)
85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", index, 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", index, 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", index,
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("dictionaryCreationThreshold", dictionaryCreationThreshold,
FrameworkFork\System.ServiceModel\System\ServiceModel\TcpTransportSecurity.cs (2)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpSecurity.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpBindingBase.cs (1)
83new ArgumentOutOfRangeException("value.MaxReceivedMessageSize",
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpContextBinding.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpSecurity.cs (1)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize,
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlSerializerFormatAttribute.cs (2)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
Extensibility.MessageInterceptor.IntegrationTests (1)
TimeoutHelper.cs (1)
22throw new ArgumentOutOfRangeException("timeout");
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.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
96throw new ArgumentOutOfRangeException(nameof(spanNum)); 104throw new ArgumentOutOfRangeException(nameof(spanNum));
Microsoft.Analyzers.Local.Tests (5)
Resources\RoslynTestUtils.cs (2)
96throw new ArgumentOutOfRangeException(nameof(spanNum)); 104throw new ArgumentOutOfRangeException(nameof(spanNum));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Arcade.Common (1)
CompactConsoleLoggerFormatter.cs (1)
112_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
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)
28throw new ArgumentOutOfRangeException(nameof(bitLength)); 32throw new ArgumentOutOfRangeException(nameof(data));
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\EmbeddedSyntax\EmbeddedSeparatedSyntaxNodeList.cs (1)
72throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.AsyncState (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
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)
449throw 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.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.HeaderParsing (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.AspNetCore.Hosting (4)
Internal\HostingApplicationDiagnostics.cs (1)
512throw 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)
449throw 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 (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
191throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Http.Features (1)
WebSocketAcceptContext.cs (1)
92throw 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)
191throw 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 (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
191throw 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)
78throw 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)
454throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired); 493throw 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)
259throw new ArgumentOutOfRangeException(nameof(bytes), "Can't advance past buffer size."); 269throw 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)
1461throw new ArgumentOutOfRangeException(nameof(bytes));
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
215throw new ArgumentOutOfRangeException(nameof(value), CoreStrings.NonNegativeNumberOrNullRequired);
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
405private 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)
191throw 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)
191throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
ChannelExtensions.cs (1)
41throw new ArgumentOutOfRangeException(nameof(minimumCount), "minimumCount must be greater than zero.");
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.Testing (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
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 (20)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
618throw new ArgumentOutOfRangeException();
BuildCheck\API\BuildCheckResult.cs (1)
36_ => throw new ArgumentOutOfRangeException(nameof(severity), severity, null),
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
17throw new ArgumentOutOfRangeException(nameof(severity), severity, "Severity 'Default' is not recognized by the BuildCheck reports infrastructure");
BuildCheck\Infrastructure\CheckScopeClassifier.cs (1)
56_ => throw new ArgumentOutOfRangeException(nameof(scope), scope, null),
BuildCheck\Utilities\CheckResultSeverityExtensions.cs (1)
28_ => throw new ArgumentOutOfRangeException(nameof(severity), severity, null)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.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)
473throw new ArgumentOutOfRangeException(parameterName);
Evaluation\IntrinsicFunctions.cs (1)
464_ => throw new ArgumentOutOfRangeException(nameof(algo), algo, null)
Graph\ProjectInterpretation.cs (2)
98throw new ArgumentOutOfRangeException(); 541_ => throw new ArgumentOutOfRangeException(),
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (1)
148throw new ArgumentOutOfRangeException(nameof(count));
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
261throw 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.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
767_ => throw new ArgumentOutOfRangeException(nameof(scope), scope, null),
Microsoft.Build.Engine.OM.UnitTests (1)
ErrorUtilities.cs (1)
473throw 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); 837throw new ArgumentOutOfRangeException(nameof(policy), policy, null); 886throw new ArgumentOutOfRangeException(nameof(policy), policy, null); 942throw new ArgumentOutOfRangeException(nameof(policy), policy, null);
Evaluation\Expander_Tests.cs (1)
4008_ => throw new ArgumentOutOfRangeException(nameof(hashType))
ProjectCache\ProjectCacheTests.cs (2)
190_ => throw new ArgumentOutOfRangeException() 823throw 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.CodeAnalysis (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
181throw new ArgumentOutOfRangeException($"Request is over {MaximumRequestSize >> 20}MB in length");
Microsoft.Build.Tasks.Core (3)
ErrorUtilities.cs (1)
473throw new ArgumentOutOfRangeException(parameterName);
StreamMappedString.cs (2)
159throw new ArgumentOutOfRangeException(nameof(offset)); 382throw new ArgumentOutOfRangeException(nameof(length));
Microsoft.Build.Utilities.Core (1)
ErrorUtilities.cs (1)
473throw 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)
88throw new ArgumentOutOfRangeException(nameof(typeCode));
Mappings\ElementMapping.cs (1)
50throw new ArgumentOutOfRangeException("index");
Microsoft.CodeAnalysis (112)
Collections\ImmutableMemoryStream.cs (4)
58throw new ArgumentOutOfRangeException(nameof(value)); 97throw new ArgumentOutOfRangeException(nameof(origin)); 102throw new ArgumentOutOfRangeException(nameof(offset)); 107throw new ArgumentOutOfRangeException(nameof(offset));
Compilation\Compilation.cs (1)
978throw new ArgumentOutOfRangeException(nameof(specialType), $"Unexpected SpecialType: '{(int)specialType}'.");
Compilation\SubsystemVersion.cs (1)
171throw new ArgumentOutOfRangeException(CodeAnalysisResources.OutputKindNotSupported, "outputKind");
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (1)
50throw new ArgumentOutOfRangeException(nameof(errorCode));
DiaSymReader\Writer\SymUnmanagedSequencePointsWriter.cs (2)
26throw new ArgumentOutOfRangeException(nameof(capacity)); 62throw new ArgumentOutOfRangeException(nameof(documentIndex));
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (4)
215throw new ArgumentOutOfRangeException(nameof(documentIndex)); 226throw new ArgumentOutOfRangeException(nameof(count)); 491throw new ArgumentOutOfRangeException(nameof(yieldOffsets)); 677throw new ArgumentOutOfRangeException(nameof(documentIndex));
Emit\RuntimeRudeEdit.cs (1)
34throw new ArgumentOutOfRangeException(nameof(errorCode));
Emit\SemanticEdit.cs (3)
108throw new ArgumentOutOfRangeException(nameof(kind)); 169throw new ArgumentOutOfRangeException(nameof(kind)); 186throw new ArgumentOutOfRangeException(nameof(MethodInstrumentation.Kinds), string.Format(CodeAnalysisResources.InvalidInstrumentationKind, instrumentationKind));
Hashing\NonCryptographicHashAlgorithm.cs (1)
42throw new ArgumentOutOfRangeException(nameof(hashLengthInBytes));
InternalUtilities\ConcurrentLruCache.cs (1)
37throw new ArgumentOutOfRangeException(nameof(capacity));
InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (3)
112throw new ArgumentOutOfRangeException(nameof(origin)); 117throw new ArgumentOutOfRangeException(nameof(offset)); 122throw new ArgumentOutOfRangeException(nameof(offset));
InternalUtilities\SpecializedCollections.Empty.List.cs (1)
48throw new ArgumentOutOfRangeException(nameof(index));
InternalUtilities\WeakList.cs (1)
144throw new ArgumentOutOfRangeException(nameof(index));
MetadataReference\AssemblyIdentity.cs (2)
108throw new ArgumentOutOfRangeException(nameof(contentType), CodeAnalysisResources.InvalidContentType); 124throw new ArgumentOutOfRangeException(nameof(version));
MetadataReference\MetadataReferenceProperties.cs (1)
42throw new ArgumentOutOfRangeException(nameof(kind));
MetadataReference\ModuleMetadata.cs (2)
107throw new ArgumentOutOfRangeException(CodeAnalysisResources.SizeHasToBePositive, nameof(size)); 139throw new ArgumentOutOfRangeException(CodeAnalysisResources.SizeHasToBePositive, nameof(size));
Operations\ControlFlowGraph.cs (2)
238throw new ArgumentOutOfRangeException(nameof(localFunction)); 287throw new ArgumentOutOfRangeException(nameof(anonymousFunction));
Operations\ControlFlowGraphExtensions.cs (2)
40throw new ArgumentOutOfRangeException(nameof(localFunction)); 71throw new ArgumentOutOfRangeException(nameof(anonymousFunction));
Operations\OperationExtensions.cs (2)
242throw new ArgumentOutOfRangeException(nameof(index)); 309throw new ArgumentOutOfRangeException(nameof(index));
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
56throw new ArgumentOutOfRangeException(); 167throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 234return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\Dependencies\Collections\SegmentedArray.cs (8)
38throw new ArgumentOutOfRangeException(nameof(length)); 58throw new ArgumentOutOfRangeException(nameof(length)); 80throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 82throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 84throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 145throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 147throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 151throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\Dependencies\Collections\SegmentedArray`1.cs (1)
70throw new ArgumentOutOfRangeException(nameof(length));
SymbolDisplay\SymbolDisplayPart.cs (1)
44throw new ArgumentOutOfRangeException(nameof(kind));
Syntax\ChildSyntaxList.cs (1)
72throw new ArgumentOutOfRangeException(nameof(index));
Syntax\SeparatedSyntaxList.cs (6)
134throw new ArgumentOutOfRangeException(nameof(index)); 158throw new ArgumentOutOfRangeException(nameof(index)); 406throw new ArgumentOutOfRangeException(nameof(index)); 473throw new ArgumentOutOfRangeException(nameof(index)); 526throw new ArgumentOutOfRangeException(nameof(nodeInList)); 561throw new ArgumentOutOfRangeException(nameof(nodeInList));
Syntax\SyntaxList`1.cs (3)
139throw new ArgumentOutOfRangeException(nameof(index)); 258throw new ArgumentOutOfRangeException(nameof(index)); 287throw new ArgumentOutOfRangeException(nameof(index));
Syntax\SyntaxNode.cs (3)
760throw new ArgumentOutOfRangeException(nameof(position)); 966throw new ArgumentOutOfRangeException(nameof(span)); 1454throw new ArgumentOutOfRangeException(nameof(position));
Syntax\SyntaxNodeOrTokenList.cs (6)
160throw new ArgumentOutOfRangeException(nameof(index)); 312throw new ArgumentOutOfRangeException(nameof(nodeOrToken)); 327throw new ArgumentOutOfRangeException(nameof(index)); 372throw new ArgumentOutOfRangeException(nameof(index)); 404throw new ArgumentOutOfRangeException(nameof(newNodeOrToken)); 426throw new ArgumentOutOfRangeException(nameof(nodeOrTokenInList));
Syntax\SyntaxTokenList.cs (6)
144throw new ArgumentOutOfRangeException(nameof(index)); 337throw new ArgumentOutOfRangeException(nameof(token)); 352throw new ArgumentOutOfRangeException(nameof(index)); 385throw new ArgumentOutOfRangeException(nameof(index)); 417throw new ArgumentOutOfRangeException(nameof(newToken)); 439throw new ArgumentOutOfRangeException(nameof(tokenInList));
Syntax\SyntaxTriviaList.cs (6)
142throw new ArgumentOutOfRangeException(nameof(index)); 285throw new ArgumentOutOfRangeException(nameof(trivia)); 321throw new ArgumentOutOfRangeException(nameof(index)); 367throw new ArgumentOutOfRangeException(nameof(index)); 399throw new ArgumentOutOfRangeException(nameof(newTrivia)); 421throw new ArgumentOutOfRangeException(nameof(triviaInList));
Text\CompositeText.cs (5)
135throw new ArgumentOutOfRangeException(nameof(sourceIndex)); 138throw new ArgumentOutOfRangeException(nameof(destinationIndex)); 141throw new ArgumentOutOfRangeException(nameof(count)); 475throw new ArgumentOutOfRangeException(nameof(position)); 492throw new ArgumentOutOfRangeException(nameof(lineNumber));
Text\LargeText.cs (1)
186throw new ArgumentOutOfRangeException(nameof(span));
Text\LargeTextWriter.cs (2)
92throw new ArgumentOutOfRangeException(nameof(index)); 97throw new ArgumentOutOfRangeException(nameof(count));
Text\LinePosition.cs (3)
42throw new ArgumentOutOfRangeException(nameof(line)); 47throw new ArgumentOutOfRangeException(nameof(character)); 62throw new ArgumentOutOfRangeException(nameof(character));
Text\SourceText.cs (5)
264throw new ArgumentOutOfRangeException(nameof(length)); 492throw new ArgumentOutOfRangeException(nameof(span)); 525throw new ArgumentOutOfRangeException(nameof(start)); 982throw new ArgumentOutOfRangeException(nameof(index)); 1002throw new ArgumentOutOfRangeException(nameof(position));
Text\StringBuilderText.cs (2)
67throw new ArgumentOutOfRangeException(nameof(position)); 82throw new ArgumentOutOfRangeException(nameof(span));
Text\StringText.cs (1)
75throw new ArgumentOutOfRangeException(nameof(span));
Text\SubText.cs (4)
30throw new ArgumentOutOfRangeException(nameof(span)); 61throw new ArgumentOutOfRangeException(nameof(position)); 146throw new ArgumentOutOfRangeException(nameof(lineNumber)); 207throw new ArgumentOutOfRangeException(nameof(position));
Text\TextChangeRange.cs (1)
40throw new ArgumentOutOfRangeException(nameof(newLength));
Text\TextChangeRangeExtensions.cs (1)
396throw new ArgumentOutOfRangeException(nameof(change));
Text\TextLine.cs (3)
43throw new ArgumentOutOfRangeException(nameof(span)); 51throw new ArgumentOutOfRangeException(nameof(span), CodeAnalysisResources.SpanDoesNotIncludeStartOfLine); 74throw new ArgumentOutOfRangeException(nameof(span), CodeAnalysisResources.SpanDoesNotIncludeEndOfLine);
Text\TextLineCollection.cs (1)
67throw new ArgumentOutOfRangeException(nameof(position.Line), string.Format(CodeAnalysisResources.LineCannotBeGreaterThanEnd, position.Line, this.Count));
Text\TextSpan.cs (4)
26throw new ArgumentOutOfRangeException(nameof(start)); 31throw new ArgumentOutOfRangeException(nameof(length)); 189throw new ArgumentOutOfRangeException(nameof(start), CodeAnalysisResources.StartMustNotBeNegative); 194throw new ArgumentOutOfRangeException(nameof(end), string.Format(CodeAnalysisResources.EndMustNotBeLessThanStart, start, end));
Microsoft.CodeAnalysis.CodeStyle (24)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
42throw new ArgumentOutOfRangeException(nameof(hashLengthInBytes));
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
931throw new ArgumentOutOfRangeException(nameof(size));
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
48throw new ArgumentOutOfRangeException(nameof(index));
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
396throw new ArgumentOutOfRangeException(nameof(change));
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
56throw new ArgumentOutOfRangeException(); 167throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 234return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\Dependencies\Collections\SegmentedArray.cs (8)
38throw new ArgumentOutOfRangeException(nameof(length)); 58throw new ArgumentOutOfRangeException(nameof(length)); 80throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 82throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 84throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 145throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 147throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 151throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\Dependencies\Collections\SegmentedArray`1.cs (1)
70throw new ArgumentOutOfRangeException(nameof(length));
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
801throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_NeedNonNegNum); 807throw new ArgumentOutOfRangeException(nameof(count), count, SR.ArgumentOutOfRange_NeedNonNegNum);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (1)
73throw new ArgumentOutOfRangeException(nameof(index));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (5)
130throw new ArgumentOutOfRangeException(nameof(value)); 147_ => throw new ArgumentOutOfRangeException(nameof(origin)), 152throw new ArgumentOutOfRangeException(nameof(offset)); 157throw new ArgumentOutOfRangeException(nameof(offset)); 301throw new ArgumentOutOfRangeException(nameof(value));
Microsoft.CodeAnalysis.Collections.Package (14)
Internal\ThrowHelper.cs (3)
56throw new ArgumentOutOfRangeException(); 167throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 234return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
SegmentedArray.cs (8)
38throw new ArgumentOutOfRangeException(nameof(length)); 58throw new ArgumentOutOfRangeException(nameof(length)); 80throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 82throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 84throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 145throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 147throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 151throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
SegmentedArray`1.cs (1)
70throw new ArgumentOutOfRangeException(nameof(length));
SegmentedHashSet`1.cs (2)
801throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_NeedNonNegNum); 807throw new ArgumentOutOfRangeException(nameof(count), count, SR.ArgumentOutOfRange_NeedNonNegNum);
Microsoft.CodeAnalysis.CSharp (10)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
111throw new ArgumentOutOfRangeException(nameof(node), "node not part of tree"); 943throw new ArgumentOutOfRangeException(nameof(compilationUnit), "node not part of tree");
Compilation\CSharpCompilation.cs (2)
1665throw new ArgumentOutOfRangeException(nameof(specialType), $"Unexpected SpecialType: '{(int)specialType}'."); 4112throw new ArgumentOutOfRangeException(nameof(callingConvention));
Compilation\CSharpSemanticModel.cs (1)
1302throw new ArgumentOutOfRangeException(nameof(position), position,
CSharpExtensions.cs (1)
265throw new ArgumentOutOfRangeException(nameof(index));
SymbolDisplay\SymbolDisplay.cs (1)
263throw new ArgumentOutOfRangeException(CSharpResources.PositionNotWithinTree);
Symbols\ModuleSymbol.cs (1)
256throw new ArgumentOutOfRangeException(nameof(referencedAssemblyIndex));
Syntax\LiteralExpressionSyntax.cs (1)
28_ => throw new ArgumentOutOfRangeException(),
Syntax\SyntaxTokenParser.cs (1)
97throw new ArgumentOutOfRangeException(nameof(position));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
12829throw new ArgumentOutOfRangeException();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
1032throw new ArgumentOutOfRangeException(nameof(expectedSymbols));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
SignatureHelp\Presentation\Signature.cs (1)
30throw new ArgumentOutOfRangeException(nameof(selectedParameterIndex));
Microsoft.CodeAnalysis.Features (11)
Contracts\EditAndContinue\ManagedModuleMethodId.cs (2)
35throw new ArgumentOutOfRangeException(nameof(token)); 37throw new ArgumentOutOfRangeException(nameof(version));
Contracts\EditAndContinue\SourceLineUpdate.cs (2)
34throw new ArgumentOutOfRangeException(nameof(oldLine)); 36throw new ArgumentOutOfRangeException(nameof(newLine));
Contracts\EditAndContinue\SourceSpan.cs (5)
38throw new ArgumentOutOfRangeException(nameof(startLine)); 40throw new ArgumentOutOfRangeException(nameof(startColumn)); 42throw new ArgumentOutOfRangeException(nameof(endLine)); 44throw new ArgumentOutOfRangeException(nameof(endColumn)); 47throw new ArgumentOutOfRangeException(startColumn == -1 ? nameof(endColumn) : nameof(startColumn));
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
6506throw new ArgumentOutOfRangeException(nameof(position));
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (1)
198throw new ArgumentOutOfRangeException(nameof(version));
Microsoft.CodeAnalysis.Scripting (4)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
297throw new ArgumentOutOfRangeException(nameof(kind));
Hosting\PrintOptions.cs (3)
32throw new ArgumentOutOfRangeException(nameof(value)); 65throw new ArgumentOutOfRangeException(nameof(value)); 83throw new ArgumentOutOfRangeException(nameof(value));
Microsoft.CodeAnalysis.UnitTests (2)
Collections\ImmutableListTestBase.cs (2)
484throw new ArgumentOutOfRangeException(nameof(sortedIndex)); 486throw new ArgumentOutOfRangeException(nameof(sortedLength));
Microsoft.CodeAnalysis.Workspaces (44)
Progress\CodeAnalysisProgress.cs (2)
52IncompleteItemsValue = count >= 0 ? count : throw new ArgumentOutOfRangeException(nameof(count)), 70CompleteItemValue = count >= 1 ? count : throw new ArgumentOutOfRangeException(nameof(count)),
Shared\Extensions\SourceTextExtensions.cs (2)
333throw new ArgumentOutOfRangeException(nameof(index)); 336throw new ArgumentOutOfRangeException(nameof(count));
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
42throw new ArgumentOutOfRangeException(nameof(hashLengthInBytes));
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
931throw new ArgumentOutOfRangeException(nameof(size));
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
48throw new ArgumentOutOfRangeException(nameof(index));
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
396throw new ArgumentOutOfRangeException(nameof(change));
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
56throw new ArgumentOutOfRangeException(); 167throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 234return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\Dependencies\Collections\SegmentedArray.cs (8)
38throw new ArgumentOutOfRangeException(nameof(length)); 58throw new ArgumentOutOfRangeException(nameof(length)); 80throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 82throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 84throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 145throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 147throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 151throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\Dependencies\Collections\SegmentedArray`1.cs (1)
70throw new ArgumentOutOfRangeException(nameof(length));
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
801throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_NeedNonNegNum); 807throw new ArgumentOutOfRangeException(nameof(count), count, SR.ArgumentOutOfRange_NeedNonNegNum);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (1)
73throw new ArgumentOutOfRangeException(nameof(index));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (5)
130throw new ArgumentOutOfRangeException(nameof(value)); 147_ => throw new ArgumentOutOfRangeException(nameof(origin)), 152throw new ArgumentOutOfRangeException(nameof(offset)); 157throw new ArgumentOutOfRangeException(nameof(offset)); 301throw new ArgumentOutOfRangeException(nameof(value));
TemporaryStorage\TemporaryStorageService.DirectMemoryAccessStreamReader.cs (2)
58throw new ArgumentOutOfRangeException(nameof(index)); 63throw new ArgumentOutOfRangeException(nameof(count));
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
498throw new ArgumentOutOfRangeException("The specified files are empty.", nameof(filePaths));
Workspace\Solution\Solution.cs (12)
1251throw new ArgumentOutOfRangeException(nameof(mode)); 1272throw new ArgumentOutOfRangeException(nameof(mode)); 1293throw new ArgumentOutOfRangeException(nameof(mode)); 1314throw new ArgumentOutOfRangeException(nameof(mode)); 1335throw new ArgumentOutOfRangeException(nameof(mode)); 1356throw new ArgumentOutOfRangeException(nameof(mode)); 1373throw new ArgumentOutOfRangeException(nameof(mode)); 1409throw new ArgumentOutOfRangeException(nameof(sourceCodeKind)); 1430throw new ArgumentOutOfRangeException(nameof(mode)); 1451throw new ArgumentOutOfRangeException(nameof(mode)); 1472throw new ArgumentOutOfRangeException(nameof(mode)); 1605throw new ArgumentOutOfRangeException(nameof(mode));
Workspace\WorkspaceChangeEventArgs.cs (1)
68throw new ArgumentOutOfRangeException(nameof(kind));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (25)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
37throw new ArgumentOutOfRangeException(nameof(capacity));
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (3)
112throw new ArgumentOutOfRangeException(nameof(origin)); 117throw new ArgumentOutOfRangeException(nameof(offset)); 122throw new ArgumentOutOfRangeException(nameof(offset));
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.List.cs (1)
48throw new ArgumentOutOfRangeException(nameof(index));
src\Compilers\Core\Portable\InternalUtilities\WeakList.cs (1)
144throw new ArgumentOutOfRangeException(nameof(index));
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
56throw new ArgumentOutOfRangeException(); 167throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 234return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
src\Dependencies\Collections\SegmentedArray.cs (8)
38throw new ArgumentOutOfRangeException(nameof(length)); 58throw new ArgumentOutOfRangeException(nameof(length)); 80throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 82throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 84throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB); 145throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_NeedNonNegNum); 147throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_ArrayLB); 151throw new ArgumentOutOfRangeException(nameof(destinationIndex), SR.ArgumentOutOfRange_ArrayLB);
src\Dependencies\Collections\SegmentedArray`1.cs (1)
70throw new ArgumentOutOfRangeException(nameof(length));
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
801throw new ArgumentOutOfRangeException(nameof(arrayIndex), arrayIndex, SR.ArgumentOutOfRange_NeedNonNegNum); 807throw new ArgumentOutOfRangeException(nameof(count), count, SR.ArgumentOutOfRange_NeedNonNegNum);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (5)
130throw new ArgumentOutOfRangeException(nameof(value)); 147_ => throw new ArgumentOutOfRangeException(nameof(origin)), 152throw new ArgumentOutOfRangeException(nameof(offset)); 157throw new ArgumentOutOfRangeException(nameof(offset)); 301throw new ArgumentOutOfRangeException(nameof(value));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
NewlyCreatedProjectsFromDotNetNew.cs (2)
164_ => throw new ArgumentOutOfRangeException(nameof(languageName), actualValue: languageName, message: "Only C# and VB.NET projects are supported.") 175_ => throw new ArgumentOutOfRangeException(nameof(languageName), actualValue: languageName, message: "Only C# and VB.NET projects are supported.")
Microsoft.Data.Analysis (14)
DataFrame.IDataView.cs (1)
117throw new ArgumentOutOfRangeException(nameof(column));
DataFrameBuffer.cs (1)
97throw new ArgumentOutOfRangeException(nameof(index));
DataFrameColumn.cs (1)
83throw new ArgumentOutOfRangeException();
DataFrameColumns\ArrowStringDataFrameColumn.cs (3)
79throw new ArgumentOutOfRangeException(nameof(index)); 95throw new ArgumentOutOfRangeException(nameof(index)); 224throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
DataFrameColumns\StringDataFrameColumn.cs (1)
107throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
DataFrameColumns\VBufferDataFrameColumn.cs (1)
86throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
PrimitiveColumnContainer.cs (3)
311throw new ArgumentOutOfRangeException(nameof(index)); 331throw new ArgumentOutOfRangeException(nameof(index)); 354throw new ArgumentOutOfRangeException(Strings.IndexIsGreaterThanColumnLength, nameof(rowIndex));
PrimitiveDataFrameColumn.cs (2)
201throw new ArgumentOutOfRangeException(nameof(startIndex)); 211throw new ArgumentOutOfRangeException(nameof(startIndex));
ReadOnlyDataFrameBuffer.cs (1)
70throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Data.Analysis.Interactive (1)
TabularDataResourceExtensions.cs (1)
54throw new ArgumentOutOfRangeException();
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)
192throw new ArgumentOutOfRangeException(); 199throw new ArgumentOutOfRangeException();
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PushToBuildStorage.cs (2)
307throw new ArgumentOutOfRangeException(nameof(itemType)); 332throw new ArgumentOutOfRangeException(nameof(itemType));
Microsoft.DotNet.Build.Tasks.Workloads (4)
Msi\MsiUtils.wix.cs (3)
196throw new ArgumentOutOfRangeException(string.Format(Strings.MsiProductVersionOutOfRange, nameof(version.Major), 255)); 201throw new ArgumentOutOfRangeException(string.Format(Strings.MsiProductVersionOutOfRange, nameof(version.Minor), 255)); 206throw new ArgumentOutOfRangeException(string.Format(Strings.MsiProductVersionOutOfRange, nameof(version.Build), ushort.MaxValue));
Swix\MsiSwixProject.wix.cs (1)
78throw new ArgumentOutOfRangeException(Strings.ChipOrMachineArchRequired);
Microsoft.DotNet.Helix.Client (1)
Job.cs (1)
16if (pollingIntervalMs < 5000) throw new ArgumentOutOfRangeException(nameof(pollingIntervalMs), pollingIntervalMs, "The polling interval cannot be less than 5000.");
Microsoft.DotNet.VersionTools.Tasks (1)
SubmitPullRequest.cs (1)
163throw new ArgumentOutOfRangeException(
Microsoft.Extensions.AI (4)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AI.Abstractions (5)
src\LegacySupport\StringHash\StringHash.cs (1)
25_ => throw new ArgumentOutOfRangeException(nameof(comparisonType)),
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AI.AzureAIInference (5)
src\LegacySupport\StringHash\StringHash.cs (1)
25_ => throw new ArgumentOutOfRangeException(nameof(comparisonType)),
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AI.Integration.Tests (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AI.Ollama (5)
src\LegacySupport\StringHash\StringHash.cs (1)
25_ => throw new ArgumentOutOfRangeException(nameof(comparisonType)),
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AI.OpenAI (5)
src\LegacySupport\StringHash\StringHash.cs (1)
25_ => throw new ArgumentOutOfRangeException(nameof(comparisonType)),
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AmbientMetadata.Application (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.AsyncState (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
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 (4)
Internal\RecyclableArrayBufferWriter.cs (1)
101=> throw new ArgumentOutOfRangeException(nameof(count));
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
315throw 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)
51throw new ArgumentOutOfRangeException(nameof(value), value, $"{nameof(value)} must be non-negative."); 75throw new ArgumentOutOfRangeException(nameof(value), value, $"{nameof(value)} must be between 0 and 1 inclusive.");
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
83_ => throw new ArgumentOutOfRangeException(nameof(Backend)),
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
54throw new ArgumentOutOfRangeException(
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
600throw new ArgumentOutOfRangeException(
Microsoft.Extensions.Compliance.Abstractions (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Compliance.Redaction (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Compliance.Testing (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (1)
756throw new ArgumentOutOfRangeException(nameof(index));
ServiceLookup\CallSiteVisitor.cs (1)
35throw new ArgumentOutOfRangeException();
Microsoft.Extensions.DependencyInjection.AutoActivation (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
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.Diagnostics.HealthChecks.Common (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Diagnostics.Probes (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Diagnostics.Testing (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Hosting.Testing (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Extensions.Http.Resilience (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
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)
38throw new ArgumentOutOfRangeException(nameof(value)); 99throw new ArgumentOutOfRangeException(SR.Format(SR.QueueModeNotSupported, nameof(value))); 121throw 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)
136_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
SimpleConsoleFormatter.cs (1)
173_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
SystemdConsoleFormatter.cs (1)
131_ => throw new ArgumentOutOfRangeException(nameof(logLevel))
Microsoft.Extensions.ObjectPool.DependencyInjection (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Options.Contextual (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
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.Extensions.Resilience (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Telemetry (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Telemetry.Abstractions (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
427throw new ArgumentOutOfRangeException("EM2", (Exception?)null);
Microsoft.Extensions.TimeProvider.Testing (3)
src\Shared\Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceGenerator.cs (1)
409throw new ArgumentOutOfRangeException(nameof(options), "No-wrapper options should have been filtered out before calling this method.");
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
151throw new ArgumentOutOfRangeException("value", "value must be non-negative");
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.LibraryImportGenerator.Downlevel (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)
190_ => 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.Maui (7)
Animations\Animation.cs (2)
133 throw new ArgumentOutOfRangeException(nameof(beginAt)); 136 throw new ArgumentOutOfRangeException(nameof(duration));
ImageSources\iOS\ImageAnimationHelper.cs (4)
26 throw new ArgumentOutOfRangeException(nameof(imageCount), $"{nameof(imageCount)} is 0, no images to animate."); 28 throw new ArgumentOutOfRangeException(nameof(scale), $"{nameof(scale)} is < 1, cannot scale up."); 46 throw new ArgumentOutOfRangeException(nameof(index), $"Error adding frame data. {nameof(index)} is less than 0, or more than or equal to image count."); 69 throw new ArgumentOutOfRangeException(nameof(index), $"Error adding frame data. {nameof(index)} is less than 0, or more than or equal to image count.");
ImageSources\iOS\ImageSourceExtensions.cs (1)
185 _ => throw new ArgumentOutOfRangeException(nameof(cgOrient)),
Microsoft.Maui.Controls (39)
Animation.cs (2)
48 throw new ArgumentOutOfRangeException(nameof(beginAt)); 51 throw new ArgumentOutOfRangeException(nameof(finishAt));
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (1)
740 throw new ArgumentOutOfRangeException();
Compatibility\iOS\FontNamedSizeService.cs (1)
75 throw new ArgumentOutOfRangeException(nameof(size));
Element\Element.cs (1)
892 throw new ArgumentOutOfRangeException();
Handlers\Items\iOS\ListSource.cs (2)
52 throw new ArgumentOutOfRangeException(nameof(indexPath)); 102 throw new ArgumentOutOfRangeException(nameof(group));
Handlers\Items\iOS\ObservableGroupedSource.cs (1)
194 throw new ArgumentOutOfRangeException();
Handlers\Items\iOS\ObservableItemsSource.cs (2)
102 throw new ArgumentOutOfRangeException(nameof(indexPath)); 154 throw new ArgumentOutOfRangeException();
Handlers\Items\iOS\SnapHelpers.cs (1)
35 throw new ArgumentOutOfRangeException();
Layout\GridExtensions.cs (4)
65 throw new ArgumentOutOfRangeException(nameof(row)); 67 throw new ArgumentOutOfRangeException(nameof(column)); 69 throw new ArgumentOutOfRangeException(nameof(rowSpan)); 71 throw new ArgumentOutOfRangeException(nameof(columnSpan));
LayoutAlignmentExtensions.cs (1)
18 throw new ArgumentOutOfRangeException(nameof(align));
LayoutOptions.cs (1)
42 throw new ArgumentOutOfRangeException();
LegacyLayouts\Grid.cs (6)
315 throw new ArgumentOutOfRangeException(nameof(left)); 317 throw new ArgumentOutOfRangeException(nameof(top)); 324 throw new ArgumentOutOfRangeException(nameof(left)); 326 throw new ArgumentOutOfRangeException(nameof(top)); 328 throw new ArgumentOutOfRangeException(nameof(right)); 330 throw new ArgumentOutOfRangeException(nameof(bottom));
ListProxy.cs (1)
134 throw new ArgumentOutOfRangeException(nameof(index));
LockingSemaphore.cs (1)
18 throw new ArgumentOutOfRangeException(nameof(initialCount));
ObservableList.cs (5)
31 throw new ArgumentOutOfRangeException(nameof(index)); 47 throw new ArgumentOutOfRangeException(nameof(oldIndex)); 49 throw new ArgumentOutOfRangeException(nameof(newIndex)); 72 throw new ArgumentOutOfRangeException(nameof(index)); 101 throw new ArgumentOutOfRangeException(nameof(startIndex));
ObservableWrapper.cs (1)
240 throw new ArgumentOutOfRangeException();
OrderedDictionary.cs (2)
131 throw new ArgumentOutOfRangeException(nameof(arrayIndex)); 398 throw new ArgumentOutOfRangeException(nameof(arrayIndex));
Platform\iOS\Extensions\ButtonExtensions.cs (1)
111 _ => throw new ArgumentOutOfRangeException()
Platform\iOS\Extensions\Extensions.cs (2)
28 throw new ArgumentOutOfRangeException(nameof(style)); 43 throw new ArgumentOutOfRangeException(nameof(style));
Slider\Slider.cs (1)
70 throw new ArgumentOutOfRangeException(nameof(min));
Stepper\Stepper.cs (1)
62 throw new ArgumentOutOfRangeException(nameof(min));
TemplatedItemsList.cs (1)
1111 throw new ArgumentOutOfRangeException();
Microsoft.Maui.Controls.BindingSourceGen (4)
BindingCodeWriter.cs (3)
287 _ => throw new ArgumentOutOfRangeException(nameof(interceptedMethodType)) 295 _ => throw new ArgumentOutOfRangeException(nameof(interceptedMethodType)) 305 _ => throw new ArgumentOutOfRangeException(nameof(binding.MethodType))
InvocationParser.cs (1)
44 throw new ArgumentOutOfRangeException(nameof(invocation));
Microsoft.Maui.Controls.Build.Tasks (1)
TypeReferenceExtensions.cs (1)
18 throw new ArgumentOutOfRangeException(nameof(typeRef));
Microsoft.Maui.Controls.Compatibility (8)
iOS\CollectionView\ListSource.cs (2)
38 throw new ArgumentOutOfRangeException(nameof(indexPath)); 71 throw new ArgumentOutOfRangeException(nameof(group));
iOS\CollectionView\ObservableGroupedSource.cs (1)
156 throw new ArgumentOutOfRangeException();
iOS\CollectionView\ObservableItemsSource.cs (2)
94 throw new ArgumentOutOfRangeException(nameof(indexPath)); 130 throw new ArgumentOutOfRangeException();
iOS\CollectionView\SnapHelpers.cs (1)
34 throw new ArgumentOutOfRangeException();
iOS\Renderers\ButtonLayoutManager.cs (1)
124 _ => throw new ArgumentOutOfRangeException()
iOS\Renderers\ListViewRenderer.cs (1)
763 throw new ArgumentOutOfRangeException();
Microsoft.Maui.Essentials (4)
TextToSpeech\TextToSpeech.shared.cs (2)
164 throw new ArgumentOutOfRangeException($"Volume must be >= {VolumeMin} and <= {VolumeMax}"); 170 throw new ArgumentOutOfRangeException($"Pitch must be >= {PitchMin} and <= {PitchMin}");
Types\Location.shared.cs (2)
68 throw new ArgumentOutOfRangeException(nameof(latitude)); 233 throw new ArgumentOutOfRangeException(nameof(units));
Microsoft.Maui.Graphics (3)
PathF.cs (1)
1511 throw new ArgumentOutOfRangeException();
PlatformImage.cs (2)
59 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1"); 75 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1");
Microsoft.Maui.Graphics.Skia (2)
SkiaImage.cs (2)
123 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1"); 133 _ => throw new ArgumentOutOfRangeException(nameof(format), format, null)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (2)
108 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1"); 125 throw new ArgumentOutOfRangeException(nameof(quality), "quality must be in the range of 0..1");
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
387throw new ArgumentOutOfRangeException(nameof(args.LabelColumnIndex), $"Label column index ({args.LabelColumnIndex}) is >= than # of inferred columns ({cols.Count()}).");
Microsoft.ML.Core (31)
Utilities\ArrayUtils.cs (1)
79throw new ArgumentOutOfRangeException(nameof(max), "min must not exceed max");
Utilities\Contracts.cs (30)
282=> Process(new ArgumentOutOfRangeException(name)); 284=> Process(new ArgumentOutOfRangeException(name), ctx); 286=> Process(new ArgumentOutOfRangeException(name, msg)); 288=> Process(new ArgumentOutOfRangeException(name, msg), ctx); 290=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args))); 292=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args)), ctx); 298=> Process(new ArgumentOutOfRangeException(paramName)); 300=> Process(new ArgumentOutOfRangeException(paramName), ctx); 302=> Process(new ArgumentOutOfRangeException(paramName, msg)); 304=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 306=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 308=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 310=> Process(new ArgumentOutOfRangeException(msg, value, paramName)); 312=> Process(new ArgumentOutOfRangeException(msg, value, paramName), ctx); 314=> Process(new ArgumentOutOfRangeException(paramName, value, GetMsg(msg, args))); 316=> Process(new ArgumentOutOfRangeException(paramName, value, GetMsg(msg, args)), ctx); 340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 344=> Process(new ArgumentOutOfRangeException(paramName, msg)); 346=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 348=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 350=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx); 360=> Process(new ArgumentOutOfRangeException(paramName, msg)); 362=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 450=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName))); 452=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName)), ctx); 454=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType))); 456=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType)), ctx);
Microsoft.ML.CpuMath (30)
src\Microsoft.ML.Core\Utilities\Contracts.cs (30)
282=> Process(new ArgumentOutOfRangeException(name)); 284=> Process(new ArgumentOutOfRangeException(name), ctx); 286=> Process(new ArgumentOutOfRangeException(name, msg)); 288=> Process(new ArgumentOutOfRangeException(name, msg), ctx); 290=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args))); 292=> Process(new ArgumentOutOfRangeException(name, GetMsg(msg, args)), ctx); 298=> Process(new ArgumentOutOfRangeException(paramName)); 300=> Process(new ArgumentOutOfRangeException(paramName), ctx); 302=> Process(new ArgumentOutOfRangeException(paramName, msg)); 304=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 306=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 308=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 310=> Process(new ArgumentOutOfRangeException(msg, value, paramName)); 312=> Process(new ArgumentOutOfRangeException(msg, value, paramName), ctx); 314=> Process(new ArgumentOutOfRangeException(paramName, value, GetMsg(msg, args))); 316=> Process(new ArgumentOutOfRangeException(paramName, value, GetMsg(msg, args)), ctx); 340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 344=> Process(new ArgumentOutOfRangeException(paramName, msg)); 346=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 348=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args))); 350=> Process(new ArgumentOutOfRangeException(paramName, GetMsg(msg, args)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx); 360=> Process(new ArgumentOutOfRangeException(paramName, msg)); 362=> Process(new ArgumentOutOfRangeException(paramName, msg), ctx); 450=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName))); 452=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName)), ctx); 454=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType))); 456=> Process(new ArgumentOutOfRangeException(paramName, MakeSchemaMismatchMsg(columnRole, columnName, expectedType, actualType)), ctx);
Microsoft.ML.Data (2)
Utilities\StreamUtils.cs (2)
201throw new ArgumentOutOfRangeException(nameof(offset), "Offset must be non-negative."); 206throw new ArgumentOutOfRangeException(nameof(count), "Count must be non-negative and count must not exceed buffer.Length - offset.");
Microsoft.ML.DataView (7)
Contracts.cs (3)
36=> new ArgumentOutOfRangeException(paramName); 38=> new ArgumentOutOfRangeException(paramName, msg); 40=> new ArgumentOutOfRangeException(paramName, GetMsg(msg, args));
DataViewSchema.cs (3)
40throw new ArgumentOutOfRangeException(nameof(name), $"Column '{name}' not found"); 53throw new ArgumentOutOfRangeException(nameof(columnIndex)); 110throw new ArgumentOutOfRangeException(nameof(index));
src\Microsoft.ML.Core\Utilities\ArrayUtils.cs (1)
79throw new ArgumentOutOfRangeException(nameof(max), "min must not exceed max");
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
526throw new ArgumentOutOfRangeException(_parent.Inputs[i], "Only 1 unknown dimension is allowed"); 1066throw new ArgumentOutOfRangeException(input, "Only 1 unknown dimension is allowed");
Microsoft.ML.Samples (1)
Dynamic\SimpleDataViewImplementation.cs (1)
301throw new ArgumentOutOfRangeException(nameof(column));
Microsoft.ML.Tokenizers (26)
Model\BPETokenizer.cs (4)
361throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 417throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 492throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 540throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0.");
Model\CodeGenTokenizer.cs (3)
579throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 797throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 935throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero.");
Model\EnglishRobertaTokenizer.cs (4)
414throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 499throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 546throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0."); 1210throw new ArgumentOutOfRangeException(nameof(idx), $"Index should be non-negative, got {idx}.");
Model\SentencePieceTokenizer.cs (5)
522throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 551throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 576throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than 0."); 900throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 1253throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0.");
Model\TiktokenTokenizer.cs (3)
367throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 535throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The maximum number of tokens must be greater than zero."); 661throw new ArgumentOutOfRangeException(nameof(maxTokenCount), "The max token count must be greater than 0.");
Model\Word.cs (1)
23throw new ArgumentOutOfRangeException(nameof(capacity));
Model\WordPieceTokenizer.cs (4)
59throw new ArgumentOutOfRangeException(nameof(options.MaxInputCharsPerWord), "The maximum number of characters per word must be greater than zero."); 394throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 546throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The maximum number of tokens must be greater than zero."); 606throw new ArgumentOutOfRangeException(nameof(settings.MaxTokenCount), "The max token count must be greater than 0.");
Utils\LruCache.cs (1)
33throw new ArgumentOutOfRangeException(nameof(cacheSize), "Cache size must be a positive number.");
Utils\Vec.cs (1)
23throw new ArgumentOutOfRangeException(nameof(index), $"{index} is out of range");
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
29throw new ArgumentOutOfRangeException(nameof(maxAttempts)); 79throw new ArgumentOutOfRangeException(nameof(maxAttempts));
Microsoft.ML.Tokenizers.Tests (2)
src\Common\tests\RetryHelper.cs (2)
29throw new ArgumentOutOfRangeException(nameof(maxAttempts)); 79throw new ArgumentOutOfRangeException(nameof(maxAttempts));
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))
Microsoft.VisualStudio.LanguageServices (5)
CodeDefinitionWindow\VisualStudioCodeDefinitionWindowService.cs (1)
105throw new ArgumentOutOfRangeException(nameof(iItem));
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
37throw new ArgumentOutOfRangeException(nameof(capacity));
Workspace\VisualStudioDocumentNavigationService.cs (3)
85throw new ArgumentOutOfRangeException(); 145throw new ArgumentOutOfRangeException(); 358throw new ArgumentOutOfRangeException();
MSBuild (1)
ErrorUtilities.cs (1)
473throw new ArgumentOutOfRangeException(parameterName);
MSBuildTaskHost (2)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
473throw 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)
464throw new ArgumentOutOfRangeException(nameof(i));
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (2)
46throw new ArgumentOutOfRangeException(nameof(major), 52throw new ArgumentOutOfRangeException(nameof(minor),
PresentationCore (77)
MS\Internal\FontCache\FontCacheUtil.cs (6)
74throw new ArgumentOutOfRangeException(); 86throw new ArgumentOutOfRangeException(); 105throw new ArgumentOutOfRangeException(); 127throw new ArgumentOutOfRangeException(); 137throw new ArgumentOutOfRangeException(); 152throw new ArgumentOutOfRangeException();
MS\Internal\FontFace\FontDriver.cs (1)
159throw new ArgumentOutOfRangeException(nameof(faceIndex), SR.FaceIndexValidOnlyForTTC);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
862throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidDrawingAttributesHeight); 869throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidDrawingAttributesWidth);
MS\Internal\Ink\StylusShape.cs (4)
44throw new ArgumentOutOfRangeException(nameof(width)); 49throw new ArgumentOutOfRangeException(nameof(height)); 54throw new ArgumentOutOfRangeException(nameof(rotation)); 59throw new ArgumentOutOfRangeException(nameof(tip));
MS\Internal\IO\Packaging\NetStream.cs (1)
251throw new ArgumentOutOfRangeException(nameof(origin), SR.SeekOriginInvalid);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (11)
57throw new ArgumentOutOfRangeException(nameof(bufferLengthInBits), SR.InvalidBufferLength); 71throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 100throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 128throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 158throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 186throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 237throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 242throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsGreatThanRemainingBits); 371throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 410throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 439throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange);
System\Windows\BinaryFormat\IntrinsicExtensions.cs (1)
17throw new ArgumentOutOfRangeException(nameof(value));
System\Windows\BinaryFormat\NullRecord.cs (1)
22throw new ArgumentOutOfRangeException(nameof(value));
System\Windows\DataObjectEventArgs.cs (1)
53throw new ArgumentOutOfRangeException(nameof(routedEvent));
System\Windows\Documents\DocumentPaginator.cs (1)
78throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.PaginatorNegativePageNumber);
System\Windows\Ink\DrawingAttributes.cs (2)
162throw new ArgumentOutOfRangeException("Height", SR.InvalidDrawingAttributesHeight); 189throw new ArgumentOutOfRangeException("Width", SR.InvalidDrawingAttributesWidth);
System\Windows\Ink\Stroke2.cs (3)
196throw new ArgumentOutOfRangeException(nameof(diameter), SR.InvalidDiameter); 211throw new System.ArgumentOutOfRangeException(nameof(percentageWithinBounds)); 260throw new System.ArgumentOutOfRangeException(nameof(percentageWithinLasso));
System\Windows\Ink\StrokeCollection2.cs (4)
67throw new ArgumentOutOfRangeException(nameof(diameter), SR.InvalidDiameter); 85throw new System.ArgumentOutOfRangeException(nameof(percentageWithinLasso)); 152throw new System.ArgumentOutOfRangeException(nameof(percentageWithinBounds)); 426throw new System.ArgumentOutOfRangeException(nameof(percentageWithinLasso));
System\Windows\Input\Command\InputBindingCollection.cs (2)
165throw new ArgumentOutOfRangeException(nameof(index)); 186throw new ArgumentOutOfRangeException(nameof(index));
System\Windows\Input\InertiaExpansionBehavior.cs (1)
55throw new ArgumentOutOfRangeException(nameof(value));
System\Windows\Input\InertiaRotationBehavior.cs (2)
55throw new ArgumentOutOfRangeException(nameof(value)); 75throw new ArgumentOutOfRangeException(nameof(value));
System\Windows\Input\InertiaTranslationBehavior.cs (2)
55throw new ArgumentOutOfRangeException(nameof(value)); 75throw new ArgumentOutOfRangeException(nameof(value));
System\Windows\Input\Stylus\Common\StylusPoint.cs (7)
73throw new ArgumentOutOfRangeException(nameof(x), SR.InvalidStylusPointXYNaN); 77throw new ArgumentOutOfRangeException(nameof(y), SR.InvalidStylusPointXYNaN); 85throw new ArgumentOutOfRangeException(nameof(pressureFactor), SR.InvalidPressureValue); 167throw new ArgumentOutOfRangeException("X", SR.InvalidStylusPointXYNaN); 187throw new ArgumentOutOfRangeException("Y", SR.InvalidStylusPointXYNaN); 222throw new ArgumentOutOfRangeException("PressureFactor", SR.InvalidPressureValue); 382throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidMinMaxForButton);
System\Windows\InterOp\D3DImage.cs (2)
136throw new ArgumentOutOfRangeException(nameof(backBufferType)); 238throw new ArgumentOutOfRangeException(nameof(timeout));
System\Windows\Media\Animation\KeyTime.cs (2)
31throw new ArgumentOutOfRangeException(nameof(percent), SR.Format(SR.Animation_KeyTime_InvalidPercentValue, percent)); 51throw new ArgumentOutOfRangeException(nameof(timeSpan), SR.Format(SR.Animation_KeyTime_LessThanZero, timeSpan));
System\Windows\Media\Animation\RepeatBehavior.cs (2)
40throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.Timing_RepeatBehaviorInvalidIterationCount, count)); 55throw new ArgumentOutOfRangeException(nameof(duration), SR.Format(SR.Timing_RepeatBehaviorInvalidRepeatDuration, duration));
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
285throw new ArgumentOutOfRangeException(nameof(index));
System\Windows\Media\CharacterMetricsDictionary.cs (1)
356throw new ArgumentOutOfRangeException(SR.Format(SR.CodePointOutOfRange, key));
System\Windows\Media\Effects\ShaderEffect.cs (4)
45throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 72throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 99throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 126throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding);
System\Windows\Media\FormattedText.cs (3)
293throw new ArgumentOutOfRangeException(nameof(count)); 1311throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1314throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\GlyphRun.cs (3)
483throw new ArgumentOutOfRangeException(nameof(characterHit)); 709throw new ArgumentOutOfRangeException(nameof(characterHit)); 756throw new ArgumentOutOfRangeException(nameof(characterHit));
System\Windows\Media\GlyphTypeface.cs (1)
1062throw new ArgumentOutOfRangeException(nameof(glyphIndex), SR.Format(SR.GlyphIndexOutOfRange, glyphIndex));
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
231throw new ArgumentOutOfRangeException(nameof(timeout));
System\Windows\Media\Visual.cs (1)
2517throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Media\VisualCollection.cs (1)
247throw new ArgumentOutOfRangeException(nameof(value), SR.VisualCollection_NotEnoughCapacity);
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
830throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 862throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Media3D\Visual3D.cs (1)
990throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
PresentationFramework (149)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
105throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Controls\InnerItemCollectionView.cs (1)
318throw new ArgumentOutOfRangeException(nameof(index),
MS\Internal\Controls\TemplatedAdorner.cs (1)
111throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Data\ClrBindingWorker.cs (1)
634throw new ArgumentOutOfRangeException("index");
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
352throw new ArgumentOutOfRangeException(nameof(index));
MS\Internal\Data\CompositeCollectionView.cs (1)
202throw new ArgumentOutOfRangeException(nameof(index));
MS\Internal\Data\IndexedEnumerable.cs (1)
244throw new ArgumentOutOfRangeException(nameof(index)); // validating the index argument
MS\Internal\Data\PropertyPathWorker.cs (1)
1538_host?.ReportGetValueError(k, item, new ArgumentOutOfRangeException("index"));
MS\Internal\Documents\ContentElementCollection.cs (3)
74throw new ArgumentOutOfRangeException(nameof(index), SR.TableCollectionOutOfRangeNeedNonNegNum); 106throw new ArgumentOutOfRangeException(nameof(index), SR.TableCollectionOutOfRangeNeedNonNegNum); 758throw new ArgumentOutOfRangeException(SR.TableCollectionNotEnoughCapacity);
MS\Internal\Documents\DocumentGrid.cs (9)
428throw new ArgumentOutOfRangeException(nameof(scale)); 595throw new ArgumentOutOfRangeException(nameof(offset)); 638throw new ArgumentOutOfRangeException(nameof(offset)); 804throw new ArgumentOutOfRangeException(nameof(value)); 826throw new ArgumentOutOfRangeException(nameof(value)); 1002throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 2145throw new ArgumentOutOfRangeException(nameof(offset)); 2165throw new ArgumentOutOfRangeException(nameof(offset)); 2963throw new ArgumentOutOfRangeException(nameof(args));
MS\Internal\Documents\DocumentGridPage.cs (2)
180throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 184throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\DocumentPageHost.cs (1)
125throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
74throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 147throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber);
MS\Internal\Documents\FlowDocumentView.cs (1)
223throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\PageCache.cs (5)
363throw new ArgumentOutOfRangeException("args"); 465throw new ArgumentOutOfRangeException(nameof(parameter)); 506throw new ArgumentOutOfRangeException(nameof(parameter)); 589throw new ArgumentOutOfRangeException(nameof(parameter)); 609throw new ArgumentOutOfRangeException("args");
MS\Internal\Documents\RowCache.cs (1)
1277throw new ArgumentOutOfRangeException(nameof(args));
MS\Internal\Documents\TableColumnCollectionInternal.cs (6)
100throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 240throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 272throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 276throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 319throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 327throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (6)
105throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 189throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 222throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 226throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 406throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 414throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
MS\Internal\Documents\TextDocumentView.cs (8)
93throw new ArgumentOutOfRangeException(nameof(position)); 236throw new ArgumentOutOfRangeException(nameof(position)); 287throw new ArgumentOutOfRangeException(nameof(position)); 307throw new ArgumentOutOfRangeException(nameof(position)); 326throw new ArgumentOutOfRangeException(nameof(position)); 345throw new ArgumentOutOfRangeException(nameof(position)); 368throw new ArgumentOutOfRangeException(nameof(start)); 372throw new ArgumentOutOfRangeException(nameof(end));
MS\Internal\Documents\TextParagraphView.cs (1)
156throw new ArgumentOutOfRangeException(nameof(position));
MS\Internal\Ink\InkCanvasSelection.cs (1)
917throw new ArgumentOutOfRangeException(nameof(source), SR.InvalidDiameter);
MS\Internal\IO\Packaging\ByteStream.cs (3)
203throw new ArgumentOutOfRangeException(nameof(offset), 265throw new ArgumentOutOfRangeException(nameof(count), 272throw new ArgumentOutOfRangeException(nameof(offset),
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
79throw new ArgumentOutOfRangeException(nameof(origin));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
97throw new ArgumentOutOfRangeException(nameof(index)); 123Exception e = new ArgumentOutOfRangeException(nameof(index), ErrorStrings.ArgumentOutOfRange_IndexLargerThanMaxValue);
System\Windows\Automation\Peers\GridSplitterAutomationPeer.cs (2)
44throw new ArgumentOutOfRangeException(nameof(x)); 47throw new ArgumentOutOfRangeException(nameof(y));
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (2)
154throw new ArgumentOutOfRangeException(nameof(horizontalPercent), SR.Format(SR.ScrollViewer_OutOfRange, "horizontalPercent", horizontalPercent.ToString(CultureInfo.InvariantCulture), "0", "100")); 158throw new ArgumentOutOfRangeException(nameof(verticalPercent), SR.Format(SR.ScrollViewer_OutOfRange, "verticalPercent", verticalPercent.ToString(CultureInfo.InvariantCulture), "0", "100"));
System\Windows\Controls\AccessText.cs (1)
534throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
143throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Calendar.cs (1)
577throw new ArgumentOutOfRangeException(nameof(d), SR.Calendar_OnSelectedDateChanged_InvalidValue);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (3)
191throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates); 244throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates); 289throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates);
System\Windows\Controls\ColumnDefinition.cs (11)
83throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 105throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 229throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 243throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 287throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 306throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 310throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 431throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 441throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 457throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 467throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
System\Windows\Controls\DataGrid.cs (1)
384throw new ArgumentOutOfRangeException(nameof(displayIndex), displayIndex, SR.DataGrid_DisplayIndexOutOfRange);
System\Windows\Controls\DataGridColumnCollection.cs (3)
67throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.DataGrid_ColumnIndexOutOfRange, item.Header)); 476throw new ArgumentOutOfRangeException("displayIndex", oldDisplayIndex, SR.Format(SR.DataGrid_ColumnDisplayIndexOutOfRange, changingColumn.Header)); 719throw new ArgumentOutOfRangeException(nameof(displayIndex), displayIndex, SR.Format(SR.DataGrid_ColumnDisplayIndexOutOfRange, column.Header));
System\Windows\Controls\DatePicker.cs (1)
1127DatePickerDateValidationErrorEventArgs dateValidationError = new DatePickerDateValidationErrorEventArgs(new ArgumentOutOfRangeException(nameof(text), SR.Calendar_OnSelectedDateChanged_InvalidValue), text);
System\Windows\Controls\Decorator.cs (1)
174throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\DocumentViewer.cs (2)
130throw new ArgumentOutOfRangeException(nameof(pagesAcross)); 1013throw new ArgumentOutOfRangeException(nameof(pagesAcross));
System\Windows\Controls\Grid.cs (1)
318throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\GridSplitter.cs (1)
424throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\InkCanvas.cs (1)
380throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\InkPresenter.cs (2)
254throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 268throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Panel.cs (1)
376throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
218throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
473throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
126throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\PopupRoot.cs (1)
70throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
342throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 355throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 680throw new ArgumentOutOfRangeException(parameterName, SR.Format(SR.ScrollViewer_CannotBeNaN, parameterName));
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
280throw new ArgumentOutOfRangeException(nameof(offset)); 297throw new ArgumentOutOfRangeException(nameof(offset));
System\Windows\Controls\Primitives\Track.cs (1)
369throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\RowDefinition.cs (11)
78throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 100throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 224throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 238throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 282throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 301throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 305throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 426throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 436throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 452throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 462throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
System\Windows\Controls\SelectedDatesCollection.cs (1)
200throw new ArgumentOutOfRangeException(SR.Calendar_OnSelectedDateChanged_InvalidValue);
System\Windows\Controls\TextBlock.cs (1)
1152throw new ArgumentOutOfRangeException(nameof(index));
System\Windows\Controls\ToolBarTray.cs (1)
476throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ViewBox.cs (1)
237throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ViewPort3D.cs (1)
187throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Data\CompositeCollection.cs (1)
243throw new ArgumentOutOfRangeException(nameof(removeIndex),
System\Windows\Data\RelativeSource.cs (1)
219throw new ArgumentOutOfRangeException(SR.RelativeSourceInvalidAncestorLevel);
System\Windows\Documents\AdornerDecorator.cs (2)
208throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 221throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\windows\Documents\CaretElement.cs (1)
107throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Documents\DocumentSequence.cs (3)
242throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 267throw new ArgumentOutOfRangeException(nameof(fixedDocPageNumber), SR.IDPNegativePageNumber); 292throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber);
System\Windows\Documents\FixedDocument.cs (2)
323throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 368throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber);
System\Windows\Documents\FixedPage.cs (1)
708throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\FigureLength.cs (1)
112throw new ArgumentOutOfRangeException(SR.Format(SR.InvalidCtorParameterNoNegative, "value"));
System\Windows\FrameworkContentElement.cs (1)
2100throw new ArgumentOutOfRangeException(nameof(value), SR.TemplateChildIndexOutOfRange);
System\Windows\FrameworkElement.cs (3)
637throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 641throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 6242throw new ArgumentOutOfRangeException(nameof(value), SR.TemplateChildIndexOutOfRange);
System\Windows\Input\KeyboardNavigation.cs (1)
665throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (7)
337throw new ArgumentOutOfRangeException(nameof(assemblyId)); 351throw new ArgumentOutOfRangeException(nameof(assemblyId), SR.Format(SR.AssemblyIdOutOfSequence, assemblyId)); 361throw new ArgumentOutOfRangeException(nameof(typeId)); 378throw new ArgumentOutOfRangeException(nameof(typeId), SR.Format(SR.TypeIdOutOfSequence, typeId)); 388throw new ArgumentOutOfRangeException(nameof(propertyId)); 402throw new ArgumentOutOfRangeException(nameof(propertyId), SR.Format(SR.PropertyIdOutOfSequence, propertyId)); 420throw new ArgumentOutOfRangeException(nameof(stringId), SR.Format(SR.StringIdOutOfSequence, stringId));
System\Windows\Markup\Baml2006\SharedStream.cs (2)
136throw new ArgumentOutOfRangeException(nameof(value), value, string.Empty); 240throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty);
System\Windows\Markup\XamlStream.cs (2)
163throw new ArgumentOutOfRangeException( nameof(offset)); 308throw new ArgumentOutOfRangeException( nameof(offset));
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
407throw new ArgumentOutOfRangeException(nameof(index)); 443throw new ArgumentOutOfRangeException(nameof(index));
ReachFramework (59)
AlphaFlattener\MetroDevice.cs (1)
771throw new ArgumentOutOfRangeException(nameof(maxEntries), maxEntries, string.Empty);
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
32throw new ArgumentOutOfRangeException(nameof(srid), srid, string.Empty);
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
13throw new ArgumentOutOfRangeException(nameof(maxEntries), maxEntries, string.Empty);
PrintConfig\DocumentNUp.cs (2)
519throw new ArgumentOutOfRangeException(nameof(value), 633throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\FallbackPTProvider.cs (1)
565throw new ArgumentOutOfRangeException(nameof(baseType));
PrintConfig\JobCollate.cs (1)
281throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\JobDuplex.cs (1)
279throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\JobInputBins.cs (1)
366throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\JobPageOrder.cs (1)
253throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\JobStaple.cs (1)
284throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageBorderless.cs (1)
254throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageCopyCount.cs (1)
86throw new ArgumentOutOfRangeException(nameof(value),
PrintConfig\PageDeviceFont.cs (1)
255throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageMediaSize.cs (2)
555throw new ArgumentOutOfRangeException(nameof(value)); 563throw new ArgumentOutOfRangeException((mediaSizeWidth <= 0) ? "mediaSizeWidth" : "mediaSizeHeight",
PrintConfig\PageMediaType.cs (1)
256throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageOrientation.cs (1)
253throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageOutputColor.cs (1)
256throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageOutputQuality.cs (1)
255throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageResolution.cs (3)
349throw new ArgumentOutOfRangeException(nameof(value), 376throw new ArgumentOutOfRangeException(nameof(value), 404throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PageScaling.cs (1)
524throw new ArgumentOutOfRangeException(nameof(squareScale),
PrintConfig\PageTrueTypeFont.cs (1)
255throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PhotoPrintingIntent.cs (1)
253throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PrtCap_Public.cs (1)
111throw new ArgumentOutOfRangeException(nameof(feature));
PrintConfig\PrtTicket_Public_Simple.cs (25)
359throw new ArgumentOutOfRangeException(nameof(value)); 404throw new ArgumentOutOfRangeException(nameof(value), 449throw new ArgumentOutOfRangeException(nameof(value)); 493throw new ArgumentOutOfRangeException(nameof(value)); 563throw new ArgumentOutOfRangeException(nameof(value)); 615throw new ArgumentOutOfRangeException(nameof(value)); 659throw new ArgumentOutOfRangeException(nameof(value)); 703throw new ArgumentOutOfRangeException(nameof(value)); 788throw new ArgumentOutOfRangeException(nameof(value)); 796throw new ArgumentOutOfRangeException("value.PageMediaSizeName"); 802throw new ArgumentOutOfRangeException(nameof(value), 808throw new ArgumentOutOfRangeException(nameof(value), 858throw new ArgumentOutOfRangeException(nameof(value)); 902throw new ArgumentOutOfRangeException(nameof(value)); 946throw new ArgumentOutOfRangeException(nameof(value)); 1030throw new ArgumentOutOfRangeException(nameof(value)); 1038throw new ArgumentOutOfRangeException(nameof(value)); 1044throw new ArgumentOutOfRangeException(nameof(value), 1050throw new ArgumentOutOfRangeException(nameof(value), 1107throw new ArgumentOutOfRangeException(nameof(value), 1154throw new ArgumentOutOfRangeException(nameof(value), 1200throw new ArgumentOutOfRangeException(nameof(value)); 1244throw new ArgumentOutOfRangeException(nameof(value)); 1288throw new ArgumentOutOfRangeException(nameof(value)); 1332throw new ArgumentOutOfRangeException(nameof(value));
PrintConfig\PTConverter.cs (3)
244throw new ArgumentOutOfRangeException(nameof(scope)); 264throw new ArgumentOutOfRangeException(nameof(baseType)); 272throw new ArgumentOutOfRangeException(nameof(scope));
PrintConfig\PTManager.cs (1)
377throw new ArgumentOutOfRangeException(nameof(scope));
Serialization\XpsFontSubsetter.cs (3)
344throw new ArgumentOutOfRangeException(SR.ReachPackaging_SequenceCntMustBe1); 359throw new ArgumentOutOfRangeException(SR.ReachPackaging_SequenceCntMustBe1); 364throw new ArgumentOutOfRangeException(SR.ReachPackaging_CommitCountPolicyLessThan1);
Replay (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
181throw new ArgumentOutOfRangeException($"Request is over {MaximumRequestSize >> 20}MB in length");
Roslyn.Test.PdbUtilities (2)
Reader\Token2SourceLineExporter.cs (2)
408throw new ArgumentOutOfRangeException(nameof(capacity), "ArgumentOutOfRange_NeedNonNegNum"); 410throw new ArgumentOutOfRangeException(nameof(loadFactorPerc), "ArgumentOutOfRange_IntHashTableLoadFactor");
Shared (4)
EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Throw\Throw.cs (3)
332=> throw new ArgumentOutOfRangeException(paramName); 344=> throw new ArgumentOutOfRangeException(paramName, message); 357=> throw new ArgumentOutOfRangeException(paramName, actualValue, message);
System.Collections (16)
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)
970throw 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); 689throw 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\ThrowHelper.cs (1)
30throw new ArgumentOutOfRangeException("index");
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)
169throw 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)
371throw 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.Configuration.ConfigurationManager (17)
System\Configuration\ConfigurationSectionCollection.cs (1)
72if (array.Length < c + index) throw new ArgumentOutOfRangeException(nameof(index));
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
76if (array.Length < c + index) throw new ArgumentOutOfRangeException(nameof(index));
System\Configuration\IntegerValidator.cs (2)
23if (resolution <= 0) throw new ArgumentOutOfRangeException(nameof(resolution)); 26throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);
System\Configuration\IntegerValidatorAttribute.cs (2)
20throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 32throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System\Configuration\LongValidator.cs (2)
23if (resolution <= 0) throw new ArgumentOutOfRangeException(nameof(resolution)); 26throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);
System\Configuration\LongValidatorAttribute.cs (2)
20throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 31throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System\Configuration\PropertyInformationCollection.cs (1)
49if (array.Length < Count + index) throw new ArgumentOutOfRangeException(nameof(index));
System\Configuration\StringValidatorAttribute.cs (2)
21throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 33throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System\Configuration\TimeSpanValidator.cs (2)
23if (resolutionInSeconds < 0) throw new ArgumentOutOfRangeException(nameof(resolutionInSeconds)); 26throw new ArgumentOutOfRangeException(nameof(minValue), SR.Validator_min_greater_than_max);
System\Configuration\TimeSpanValidatorAttribute.cs (2)
29throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max); 43throw new ArgumentOutOfRangeException(nameof(value), SR.Validator_min_greater_than_max);
System.Console (4)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\Console.cs (2)
553throw new ArgumentOutOfRangeException(nameof(left), left, SR.ArgumentOutOfRange_ConsoleBufferBoundaries); 555throw 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.Data.Odbc (2)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
81ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName); 88ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, message);
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Activity.cs (7)
1905throw new ArgumentOutOfRangeException(nameof(idData)); 1918throw new ArgumentOutOfRangeException(nameof(idData)); 1966throw new ArgumentOutOfRangeException(nameof(idData)); 2038throw new ArgumentOutOfRangeException("idData"); 2098throw new ArgumentOutOfRangeException(nameof(idData)); 2111throw new ArgumentOutOfRangeException(nameof(idData)); 2157throw new ArgumentOutOfRangeException(nameof(idData));
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)
48throw new ArgumentOutOfRangeException(nameof(ruleSet)); 71throw 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)
151throw new ArgumentOutOfRangeException(nameof(value));
System\Formats\Tar\TarHeader.Write.cs (2)
80_ => throw new ArgumentOutOfRangeException(nameof(format)) 132_ => throw new ArgumentOutOfRangeException(nameof(format))
System\Formats\Tar\TarWriter.cs (1)
70throw new ArgumentOutOfRangeException(nameof(format));
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
132_ => throw new ArgumentOutOfRangeException(nameof(compressionLevel)),
System\IO\Compression\ZipArchive.cs (1)
156throw new ArgumentOutOfRangeException(nameof(mode));
System\IO\Compression\ZipArchiveEntry.cs (1)
280throw new ArgumentOutOfRangeException(nameof(value), SR.DateTimeOutOfRange);
System.IO.Compression.Brotli (5)
System\IO\Compression\enc\BrotliEncoder.cs (5)
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)); 117throw new ArgumentOutOfRangeException(nameof(inputSize)); 205throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 209throw 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)
38throw 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.Packaging (8)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
211throw new ArgumentOutOfRangeException(nameof(origin));
System\IO\Packaging\InternalRelationshipCollection.cs (1)
405throw new ArgumentOutOfRangeException(nameof(targetMode));
System\IO\Packaging\Package.cs (3)
824throw new ArgumentOutOfRangeException(nameof(mode)); 831throw new ArgumentOutOfRangeException(nameof(access)); 838throw new ArgumentOutOfRangeException(nameof(compressionOption));
System\IO\Packaging\PackageRelationshipSelector.cs (1)
54throw new ArgumentOutOfRangeException(nameof(selectorType));
System\IO\Packaging\PackageXmlStringTable.cs (1)
79throw new ArgumentOutOfRangeException(nameof(id));
System\IO\Packaging\XmlCompatibilityReader.cs (1)
437throw new ArgumentOutOfRangeException(nameof(i));
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.IO.Ports (24)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
System\IO\Ports\SerialPort.cs (18)
158throw new ArgumentOutOfRangeException(nameof(BaudRate), SR.ArgumentOutOfRange_NeedPosNum); 241throw new ArgumentOutOfRangeException(nameof(DataBits), SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, MinDataBits, MaxDataBits)); 330throw new ArgumentOutOfRangeException(nameof(Handshake), SR.ArgumentOutOfRange_Enum); 367throw new ArgumentOutOfRangeException(nameof(Parity), SR.ArgumentOutOfRange_Enum); 416throw new ArgumentOutOfRangeException(nameof(ReadBufferSize)); 435throw new ArgumentOutOfRangeException(nameof(ReadTimeout), SR.ArgumentOutOfRange_Timeout); 455throw new ArgumentOutOfRangeException(nameof(ReceivedBytesThreshold), SR.ArgumentOutOfRange_NeedPosNum); 497throw new ArgumentOutOfRangeException(nameof(StopBits), SR.ArgumentOutOfRange_Enum); 514throw new ArgumentOutOfRangeException(nameof(WriteBufferSize)); 533throw new ArgumentOutOfRangeException(nameof(WriteTimeout), SR.ArgumentOutOfRange_WriteTimeout); 665throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 667throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 806throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 808throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1197throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1199throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1217throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 1219throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired);
System\IO\Ports\SerialStream.cs (2)
96throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNumRequired); 98throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNumRequired);
System\IO\Ports\SerialStream.Unix.cs (3)
100throw new ArgumentOutOfRangeException(nameof(ReadTimeout), SR.ArgumentOutOfRange_Timeout); 114throw new ArgumentOutOfRangeException(nameof(ReadTimeout), SR.ArgumentOutOfRange_Timeout); 126throw new ArgumentOutOfRangeException(nameof(BaudRate), SR.ArgumentOutOfRange_NeedPosNum);
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
15internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument) => throw new ArgumentOutOfRangeException(GetArgumentString(argument));
System.Linq.AsyncEnumerable (1)
System\Linq\ThrowHelper.cs (1)
39internal static void ThrowArgumentOutOfRangeException(string paramName) => throw new ArgumentOutOfRangeException(paramName);
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)
292throw 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)
243throw new ArgumentOutOfRangeException(nameof(value), value, 283throw new ArgumentOutOfRangeException(nameof(value));
System\Net\Http\HttpContent.cs (1)
594throw 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)
105throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Offset)); 109throw 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)
652throw 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)
199throw new ArgumentOutOfRangeException(argumentName, value, SR.Format(SR.net_quic_in_range, propertyName, max)); 207throw 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)
35throw new ArgumentOutOfRangeException(nameof(uri)); 103throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero);
System\Net\FtpWebRequest.cs (3)
363throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 401throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 490throw new ArgumentOutOfRangeException(nameof(uri));
System\Net\HttpWebRequest.cs (5)
301throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 317throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 856throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 1498throw new ArgumentOutOfRangeException(from < 0 ? nameof(from) : nameof(to), SR.net_rangetoosmall); 1502throw 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)
136throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 163throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero);
System\Net\Sockets\Socket.cs (7)
885throw new ArgumentOutOfRangeException(nameof(port)); 910throw new ArgumentOutOfRangeException(nameof(port)); 945throw new ArgumentOutOfRangeException(nameof(port)); 2024throw new ArgumentOutOfRangeException(nameof(receivedAddress), SR.net_sockets_address_small); 2403throw new ArgumentOutOfRangeException(nameof(checkRead), SR.Format(SR.net_sockets_toolarge_select, nameof(checkRead), MaxSelect.ToString())); 2407throw new ArgumentOutOfRangeException(nameof(checkWrite), SR.Format(SR.net_sockets_toolarge_select, nameof(checkWrite), MaxSelect.ToString())); 2411throw 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)
2105throw new ArgumentOutOfRangeException();
System\Net\Sockets\TCPClient.cs (3)
64throw new ArgumentOutOfRangeException(nameof(port)); 133throw new ArgumentOutOfRangeException(nameof(port)); 152throw new ArgumentOutOfRangeException(nameof(port));
System\Net\Sockets\TCPListener.cs (3)
41throw new ArgumentOutOfRangeException(nameof(port)); 54throw new ArgumentOutOfRangeException(nameof(port)); 251throw new ArgumentOutOfRangeException(nameof(port));
System\Net\Sockets\UDPClient.cs (5)
57throw new ArgumentOutOfRangeException(nameof(port)); 464throw new ArgumentOutOfRangeException(nameof(timeToLive)); 671throw new ArgumentOutOfRangeException(nameof(port)); 695throw new ArgumentOutOfRangeException(nameof(port)); 810throw 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)
105throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Offset)); 109throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Count));
System\Net\WebSockets\ValueWebSocketReceiveResult.cs (1)
35private 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 (2)
51throw new ArgumentOutOfRangeException(nameof(KeepAliveInterval), value, 70throw new ArgumentOutOfRangeException(nameof(KeepAliveTimeout), value,
System\Net\WebSockets\WebSocketDeflateOptions.cs (2)
30throw new ArgumentOutOfRangeException(nameof(ClientMaxWindowBits), value, 57throw new ArgumentOutOfRangeException(nameof(ServerMaxWindowBits), value,
System.Net.WebSockets.Client (4)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (2)
105throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Offset)); 109throw new ArgumentOutOfRangeException(parameterName + "." + nameof(arraySegment.Count));
System\Net\WebSockets\ClientWebSocketOptions.cs (2)
190throw new ArgumentOutOfRangeException(nameof(value), value, 212throw new ArgumentOutOfRangeException(nameof(value), value,
System.Numerics.Tensors (9)
System\NRange.cs (1)
122private static void ThrowArgumentOutOfRangeException() => throw new ArgumentOutOfRangeException("length");
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (1)
689throw 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)
343throw new ArgumentOutOfRangeException(nameof(filter), "Number of dimensions does not equal the number of dimensions in the span"); 462throw 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 (4)
40throw new ArgumentOutOfRangeException(); 64throw new ArgumentOutOfRangeException(); 79throw new ArgumentOutOfRangeException("value", SR.ThrowArgument_ValueNonNegative); 211throw new ArgumentOutOfRangeException(SR.ThrowArgument_StrideLessThan0);
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
37throw new ArgumentOutOfRangeException(nameof(dictionaryCreationThreshold), SR.ArgumentOutOfRange_InvalidThreshold);
System.Private.CoreLib (464)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
32throw new ArgumentOutOfRangeException();
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\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)
205private static void ThrowTicksOutOfRange() => throw new ArgumentOutOfRangeException("ticks", SR.ArgumentOutOfRange_DateTimeBadTicks); 207internal static void ThrowMillisecondOutOfRange() => throw new ArgumentOutOfRangeException("millisecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MillisecondsPerSecond - 1)); 208internal static void ThrowMicrosecondOutOfRange() => throw new ArgumentOutOfRangeException("microsecond", SR.Format(SR.ArgumentOutOfRange_Range, 0, TimeSpan.MicrosecondsPerMillisecond - 1)); 209private static void ThrowDateArithmetic(int param) => throw new ArgumentOutOfRangeException(param switch { 0 => "value", 1 => "t", _ => "months" }, SR.ArgumentOutOfRange_DateArithmetic); 210private static void ThrowAddOutOfRange() => throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_AddValue); 963if (months < -120000 || months > 120000) throw new ArgumentOutOfRangeException(nameof(months), SR.ArgumentOutOfRange_DateTimeBadMonths); 1025throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_DateTimeBadYears); 1269throw new ArgumentOutOfRangeException(nameof(fileTime), SR.ArgumentOutOfRange_FileTimeInvalid); 1708throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_FileTimeInvalid);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
927static void ThrowOffsetOutOfRange() => throw new ArgumentOutOfRangeException(nameof(offset), SR.Argument_OffsetOutOfRange); 945static void ThrowOutOfRange() => throw 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)
116_ => throw new ArgumentOutOfRangeException(nameof(type)), 142throw new ArgumentOutOfRangeException(nameof(type)); 168throw new ArgumentOutOfRangeException(nameof(type)); 207throw new ArgumentOutOfRangeException(nameof(type));
src\libraries\System.Private.CoreLib\src\System\Environment.cs (3)
153throw new ArgumentOutOfRangeException(nameof(folder), folder, SR.Format(SR.Arg_EnumIllegalVal, folder)); 156throw new ArgumentOutOfRangeException(nameof(option), option, SR.Format(SR.Arg_EnumIllegalVal, option)); 259throw new ArgumentOutOfRangeException(nameof(target), target, SR.Format(SR.Arg_EnumIllegalVal, target));
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
68new ArgumentOutOfRangeException(nameof(name), name, errno.GetErrorMessage()) :
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (5)
130throw new ArgumentOutOfRangeException(nameof(value), value, SR.ArgumentOutOfRange_AddValue); 478throw new ArgumentOutOfRangeException( 489_ => throw new ArgumentOutOfRangeException( 671throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 675throw 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)
393throw new ArgumentOutOfRangeException(nameof(string1), SR.ArgumentOutOfRange_OffsetLength); 397throw 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)
464throw new ArgumentOutOfRangeException(nameof(value), value, SR.Argument_InvalidCalendar); 543throw new ArgumentOutOfRangeException(nameof(era), era + 1, SR.ArgumentOutOfRange_InvalidEraValue); 572throw new ArgumentOutOfRangeException(nameof(era), era + 1, SR.ArgumentOutOfRange_InvalidEraValue); 646throw new ArgumentOutOfRangeException( 676throw 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 (9)
85throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_NeedNonNegNum); 134throw new ArgumentOutOfRangeException( 148throw new ArgumentOutOfRangeException(nameof(era), SR.ArgumentOutOfRange_InvalidEraValue); 179throw new ArgumentOutOfRangeException( 210throw new ArgumentOutOfRangeException( 326throw new ArgumentOutOfRangeException(nameof(time), SR.ArgumentOutOfRange_Era); 406throw new ArgumentOutOfRangeException( 446throw new ArgumentOutOfRangeException( 494throw 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 (2)
141throw new ArgumentOutOfRangeException(nameof(week), SR.ArgumentOutOfRange_Week_ISO); 149throw 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)
391throw 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)
214throw new ArgumentOutOfRangeException(nameof(startLine)); 219throw new ArgumentOutOfRangeException(nameof(endLine)); 224throw new ArgumentOutOfRangeException(nameof(startColumn)); 230throw 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)
935_ => throw new ArgumentOutOfRangeException(nameof(scale)), 951_ => throw new ArgumentOutOfRangeException(nameof(scale)), 967_ => throw new ArgumentOutOfRangeException(nameof(scale)), 983_ => throw new ArgumentOutOfRangeException(nameof(scale)), 999_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1015_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1031_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1047_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1063_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1079_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1095_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1111_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1127_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1143_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1159_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1175_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1191_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1207_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1223_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1239_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1255_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1271_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1287_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1303_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1320_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1336_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1352_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1368_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1384_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1400_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1416_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1432_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1448_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1464_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1480_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1496_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1512_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1528_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1544_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1560_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1576_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1592_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1608_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1624_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1640_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1656_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1672_ => throw new ArgumentOutOfRangeException(nameof(scale)), 1688_ => 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)
389throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 395throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 481throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 490throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_IndexMustBeLessOrEqual);
src\libraries\System.Private.CoreLib\src\System\String.cs (4)
159throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR); 165throw new ArgumentOutOfRangeException(nameof(ptr), SR.ArgumentOutOfRange_PartialWCHAR); 219throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_PartialWCHAR); 278throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_PartialWCHAR);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
1186throw new ArgumentOutOfRangeException(nameof(startIndex), startIndex < 0 ? SR.ArgumentOutOfRange_StartIndex : SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2271throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_StartIndexLargerThanLength); 2276throw 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), 149throw new ArgumentOutOfRangeException(nameof(bytes), 153throw 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), 135throw new ArgumentOutOfRangeException(nameof(chars), 139throw 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); 890throw new ArgumentOutOfRangeException(nameof(sourceIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 942throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 982throw new ArgumentOutOfRangeException(nameof(length), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1296throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1323throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1334throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1349throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1365throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 1401throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2085throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2089throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2214throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2219throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 2307throw new ArgumentOutOfRangeException(nameof(valueCount), SR.ArgumentOutOfRange_LengthGreaterThanCapacity); 2555throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity); 2644throw 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); 188throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 191throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 240throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 280throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 283throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 332throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 357throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1759throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1779throw 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); 196throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 199throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 248throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 288throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 291throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 340throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 473throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 817throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_GetByteCountOverflow); 1082throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1108throw 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); 232throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 235throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 284throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 324throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 327throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 376throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 748throw 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); 226throw new ArgumentOutOfRangeException( 260throw new ArgumentOutOfRangeException( 312throw new ArgumentOutOfRangeException( 593throw new ArgumentOutOfRangeException( 625throw new ArgumentOutOfRangeException( 788throw 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); 3016throw new ArgumentOutOfRangeException(nameof(continuationOptions), SR.Task_ContinueWith_ESandLR); 3030throw new ArgumentOutOfRangeException(nameof(continuationOptions)); 3035throw 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)
518throw new ArgumentOutOfRangeException(nameof(state), SR.ArgumentOutOfRange_Enum);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
1663throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal); 1683throw new ArgumentOutOfRangeException(nameof(millisecondsTimeOutInterval), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (19)
95throw new ArgumentOutOfRangeException(); 212throw new ArgumentOutOfRangeException(nameof(month), month, SR.ArgumentOutOfRange_Month); 218throw new ArgumentOutOfRangeException(nameof(dayNumber), dayNumber, SR.ArgumentOutOfRange_DayNumber); 224throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadYearMonthDay); 230throw new ArgumentOutOfRangeException(null, SR.ArgumentOutOfRange_BadHourMinuteSecond); 236throw new ArgumentOutOfRangeException(null, SR.Overflow_TimeSpanTooLong); 242throw new ArgumentOutOfRangeException(name, SR.ArgumentOutOfRange_RoundingDigits); 248throw new ArgumentOutOfRangeException(name, SR.ArgumentOutOfRange_RoundingDigits_MathF); 254throw new ArgumentOutOfRangeException(parameterName, value, SR.Format(SR.ArgumentOutOfRange_Range, minInclusive, maxInclusive)); 371throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 536throw new ArgumentOutOfRangeException(nameof(state), state, SR.Argument_UnexpectedStateForKnownCallback); 626throw new ArgumentOutOfRangeException("precision", SR.Format(SR.Argument_PrecisionTooLarge, StandardFormat.MaxPrecision)); 632throw new ArgumentOutOfRangeException("symbol", SR.Argument_BadFormatSpecifier); 638throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_NeedNonNegNum); 644throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_Enum); 710return new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNum); 712return new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 745return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource)); 755return 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)
2163throw 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)
81throw new ArgumentOutOfRangeException(nameof(kind), 202throw new ArgumentOutOfRangeException(nameof(mode), SR.ArgumentOutOfRange_Enum); 445throw new ArgumentOutOfRangeException(nameof(maxGenerationThreshold), 454throw new ArgumentOutOfRangeException(nameof(largeObjectHeapThreshold), 533throw 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)
52throw new ArgumentOutOfRangeException(nameof(metadataToken), 135throw new ArgumentOutOfRangeException(nameof(metadataToken), 165throw new ArgumentOutOfRangeException(nameof(metadataToken), 273throw new ArgumentOutOfRangeException(nameof(metadataToken), 304throw new ArgumentOutOfRangeException(nameof(metadataToken),
src\System\RuntimeHandles.cs (3)
1845throw new ArgumentOutOfRangeException(nameof(typeToken), 1898throw new ArgumentOutOfRangeException(nameof(methodToken), 1951throw new ArgumentOutOfRangeException(nameof(fieldToken),
src\System\Threading\Thread.CoreCLR.cs (1)
416throw new ArgumentOutOfRangeException(nameof(millisecondsTimeout), SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
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)
400throw new ArgumentOutOfRangeException(nameof(baseUri)); 442throw new ArgumentOutOfRangeException(nameof(baseUri)); 546throw new ArgumentOutOfRangeException(nameof(baseUri));
System\UriExt.cs (4)
364throw new ArgumentOutOfRangeException(nameof(components), components, SR.net_uri_NotJustSerialization); 367throw new ArgumentOutOfRangeException(nameof(format)); 915throw new ArgumentOutOfRangeException(nameof(format)); 981throw 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.Windows.Core (5)
System\Collections\Generic\ArrayBuilder.cs (1)
54throw new ArgumentOutOfRangeException(nameof(item), "Collection is at max capacity.");
System\Private\Windows\BinaryFormat\Serializer\NullRecord.cs (2)
21throw new ArgumentOutOfRangeException(nameof(value)); 34throw new ArgumentOutOfRangeException(nameof(nullCount));
System\Private\Windows\Ole\DragDropHelper.cs (2)
340throw new ArgumentOutOfRangeException(nameof(message)); 345throw new ArgumentOutOfRangeException(nameof(messageReplacementToken));
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 (24)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
30throw new ArgumentOutOfRangeException(nameof(length));
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
84throw 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\Metadata\TypeName.cs (1)
493? throw new ArgumentOutOfRangeException(nameof(rank))
System\Reflection\PortableExecutable\PEReader.cs (2)
84throw new ArgumentOutOfRangeException(nameof(size)); 170throw 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)
237throw new ArgumentOutOfRangeException(nameof(policy), RH.Format(SR.Argument_out_of_range, "SlidingExpiration", ObjectCache.NoSlidingExpiration, s_oneYear)); 246throw 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 (43)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
152throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 171throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
151throw new ArgumentOutOfRangeException(nameof(signatureFormat));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (3)
53throw new ArgumentOutOfRangeException(nameof(pbeParameters)); 103throw new ArgumentOutOfRangeException(nameof(pbeParameters)); 169throw new ArgumentOutOfRangeException(nameof(iterationCount));
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\Helpers.cs (1)
387throw new ArgumentOutOfRangeException(nameof(hashAlgorithmName));
System\Security\Cryptography\HKDF.cs (2)
98throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength)); 159throw new ArgumentOutOfRangeException(nameof(outputLength), SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength));
System\Security\Cryptography\OidCollection.cs (2)
79throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 97throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\PemEncoding.cs (2)
385throw new ArgumentOutOfRangeException(nameof(labelLength), SR.Argument_PemEncoding_EncodedSizeTooLarge); 387throw 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.Security.Cryptography.Pkcs (16)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
152throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 171throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (3)
53throw new ArgumentOutOfRangeException(nameof(pbeParameters)); 103throw new ArgumentOutOfRangeException(nameof(pbeParameters)); 169throw new ArgumentOutOfRangeException(nameof(iterationCount));
System\Security\Cryptography\Pkcs\Asn1\Rfc3161Accuracy.manual.cs (1)
16throw new ArgumentOutOfRangeException(nameof(accuracyInMicroseconds));
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (3)
42throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 98throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 117throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (3)
34throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 67throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess); 85throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
401throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
332throw new ArgumentOutOfRangeException(nameof(index));
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (2)
44throw new ArgumentOutOfRangeException(nameof(index)); 64throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexMustBeLess);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
41throw new ArgumentOutOfRangeException(nameof(value), SR.Cryptography_Xml_InvalidKeySize);
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WsTrustTokenParameters.cs (2)
128? throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.IssuedTokenRenewalThresholdPercentageIncorrect, value)) 156? throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.MaxIssuedTokenCachingTimeMustBeGreaterThanTimeSpanZero, value))
System.ServiceModel.NetFramingBase (13)
System\ServiceModel\Channels\BufferedConnection.cs (1)
112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(buffer.Length), buffer.Length, SR.Format(
System\ServiceModel\Channels\Connection.cs (2)
127throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\Channels\FramingDecoders.cs (1)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(size), size, SR.ValueMustBePositive));
System\ServiceModel\Channels\FramingEncoders.cs (3)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageFrame.Offset", 314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("messageFrame.Offset",
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (1)
59new ArgumentOutOfRangeException("bindingElement.MaxReceivedMessageSize",
System\ServiceModel\Channels\OutputChannel.cs (3)
36new ArgumentOutOfRangeException(nameof(timeout), timeout, SR.SFxTimeoutOutOfRange0)); 85new ArgumentOutOfRangeException(nameof(timeout), timeout, SR.SFxTimeoutOutOfRange0)); 110new ArgumentOutOfRangeException(nameof(timeout), timeout, SR.SFxTimeoutOutOfRange0));
System.ServiceModel.NetNamedPipe (5)
System\ServiceModel\Channels\NamedPipeConnectionPoolSettings.cs (3)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\NamedPipeTransportSecurity.cs (1)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\NetNamedPipeSecurity.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value"));
System.ServiceModel.Syndication (6)
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (1)
75throw new ArgumentOutOfRangeException(nameof(maxExtensionSize));
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
195throw new ArgumentOutOfRangeException(nameof(value), value.Value, SR.InvalidTimeToLiveValue);
System\ServiceModel\Syndication\SyndicationLink.cs (2)
23throw new ArgumentOutOfRangeException(nameof(length)); 67throw new ArgumentOutOfRangeException(nameof(value));
System\ServiceModel\Syndication\TextSyndicationContent.cs (1)
22throw new ArgumentOutOfRangeException(nameof(textKind));
System\ServiceModel\XmlBuffer.cs (1)
46throw new ArgumentOutOfRangeException(nameof(maxBufferSize), maxBufferSize, SR.ValueMustBeNonNegative);
System.ServiceModel.UnixDomainSocket (10)
System\ServiceModel\Channels\SocketConnection.cs (2)
160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(buffer.Length), buffer.Length, SR.ValueMustBeNonNegative)); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(buffer.Length), buffer.Length, SR.ValueMustBePositive));
System\ServiceModel\Channels\UnixDomainSocketConnectionPoolSettings.cs (5)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\UnixDomainSocketSecurity.cs (1)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\UnixDomainSocketTransportSecurity.cs (2)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
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 (9)
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\ThrowHelper.cs (3)
15throw new ArgumentOutOfRangeException(); 46throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 51return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
System.Text.Json (19)
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)
178throw new ArgumentOutOfRangeException(nameof(defaults)); 452throw new ArgumentOutOfRangeException(nameof(value)); 478throw new ArgumentOutOfRangeException(nameof(value)); 648throw new ArgumentOutOfRangeException(nameof(value), SR.JsonSerializerDoesNotSupportComments);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
213throw new ArgumentOutOfRangeException(nameof(value));
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
507throw new ArgumentOutOfRangeException(nameof(value)); 548throw new ArgumentOutOfRangeException(nameof(value)); 592throw new ArgumentOutOfRangeException(nameof(value));
System\Text\Json\ThrowHelper.cs (4)
48return new ArgumentOutOfRangeException(parameterName, message); 60throw new ArgumentOutOfRangeException(paramName, SR.ArrayIndexNegative); 66throw new ArgumentOutOfRangeException(nameof(typeToConvert), SR.Format(SR.SerializerConverterFactoryInvalidArgument, typeToConvert.FullName)); 72throw new ArgumentOutOfRangeException(paramName, SR.ArgumentOutOfRange_Generic_MustBeNonNegative);
System\ThrowHelper.cs (3)
15throw new ArgumentOutOfRangeException(); 46throw new ArgumentOutOfRangeException(GetArgumentName(argument)); 51return new ArgumentOutOfRangeException(GetArgumentName(argument), GetResourceString(resource));
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)
45throw 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)
84throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 123throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (2)
105throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 141throw 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)
118throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 153throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (2)
112throw new ArgumentOutOfRangeException(nameof(tokenCount), tokenCount, SR.Format(SR.TokenLimitExceeded, tokenCount, _options.TokenLimit)); 146throw 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)); 954throw 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)
54throw new ArgumentOutOfRangeException(nameof(index));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
1055throw new ArgumentOutOfRangeException(parameterName);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
298throw new ArgumentOutOfRangeException(parameterName);
System.Windows.Forms (79)
System\Windows\Forms\Application.cs (1)
297_ => throw new ArgumentOutOfRangeException(nameof(systemColorMode))
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (2)
100_ => throw new ArgumentOutOfRangeException(nameof(_childWindowType)) 108_ => throw new ArgumentOutOfRangeException(nameof(_childWindowType))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
24throw new ArgumentOutOfRangeException(nameof(cellAddress)); 29throw new ArgumentOutOfRangeException(nameof(cellAddress)); 27465throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture))); 27470throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (2)
365throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, MinBandThickness)); 369throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumWidthSmallerThanOne, MinBandThickness));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (4)
243throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue)); 250throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexNegative); 255throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexExceedsColumnCount); 277throw new ArgumentOutOfRangeException(nameof(DisplayIndex), value, SR.DataGridViewColumn_DisplayIndexTooNegative);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
323throw new ArgumentOutOfRangeException(nameof(DropDownWidth), value, string.Format(SR.DataGridViewComboBoxCell_DropDownWidthOutOfRange, 1)); 383throw new ArgumentOutOfRangeException(
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (13)
325throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 495throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange); 568throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange); 573throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 1331throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange); 1399throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange); 1404throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 1457throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange); 1586throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange); 1591throw new ArgumentOutOfRangeException(nameof(indexDestination), SR.DataGridViewRowCollection_IndexDestinationOutOfRange); 1596throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange); 1761throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange); 2165throw new ArgumentOutOfRangeException(nameof(index), SR.DataGridViewRowCollection_RowIndexOutOfRange);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeightInfoNeededEventArgs.cs (1)
43throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, DataGridViewBand.MinBandThickness));
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
605throw new ArgumentOutOfRangeException( 661throw new ArgumentOutOfRangeException( 876throw new ArgumentOutOfRangeException(
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
159throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, "ImageSize.Width", value.Width, 1, s_maxImageWidth)); 164throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, "ImageSize.Height", value.Height, 1, s_maxImageHeight));
System\Windows\Forms\Controls\Labels\LinkClickedEventArgs.cs (1)
34throw new ArgumentOutOfRangeException(nameof(linkLength));
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
178throw new ArgumentOutOfRangeException(nameof(LinkArea), value, SR.LinkLabelAreaStart); 183throw new ArgumentOutOfRangeException(nameof(LinkArea), value, SR.LinkLabelAreaLength);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
128throw new ArgumentOutOfRangeException(nameof(DisplayIndex), SR.ColumnHeaderBadDisplayIndex);
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
95throw new ArgumentOutOfRangeException(nameof(index), index, string.Format(SR.InvalidArgument, nameof(index), index));
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
510throw new ArgumentOutOfRangeException(nameof(index), index, string.Format(SR.InvalidArgument, nameof(index), index));
System\Windows\Forms\Controls\ListView\ListView.cs (4)
1672throw new ArgumentOutOfRangeException(nameof(TileSize), SR.ListViewTileSizeMustBePositive); 3222throw new ArgumentOutOfRangeException(nameof(searchDirection), searchDirection, string.Format(SR.InvalidArgument, nameof(searchDirection), searchDirection)); 3591? throw new ArgumentOutOfRangeException( 3668? throw new ArgumentOutOfRangeException(
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
423throw new ArgumentOutOfRangeException(nameof(index), index, string.Format(SR.InvalidArgument, nameof(index), index));
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
553throw new ArgumentOutOfRangeException(nameof(IndentCount), SR.ListViewIndentCountCantBeNegative);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
1760throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture))); 1765throw new ArgumentOutOfRangeException(nameof(y), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
478throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, nameof(Minimum), nameof(Maximum)));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1202throw new ArgumentOutOfRangeException(nameof(value), SR.SelTabCountRange); 1852throw new ArgumentOutOfRangeException(nameof(end), end, string.Format(SR.RichTextFindEndInvalid, end));
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
522throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(ItemSize), value)); 591throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Padding), value));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (3)
283throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value)); 486throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value)); 620throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownItemCollection.cs (1)
73throw new ArgumentOutOfRangeException(nameof(item), item, string.Format(SR.InvalidArgument, nameof(item), item));
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
320throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
1566throw new ArgumentOutOfRangeException(nameof(alignment));
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
526throw new ArgumentOutOfRangeException(nameof(value), value, SR.BlinkRateMustBeZeroOrMore);
System\Windows\Forms\Form.cs (4)
1200throw new ArgumentOutOfRangeException(nameof(MaximumSize)); 1313throw new ArgumentOutOfRangeException(nameof(MinimumSize)); 2203_ => throw new ArgumentOutOfRangeException(nameof(value)) 2243_ => throw new ArgumentOutOfRangeException(nameof(cornerPreference))
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
116throw new ArgumentOutOfRangeException(nameof(value), value, SR.ContainerControlInvalidAutoScaleDimensions);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (6)
1261throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel1MinSize), value)); 1268throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel1MinSize), value)); 1290throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value.ToString())); 1297throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value)); 1319throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(SplitterWidth), value)); 1326throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(SplitterWidth), value));
System\Windows\Forms\NotifyIcon.cs (1)
244throw new ArgumentOutOfRangeException(nameof(Text), value, SR.TrayIcon_TextTooLong);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1346throw new ArgumentOutOfRangeException(nameof(rectangle)); 1514throw new ArgumentOutOfRangeException(nameof(pixelsBetweenDots));
System\Windows\Forms\Rendering\TextRenderer.cs (1)
374throw new ArgumentOutOfRangeException(nameof(flags), SR.TextFormatFlagsModifyStringNotAllowed);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
105throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(AutoScrollMargin), value));
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
363throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
223throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System\Windows\Forms\Timer.cs (1)
144throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TimerInvalidInterval, value, 0));
System.Windows.Forms.Primitives.TestUtilities (2)
Metafiles\DataHelpers.cs (1)
17throw new ArgumentOutOfRangeException(nameof(values));
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (1)
70throw new ArgumentOutOfRangeException(nameof(index));
System.Windows.Forms.Tests (1)
System\Windows\Forms\ScrollBarTests.cs (1)
1752string expectedMessage = new ArgumentOutOfRangeException(paramName, string.Format(SR.InvalidBoundArgument, nameof(control.Value), value, $"'{nameof(control.Minimum)}'", $"'{nameof(control.Maximum)}'")).Message;
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
208return new ArgumentOutOfRangeException(valueName, value, message);
System.Xaml (27)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (26)
286throw new ArgumentOutOfRangeException(nameof(index)); 475throw new ArgumentOutOfRangeException(nameof(index)); 482throw new ArgumentOutOfRangeException(nameof(index)); 503throw new ArgumentOutOfRangeException(nameof(index)); 554throw new ArgumentOutOfRangeException(nameof(index)); 575throw new ArgumentOutOfRangeException(nameof(index)); 607throw new ArgumentOutOfRangeException(nameof(oldList)); 651throw new ArgumentOutOfRangeException(nameof(oldList)); 869throw new ArgumentOutOfRangeException(nameof(index)); 876throw new ArgumentOutOfRangeException(nameof(index)); 909throw new ArgumentOutOfRangeException(nameof(index)); 1005throw new ArgumentOutOfRangeException(nameof(index)); 1035throw new ArgumentOutOfRangeException(nameof(index)); 1091throw new ArgumentOutOfRangeException(nameof(oldList)); 1130throw new ArgumentOutOfRangeException(nameof(oldList)); 1191throw new ArgumentOutOfRangeException(nameof(oldList)); 1374throw new ArgumentOutOfRangeException(nameof(index)); 1480throw new ArgumentOutOfRangeException(nameof(oldList)); 1713throw new ArgumentOutOfRangeException(nameof(index)); 1725throw new ArgumentOutOfRangeException(nameof(index)); 1842throw new ArgumentOutOfRangeException(nameof(index)); 1863throw new ArgumentOutOfRangeException(nameof(index)); 2093throw new ArgumentOutOfRangeException(nameof(index)); 2105throw new ArgumentOutOfRangeException(nameof(index)); 2222throw new ArgumentOutOfRangeException(nameof(index)); 2243throw new ArgumentOutOfRangeException(nameof(index));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
464throw new ArgumentOutOfRangeException(nameof(i));
UIAutomationClientSideProviders (21)
MS\Internal\AutomationProxies\WindowsIPAddress.cs (4)
176throw new ArgumentOutOfRangeException(nameof(row), row, SR.GridRowOutOfRange); 181throw new ArgumentOutOfRangeException(nameof(column), column, SR.GridColumnOutOfRange); 373throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 377throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsListView.cs (3)
742throw new ArgumentOutOfRangeException(nameof(row), row, SR.GridRowOutOfRange); 747throw new ArgumentOutOfRangeException(nameof(column), column, SR.GridColumnOutOfRange); 1661throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (2)
367throw new ArgumentOutOfRangeException(nameof(row), row, SR.GridRowOutOfRange); 372throw new ArgumentOutOfRangeException(nameof(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)
284throw new ArgumentOutOfRangeException(sbFlag == NativeMethods.SB_HORZ ? "horizontalPercent" : "verticalPercent", SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
680throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 684throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
277throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 281throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (2)
256throw new ArgumentOutOfRangeException(nameof(row), row, SR.GridRowOutOfRange); 261throw new ArgumentOutOfRangeException(nameof(column), column, SR.GridColumnOutOfRange);
MS\Internal\AutomationProxies\WindowsTab.cs (1)
493throw new ArgumentOutOfRangeException(nameof(horizontalPercent), SR.ScrollBarOutOfRange);
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
216throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMax); 220throw new ArgumentOutOfRangeException("value", val, SR.RangeValueMin);
vbc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
181throw new ArgumentOutOfRangeException($"Request is over {MaximumRequestSize >> 20}MB in length");
VBCSCompiler (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
181throw new ArgumentOutOfRangeException($"Request is over {MaximumRequestSize >> 20}MB in length");
WinFormsControlsTest (3)
ListViewTest.cs (2)
47_ => throw new ArgumentOutOfRangeException(), 113_ => throw new ArgumentOutOfRangeException(),
MultipleControls.cs (1)
75_ => throw new ArgumentOutOfRangeException(),
WinShimmer (1)
Program.cs (1)
25throw new ArgumentOutOfRangeException("args", $"WinShimmer was provided {args.Length} arguments instead of 3");
6174 references to ArgumentOutOfRangeException
Aspire.Hosting (8)
ApplicationModel\AllocatedEndpoint.cs (2)
25ArgumentOutOfRangeException.ThrowIfLessThan(port, 1, nameof(port)); 26ArgumentOutOfRangeException.ThrowIfGreaterThan(port, 65535, nameof(port));
Dcp\Model\ExecutableReplicaSet.cs (1)
99ArgumentOutOfRangeException.ThrowIfNegativeOrZero(replicas, nameof(replicas));
Utils\PasswordGenerator.cs (5)
32ArgumentOutOfRangeException.ThrowIfNegative(minLength); 33ArgumentOutOfRangeException.ThrowIfNegative(minLower); 34ArgumentOutOfRangeException.ThrowIfNegative(minUpper); 35ArgumentOutOfRangeException.ThrowIfNegative(minNumeric); 36ArgumentOutOfRangeException.ThrowIfNegative(minSpecial);
Aspire.Hosting.Azure.ServiceBus (5)
src\Aspire.Hosting\Utils\PasswordGenerator.cs (5)
32ArgumentOutOfRangeException.ThrowIfNegative(minLength); 33ArgumentOutOfRangeException.ThrowIfNegative(minLower); 34ArgumentOutOfRangeException.ThrowIfNegative(minUpper); 35ArgumentOutOfRangeException.ThrowIfNegative(minNumeric); 36ArgumentOutOfRangeException.ThrowIfNegative(minSpecial);
Aspire.Hosting.Containers.Tests (1)
ContainerResourceBuilderTests.cs (1)
141Assert.Throws<ArgumentOutOfRangeException>(() => container.WithImage("image@sha246:abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd", "tag"));
Aspire.Hosting.Tests (9)
Utils\ContainerReferenceParserTests.cs (4)
15var ex = Assert.Throws<ArgumentOutOfRangeException>(() => ContainerReferenceParser.Parse("")); 31var ex = Assert.Throws<ArgumentOutOfRangeException>(() => ContainerReferenceParser.Parse(input));
Utils\PasswordGeneratorTests.cs (5)
14Assert.Throws<ArgumentOutOfRangeException>(() => Generate(-1, true, true, true, true, 0, 0, 0, 0)); 16Assert.Throws<ArgumentOutOfRangeException>(() => Generate(10, true, true, true, true, -1, 0, 0, 0)); 17Assert.Throws<ArgumentOutOfRangeException>(() => Generate(10, true, true, true, true, 0, -1, 0, 0)); 18Assert.Throws<ArgumentOutOfRangeException>(() => Generate(10, true, true, true, true, 0, 0, -1, 0)); 19Assert.Throws<ArgumentOutOfRangeException>(() => Generate(10, true, true, true, true, 0, 0, 0, -1));
Aspire.Playground.Tests (5)
src\Aspire.Hosting\Utils\PasswordGenerator.cs (5)
32ArgumentOutOfRangeException.ThrowIfNegative(minLength); 33ArgumentOutOfRangeException.ThrowIfNegative(minLower); 34ArgumentOutOfRangeException.ThrowIfNegative(minUpper); 35ArgumentOutOfRangeException.ThrowIfNegative(minNumeric); 36ArgumentOutOfRangeException.ThrowIfNegative(minSpecial);
Aspire.RabbitMQ.Client (2)
RabbitMQEventSourceLogForwarder.cs (2)
107ArgumentOutOfRangeException.ThrowIfNegative(index); 108ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
BinaryFormatTests (1)
FormatTests\FormattedObject\CountTests.cs (1)
12func.Should().Throw<ArgumentOutOfRangeException>();
CodeGenerator (1)
HttpUtilities\CombinationsWithoutRepetition.cs (1)
18ArgumentOutOfRangeException.ThrowIfGreaterThan(p, nElements.Length);
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (1)
29catch (ArgumentOutOfRangeException)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNamedNodeMap.cs (1)
78catch (ArgumentOutOfRangeException)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
998catch (ArgumentOutOfRangeException) // Overflow
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (2)
191public ArgumentOutOfRangeException ArgumentOutOfRange(string paramName, object actualValue, string message) 193return TraceException<ArgumentOutOfRangeException>(new ArgumentOutOfRangeException(paramName, actualValue, message));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (2)
295catch (ArgumentOutOfRangeException exception) 307catch (ArgumentOutOfRangeException exception)
http2cat (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
IIS.LongTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
100catch (ArgumentOutOfRangeException)
InMemory.FunctionalTests (4)
ResponseTests.cs (2)
3583Assert.Throws<ArgumentOutOfRangeException>(() => response.BodyWriter.Advance(-1)); 3614Assert.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)
801catch (ArgumentOutOfRangeException) 812catch (ArgumentOutOfRangeException) 823catch (ArgumentOutOfRangeException) 834catch (ArgumentOutOfRangeException) 845catch (ArgumentOutOfRangeException) 888catch (ArgumentOutOfRangeException) 899catch (ArgumentOutOfRangeException) 910catch (ArgumentOutOfRangeException) 921catch (ArgumentOutOfRangeException) 932catch (ArgumentOutOfRangeException)
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
147catch (ArgumentOutOfRangeException)
Microsoft.Analyzers.Local.Tests (39)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (1)
86Assembly.GetAssembly(typeof(ArgumentOutOfRangeException))!,
Json\JsonArrayTest.cs (3)
46Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj[-1] = 0); 70Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj.Insert(-1, 0)); 80Assert.ThrowsAny<ArgumentOutOfRangeException>(() => obj.Remove(-1));
Resources\RoslynTestUtils.cs (1)
147catch (ArgumentOutOfRangeException)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
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.AsyncState (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
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 (16)
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.Diagnostics.Middleware (2)
src\Shared\BufferWriterPool\BufferWriter.cs (2)
113/// <exception cref="ArgumentOutOfRangeException"> 148/// <exception cref="ArgumentOutOfRangeException">
Microsoft.AspNetCore.HeaderParsing (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
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 (4)
SendFileResponseExtensions.cs (4)
127ArgumentOutOfRangeException.ThrowIfLessThan(offset, 0); 128ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, fileLength); 131ArgumentOutOfRangeException.ThrowIfLessThan(countValue, 0, nameof(count)); 132ArgumentOutOfRangeException.ThrowIfGreaterThan(countValue, fileLength - offset, nameof(count));
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.FormMapping.cs (2)
171var anotherException = await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await requestDelegate(httpContext));
Microsoft.AspNetCore.Http.Features (2)
WebSocketAcceptContext.cs (2)
36/// <exception cref="ArgumentOutOfRangeException"> 46ArgumentOutOfRangeException.ThrowIfLessThan(value.Value, TimeSpan.Zero);
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.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)
100catch (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)
165await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => 184await 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)
100catch (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)
100catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (35)
BufferWriterTests.cs (1)
61Assert.True(ex is ArgumentOutOfRangeException);
Http1\Http1ConnectionTests.cs (2)
948var 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)
100catch (ArgumentOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
QuicConnectionContextTests.cs (1)
764Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.Error = errorCode);
QuicStreamContextTests.cs (3)
555Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.Error = errorCode); 582Assert.Throws<ArgumentOutOfRangeException>(() => protocolErrorCodeFeature.AbortRead(errorCode, new ConnectionAbortedException())); 583Assert.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)
100catch (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.Testing (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.AspNetCore.WebSockets (2)
WebSocketOptions.cs (2)
38/// <exception cref="ArgumentOutOfRangeException"> 51ArgumentOutOfRangeException.ThrowIfLessThan(value, TimeSpan.Zero);
Microsoft.AspNetCore.WebSockets.Tests (1)
AddWebSocketsTests.cs (1)
36Assert.Throws<ArgumentOutOfRangeException>(() => new WebSocketOptions() { KeepAliveTimeout = TimeSpan.FromMicroseconds(-1) });
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)
312Assert.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> 132/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 228/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="timeout"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 243/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/> is negative and not equal to <see cref="Timeout.InfiniteTimeSpan" /> or greater than maximum allowed timer duration.</exception>
Microsoft.Build (3)
BuildCheck\Infrastructure\CheckScopeClassifier.cs (2)
31/// <exception cref="ArgumentOutOfRangeException"></exception> 45/// <exception cref="ArgumentOutOfRangeException"></exception>
ErrorUtilities.cs (1)
606/// <exception cref="ArgumentOutOfRangeException">If <paramref name="arrayIndex"/> falls outside of the bounds <paramref name="array"/>.</exception>
Microsoft.Build.BuildCheck.UnitTests (1)
CheckConfigurationEffectiveTests.cs (1)
55Should.Throw<ArgumentOutOfRangeException>(() =>
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)
606/// <exception cref="ArgumentOutOfRangeException">If <paramref name="arrayIndex"/> falls outside of the bounds <paramref name="array"/>.</exception>
ManifestUtil\Util.cs (1)
354catch (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)
606/// <exception cref="ArgumentOutOfRangeException">If <paramref name="arrayIndex"/> falls outside of the bounds <paramref name="array"/>.</exception>
Microsoft.CodeAnalysis (27)
DiaSymReader\Writer\SymUnmanagedWriter.cs (2)
130/// <exception cref="ArgumentOutOfRangeException"><paramref name="yieldOffsets"/> or <paramref name="resumeOffsets"/> differ in length.</exception> 202/// <exception cref="ArgumentOutOfRangeException"><paramref name="documentIndex"/> doesn't correspond to any defined document.</exception>
EmbeddedText.cs (1)
305catch (ArgumentOutOfRangeException)
Emit\SemanticEdit.cs (1)
101/// <exception cref="ArgumentOutOfRangeException">
Hashing\NonCryptographicHashAlgorithm.cs (1)
36/// <exception cref="ArgumentOutOfRangeException">
InternalUtilities\EncodingExtensions.cs (1)
23catch (ArgumentOutOfRangeException)
MetadataReference\AssemblyIdentity.cs (1)
92/// <exception cref="ArgumentOutOfRangeException"><paramref name="contentType"/> is not a value of the <see cref="AssemblyContentType"/> enumeration.</exception>
MetadataReference\ModuleMetadata.cs (3)
70/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is not positive.</exception> 126/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is not positive.</exception> 201/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> has an invalid value.</exception>
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
232private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
795ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 796ArgumentOutOfRangeException.ThrowIfNegative(count);
src\Dependencies\Collections\SegmentedList`1.cs (1)
774/// <exception cref="ArgumentOutOfRangeException">
Syntax\ChildSyntaxList.cs (1)
61/// <exception cref="System.ArgumentOutOfRangeException">
Syntax\SyntaxNode.cs (1)
961/// <exception cref="ArgumentOutOfRangeException">This exception is thrown if <see cref="FullSpan"/> doesn't contain the given span.</exception>
Syntax\SyntaxTokenList.cs (1)
123/// <exception cref="ArgumentOutOfRangeException">
Syntax\SyntaxTriviaList.cs (1)
121/// <exception cref="ArgumentOutOfRangeException">
Text\LinePosition.cs (1)
37/// <exception cref="ArgumentOutOfRangeException"><paramref name="line"/> or <paramref name="character"/> is less than zero. </exception>
Text\SourceText.cs (3)
245/// <exception cref="ArgumentOutOfRangeException">The <paramref name="length"/> is negative or longer than the <paramref name="buffer"/>.</exception> 461/// <exception cref="ArgumentOutOfRangeException">When position is negative or 716/// <exception cref="ArgumentOutOfRangeException">When given span is outside of the text range.</exception>
Text\StringBuilderText.cs (2)
59/// <exception cref="ArgumentOutOfRangeException">When position is negative or 77/// <exception cref="ArgumentOutOfRangeException">When given span is outside of the text range.</exception>
Text\StringText.cs (2)
54/// <exception cref="ArgumentOutOfRangeException">When position is negative or 70/// <exception cref="ArgumentOutOfRangeException">When given span is outside of the text range.</exception>
Text\TextLine.cs (1)
33/// <exception cref="ArgumentOutOfRangeException">The span does not represent a text line.</exception>
Microsoft.CodeAnalysis.CodeStyle (5)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
36/// <exception cref="ArgumentOutOfRangeException">
src\Compilers\Core\Portable\InternalUtilities\EncodingExtensions.cs (1)
23catch (ArgumentOutOfRangeException)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
232private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
src\Dependencies\Collections\SegmentedList`1.cs (1)
774/// <exception cref="ArgumentOutOfRangeException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\TestHooks\IExpeditableDelaySource.cs (1)
21/// <exception cref="ArgumentOutOfRangeException">
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\ThrowHelper.cs (1)
232private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
SegmentedList`1.cs (1)
774/// <exception cref="ArgumentOutOfRangeException">
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxTokenParser.cs (1)
93/// <exception cref="ArgumentOutOfRangeException">If the given position is less than the current position of the lexer.</exception>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
12833Assert.Throws<ArgumentOutOfRangeException>(() =>
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (10)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (7)
855Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetLocalFunctionControlFlowGraph(lambdaD1.Symbol)); 857Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetLocalFunctionControlFlowGraphInScope(lambdaD1.Symbol)); 871Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetAnonymousFunctionControlFlowGraph(lambdaD2)); 873Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetAnonymousFunctionControlFlowGraphInScope(lambdaD2)); 913Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetLocalFunctionControlFlowGraph(lambdaD1.Symbol)); 915Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetLocalFunctionControlFlowGraphInScope(lambdaD1.Symbol)); 927Assert.Throws<ArgumentOutOfRangeException>(() => graphD2.GetAnonymousFunctionControlFlowGraph(lambdaD1));
IOperation\IOperationTests_ILocalFunctionStatement.cs (3)
1817Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetLocalFunctionControlFlowGraph(localFunctionD2)); 1819Assert.Throws<ArgumentOutOfRangeException>(() => graphM.GetLocalFunctionControlFlowGraphInScope(localFunctionD2)); 1868Assert.Throws<ArgumentOutOfRangeException>(() => graphD2.GetLocalFunctionControlFlowGraph(localFunctionD1));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
PrintOptionsTests.cs (4)
27Assert.Throws<ArgumentOutOfRangeException>(() => new PrintOptions().NumberRadix = 3); 33Assert.Throws<ArgumentOutOfRangeException>(() => new PrintOptions().MemberDisplayFormat = (MemberDisplayFormat)(-1)); 39Assert.Throws<ArgumentOutOfRangeException>(() => new PrintOptions().MaximumOutputLength = -1); 40Assert.Throws<ArgumentOutOfRangeException>(() => new PrintOptions().MaximumOutputLength = 0);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\AccessibilityTests.cs (2)
49Assert.Throws<ArgumentOutOfRangeException>(() => 52Assert.Throws<ArgumentOutOfRangeException>(() =>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\CompilationAPITests.cs (4)
1510Assert.Throws<ArgumentOutOfRangeException>( 1516Assert.Throws<ArgumentOutOfRangeException>( 1522Assert.Throws<ArgumentOutOfRangeException>( 1528Assert.Throws<ArgumentOutOfRangeException>(
Compilation\GetSemanticInfoTests.cs (2)
5933catch (ArgumentOutOfRangeException e) 5956catch (ArgumentOutOfRangeException e)
Symbols\CorLibrary\CorTypes.cs (4)
228Assert.Throws<ArgumentOutOfRangeException>(() => c1.GetSpecialType(SpecialType.None)); 229Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.None)); 230Assert.Throws<ArgumentOutOfRangeException>(() => c1.GetSpecialType(InternalSpecialType.NextAvailable)); 231Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.Count + 1));
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1539Assert.Throws<ArgumentOutOfRangeException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: (SignatureCallingConvention)10));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (88)
LexicalAndXml\SyntaxTokenParserTests.cs (1)
206Assert.Throws<ArgumentOutOfRangeException>(() => parser.SkipForwardTo(0));
Syntax\SeparatedSyntaxListTests.cs (13)
219Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, nodeD)); 220Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, nodeD)); 221Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD })); 222Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { nodeD })); 223Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 224Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(list.Count + 1)); 225Assert.Throws<ArgumentOutOfRangeException>(() => list.Replace(nodeD, nodeE)); 226Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(nodeD, new[] { nodeE })); 267Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(0)); 268Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, nodeD)); 269Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, nodeD)); 270Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { nodeD })); 271Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
Syntax\StructuredTriviaTests.cs (3)
197Assert.Throws<System.ArgumentOutOfRangeException>(delegate 202Assert.Throws<System.ArgumentOutOfRangeException>(delegate 208Assert.Throws<System.ArgumentOutOfRangeException>(delegate
Syntax\SyntaxListTests.cs (11)
171Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, nodeD)); 172Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, nodeD)); 173Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD })); 174Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { nodeD })); 175Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 176Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(list.Count)); 219Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(0)); 220Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, nodeD)); 221Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, nodeD)); 222Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { nodeD })); 223Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { nodeD }));
Syntax\SyntaxNodeOrTokenListTests.cs (17)
158Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 159Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, tokenD)); 160Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD })); 161Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD })); 162Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 163Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(list.Count)); 164Assert.Throws<ArgumentOutOfRangeException>(() => list.Replace(tokenD, nameE)); 165Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(tokenD, new[] { nameE })); 166Assert.Throws<ArgumentOutOfRangeException>(() => list.Add(default(SyntaxNodeOrToken))); 167Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxNodeOrToken))); 208Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(0)); 209Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, tokenD)); 210Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 211Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { tokenD })); 212Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD })); 213Assert.Throws<ArgumentOutOfRangeException>(() => list.Add(default(SyntaxNodeOrToken))); 214Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxNodeOrToken)));
Syntax\SyntaxNodeTests.cs (9)
751Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(EOFSpan)); 761Assert.Throws<ArgumentOutOfRangeException>(() => classDecl.FindNode(nodeEndPositionSpan)); 765Assert.Throws<ArgumentOutOfRangeException>(() => root.FindNode(invalidSpan)); 767Assert.Throws<ArgumentOutOfRangeException>(() => root.FindNode(invalidSpan)); 769Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(invalidSpan)); 771Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(invalidSpan)); 773Assert.Throws<ArgumentOutOfRangeException>(() => classDecl.FindNode(root.FullSpan)); 3345catch (ArgumentOutOfRangeException) 3378catch (ArgumentOutOfRangeException)
Syntax\SyntaxTokenListTests.cs (17)
180Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 181Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, tokenD)); 182Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD })); 183Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD })); 184Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 185Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(list.Count)); 186Assert.Throws<ArgumentOutOfRangeException>(() => list.Add(default(SyntaxToken))); 187Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken))); 228Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(0)); 229Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, tokenD)); 230Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 231Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { tokenD })); 232Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { tokenD })); 233Assert.Throws<ArgumentOutOfRangeException>(() => list.Replace(tokenD, tokenE)); 234Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(tokenD, new[] { tokenE })); 235Assert.Throws<ArgumentOutOfRangeException>(() => list.Add(default(SyntaxToken))); 236Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken)));
Syntax\SyntaxTriviaListTests.cs (17)
169Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, triviaD)); 170Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, triviaD)); 171Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { triviaD })); 172Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(list.Count + 1, new[] { triviaD })); 173Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 174Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(list.Count)); 175Assert.Throws<ArgumentOutOfRangeException>(() => list.Add(default(SyntaxTrivia))); 176Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxTrivia))); 216Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(0)); 217Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, triviaD)); 218Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, triviaD)); 219Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(1, new[] { triviaD })); 220Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(-1, new[] { triviaD })); 221Assert.Throws<ArgumentOutOfRangeException>(() => list.Replace(triviaD, triviaE)); 222Assert.Throws<ArgumentOutOfRangeException>(() => list.ReplaceRange(triviaD, new[] { triviaE })); 223Assert.Throws<ArgumentOutOfRangeException>(() => list.Add(default(SyntaxTrivia))); 224Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxTrivia)));
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Extensions\IBufferGraphExtensions.cs (1)
73catch (ArgumentOutOfRangeException) when (bufferGraph.TopBuffer.ContentType.TypeName == "Interactive Content")
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (1)
163catch (ArgumentOutOfRangeException ex) when (FatalError.ReportAndCatch(ex))
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
89catch (ArgumentOutOfRangeException)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
71catch (ArgumentOutOfRangeException)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
220catch (ArgumentOutOfRangeException)
Microsoft.CodeAnalysis.Features (6)
Contracts\EditAndContinue\ManagedModuleMethodId.cs (1)
25/// <exception cref="ArgumentOutOfRangeException">
Contracts\EditAndContinue\SourceLineUpdate.cs (1)
22/// <exception cref="ArgumentOutOfRangeException">
Contracts\EditAndContinue\SourceSpan.cs (1)
26/// <exception cref="ArgumentOutOfRangeException">
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (2)
74catch (ArgumentOutOfRangeException) 181/// <exception cref="ArgumentOutOfRangeException"><paramref name="version"/> is less than 1.</exception>
EmbeddedLanguages\DateAndTime\EmbeddedCompletionContext.cs (1)
109catch (ArgumentOutOfRangeException)
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (2)
40Assert.Throws<ArgumentOutOfRangeException>(() => EditAndContinueMethodDebugInfoReader.Create(mockSymReader, 0)); 41Assert.Throws<ArgumentOutOfRangeException>(() => EditAndContinueMethodDebugInfoReader.Create(mockSymReader, -1));
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\TestHooks\IExpeditableDelaySource.cs (1)
21/// <exception cref="ArgumentOutOfRangeException">
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
MetadataShadowCopyProviderTests.cs (2)
69Assert.Throws<ArgumentOutOfRangeException>(() => _provider.GetMetadataShadowCopy(IsRunningOnMono ? "/goo.dll" : @"c:\goo.dll", (MetadataImageKind)Byte.MaxValue)); 76Assert.Throws<ArgumentOutOfRangeException>(() => _provider.GetMetadata(IsRunningOnMono ? "/goo.dll" : @"c:\goo.dll", (MetadataImageKind)Byte.MaxValue));
Microsoft.CodeAnalysis.UnitTests (175)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (7)
271Assert.Throws<ArgumentOutOfRangeException>(() => set.CopyTo(arr, 0, -1)); 272Assert.Throws<ArgumentOutOfRangeException>(() => set.CopyTo(arr, 0, int.MinValue)); 399Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new SegmentedHashSet<T>(-1)); 400Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new SegmentedHashSet<T>(int.MinValue)); 434Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new SegmentedHashSet<T>(-1, comparer)); 435Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new SegmentedHashSet<T>(int.MinValue, comparer)); 520Assert.Throws<ArgumentOutOfRangeException>("capacity", () => set.EnsureCapacity(-1));
Collections\ImmutableSegmentedListBuilderTest.cs (13)
137Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable.Insert(-1, 0)); 138Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable.Insert(4, 0)); 154Assert.Throws<ArgumentOutOfRangeException>(() => mutable.InsertRange(-1, new int[0])); 155Assert.Throws<ArgumentOutOfRangeException>(() => mutable.InsertRange(mutable.Count + 1, new int[0])); 216Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable.RemoveAt(1)); 221Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable.RemoveAt(0)); 222Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable.RemoveAt(-1)); 223Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable.RemoveAt(1)); 264Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable[3] = 4); 265Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable[-1] = 4); 266Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable[3]); 267Assert.Throws<ArgumentOutOfRangeException>("index", () => mutable[-1]); 398Assert.Throws<ArgumentOutOfRangeException>(() => builder.ItemRef(5));
Collections\ImmutableSegmentedListTest.cs (25)
246Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Insert(1, 5)); 247Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Insert(-1, 5)); 262Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Insert(7, 5)); 263Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Insert(-1, 5)); 279Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(1, new[] { 1 })); 280Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(-1, new[] { 1 })); 287Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(6, new[] { 1 })); 288Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(-1, new[] { 1 })); 296Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(1, nonEmptyList)); 297Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(-1, nonEmptyList)); 305Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(106, nonEmptyList)); 306Assert.Throws<ArgumentOutOfRangeException>("index", () => list.InsertRange(-1, nonEmptyList)); 423Assert.Throws<ArgumentOutOfRangeException>("index", () => list.RemoveAt(0)); 424Assert.Throws<ArgumentOutOfRangeException>("index", () => list.RemoveAt(-1)); 425Assert.Throws<ArgumentOutOfRangeException>("index", () => list.RemoveAt(1)); 478Assert.Throws<ArgumentOutOfRangeException>("index", () => list[3]); 479Assert.Throws<ArgumentOutOfRangeException>("index", () => list[-1]); 621Assert.Throws<ArgumentOutOfRangeException>("index", () => list.RemoveRange(-1, 0)); 622Assert.Throws<ArgumentOutOfRangeException>("count", () => list.RemoveRange(0, -1)); 725Assert.Throws<ArgumentOutOfRangeException>("index", () => emptyList[-1]); 726Assert.Throws<ArgumentOutOfRangeException>("index", () => emptyList[0]); 727Assert.Throws<ArgumentOutOfRangeException>("index", () => emptyList[1]); 730Assert.Throws<ArgumentOutOfRangeException>("index", () => listOfOne[-1]); 732Assert.Throws<ArgumentOutOfRangeException>("index", () => listOfOne[1]); 832Assert.Throws<ArgumentOutOfRangeException>(() => list.ItemRef(5));
Collections\IndexOfTests.cs (17)
33Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(emptyCollection, 100, 1, 1, EqualityComparer<int>.Default)); 34Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(emptyCollection, 100, -1, 1, EqualityComparer<int>.Default)); 35Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(collection1256, 100, 1, 20, EqualityComparer<int>.Default)); 36Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(collection1256, 100, 1, -1, EqualityComparer<int>.Default)); 37Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(emptyCollection, 100, 1, 1, new CustomComparer(50))); 38Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(emptyCollection, 100, -1, 1, new CustomComparer(50))); 39Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(collection1256, 100, 1, 20, new CustomComparer(1))); 40Assert.Throws<ArgumentOutOfRangeException>(() => indexOfItemIndexCountEQ(collection1256, 100, 1, -1, new CustomComparer(1))); 102Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(emptyCollection, 100, 1, 1, EqualityComparer<int>.Default)); 103Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(emptyCollection, 100, -1, 1, EqualityComparer<int>.Default)); 104Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(collection1256, 100, 1, 20, EqualityComparer<int>.Default)); 105Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(collection1256, 100, 1, -1, EqualityComparer<int>.Default)); 106Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(emptyCollection, 100, 1, 1, new CustomComparer(50))); 107Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(emptyCollection, 100, -1, 1, new CustomComparer(50))); 108Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(collection1256, 100, 1, 20, new CustomComparer(1))); 109Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndexCountEQ(collection1256, 100, 1, -1, new CustomComparer(1))); 110Assert.Throws<ArgumentOutOfRangeException>(() => lastIndexOfItemIndex(collection1256, 2, 5));
Collections\List\ICollection.Generic.Tests.cs (2)
492Assert.Throws<ArgumentOutOfRangeException>(() => collection.CopyTo(array, -1)); 493Assert.Throws<ArgumentOutOfRangeException>(() => collection.CopyTo(array, int.MinValue));
Collections\List\ICollection.NonGeneric.Tests.cs (2)
252Assert.Throws<ArgumentOutOfRangeException>(() => collection.CopyTo(array, -1)); 253Assert.Throws<ArgumentOutOfRangeException>(() => collection.CopyTo(array, int.MinValue));
Collections\List\IList.Generic.Tests.cs (7)
104protected virtual Type IList_Generic_Item_InvalidIndex_ThrowType => typeof(ArgumentOutOfRangeException); 406Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, validAdd)); 407Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(int.MinValue, validAdd)); 545Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 546Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(int.MinValue)); 559Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(count)); 560Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(count + 1));
Collections\List\IList.NonGeneric.Tests.cs (1)
80protected virtual Type IList_NonGeneric_Item_InvalidIndex_ThrowType => typeof(ArgumentOutOfRangeException);
Collections\List\SegmentedList.Generic.Tests.BinarySearch.cs (2)
70Assert.Throws<ArgumentOutOfRangeException>(() => list.BinarySearch(-1, count, element, GetIComparer())); //"ArgumentOutOfRangeException should be thrown on negative index." 71Assert.Throws<ArgumentOutOfRangeException>(() => list.BinarySearch(0, -1, element, GetIComparer())); //"ArgumentOutOfRangeException should be thrown on negative count."
Collections\List\SegmentedList.Generic.Tests.Capacity.cs (1)
44Assert.Throws<ArgumentOutOfRangeException>(() => list.Capacity = initialCapacity - 1);
Collections\List\SegmentedList.Generic.Tests.Constructor.cs (1)
53Assert.Throws<ArgumentOutOfRangeException>(() => new SegmentedList<T>(capacity));
Collections\List\SegmentedList.Generic.Tests.Find.cs (31)
62Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(int.MinValue, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException" 67Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(-1, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException" 71Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count + 1, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException" 74Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count, predicate)); //"Err_9689ajis Expected index=list.Count to throw ArgumentOutOfRangeException" 77Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(int.MaxValue, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException" 95Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(int.MinValue, 0, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException" 98Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(-1, 0, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException" 101Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(list.Count + 1, 0, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException" 104Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(list.Count, 1, predicate)); //"Err_9689ajis Expected index=list.Count to throw ArgumentOutOfRangeException" 107Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(int.MaxValue, 0, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException" 113Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(0, int.MinValue, predicate)); //Err_948ahid Expected count=Int32.MinValue to throw ArgumentOutOfRangeException" 116Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(0, -1, predicate)); //"Err_328ahuaw Expected count=-1 to throw ArgumentOutOfRangeException" 119Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(0, list.Count + 1, predicate)); //"Err_488ajdi Expected count=list.Count + 1 to throw ArgumentOutOfRangeException" 122Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(0, int.MaxValue, predicate)); //"Err_238ajwisa Expected count=Int32.MaxValue to throw ArgumentOutOfRangeException" 130Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(1, count, predicate)); //"Err_018188avbiw Expected index=1 count=list.Length to throw ArgumentOutOfRangeException" 133Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(0, count + 1, predicate)); //"Err_6848ajiodxbz Expected index=0 count=list.Length + 1 to throw ArgumentOutOfRangeException" 152Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(int.MinValue, 0, predicate)); //Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException" 157Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(-1, 0, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException" 161Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count + 1, 0, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException" 164Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count, 1, predicate)); //"Err_9689ajis Expected index=list.Count to throw ArgumentOutOfRangeException" 167Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(int.MaxValue, 0, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException" 173Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count - 1, int.MinValue, predicate)); //"Err_948ahid Expected count=Int32.MinValue to throw ArgumentOutOfRangeException" 176Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count - 1, -1, predicate)); //"Err_328ahuaw Expected count=-1 to throw ArgumentOutOfRangeException" 179Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count - 1, list.Count + 1, predicate)); //"Err_488ajdi Expected count=list.Count + 1 to throw ArgumentOutOfRangeException" 182Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(list.Count - 1, int.MaxValue, predicate)); //"Err_238ajwisa Expected count=Int32.MaxValue to throw ArgumentOutOfRangeException" 190Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(count - 2, count, predicate)); //"Err_018188avbiw Expected index=1 count=list.Length to throw ArgumentOutOfRangeException" 193Assert.Throws<ArgumentOutOfRangeException>(() => list.FindLastIndex(count - 1, count + 1, predicate)); //"Err_6848ajiodxbz Expected index=0 count=list.Length + 1 to throw ArgumentOutOfRangeException" 212Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(int.MinValue, predicate)); //"Err_948ahid Expected index=Int32.MinValue to throw ArgumentOutOfRangeException" 215Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(-1, predicate)); //"Err_328ahuaw Expected index=-1 to throw ArgumentOutOfRangeException" 218Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(list.Count + 1, predicate)); //"Err_488ajdi Expected index=list.Count + 1 to throw ArgumentOutOfRangeException" 221Assert.Throws<ArgumentOutOfRangeException>(() => list.FindIndex(int.MaxValue, predicate)); //"Err_238ajwisa Expected index=Int32.MaxValue to throw ArgumentOutOfRangeException"
Collections\List\SegmentedList.Generic.Tests.IndexOf.cs (20)
196Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count + 1)); //"Expect ArgumentOutOfRangeException for index greater than length of list.." 197Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count + 10)); //"Expect ArgumentOutOfRangeException for index greater than length of list.." 198Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, -1)); //"Expect ArgumentOutOfRangeException for negative index." 199Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, int.MinValue)); //"Expect ArgumentOutOfRangeException for negative index." 208Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count, 1)); //"ArgumentOutOfRangeException expected on index larger than array." 209Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count + 1, 1)); //"ArgumentOutOfRangeException expected on index larger than array." 210Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, 0, count + 1)); //"ArgumentOutOfRangeException expected on count larger than array." 211Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, count / 2, count / 2 + 2)); //"ArgumentOutOfRangeException expected.." 212Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, 0, count + 1)); //"ArgumentOutOfRangeException expected on count larger than array." 213Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, 0, -1)); //"ArgumentOutOfRangeException expected on negative count." 214Assert.Throws<ArgumentOutOfRangeException>(() => list.IndexOf(element, -1, 1)); //"ArgumentOutOfRangeException expected on negative index." 223Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, count)); //"ArgumentOutOfRangeException expected." 227Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, -1)); 239Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, 0, count + 1)); //"Expected ArgumentOutOfRangeException." 240Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, count / 2, count / 2 + 2)); //"Expected ArgumentOutOfRangeException." 241Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, 0, count + 1)); //"Expected ArgumentOutOfRangeException." 242Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, 0, -1)); //"Expected ArgumentOutOfRangeException." 243Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, -1, count)); //"Expected ArgumentOutOfRangeException." 244Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, -1, 1)); //"Expected ArgumentOutOfRangeException." Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, count, 0)); //"Expected ArgumentOutOfRangeException." 245Assert.Throws<ArgumentOutOfRangeException>(() => list.LastIndexOf(element, count, 1)); //"Expected ArgumentOutOfRangeException."
Collections\List\SegmentedList.Generic.Tests.Misc.cs (4)
75Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(bad[i], items[0])); //"ArgumentOutOfRangeException expected." 115Assert.Throws<ArgumentOutOfRangeException>(() => _ilist.Insert(bad[i], items[0])); //"ArgumentOutOfRangeException expected." 187Assert.Throws<ArgumentOutOfRangeException>(() => list.InsertRange(bad[i], constructIEnumerable(items))); //"ArgumentOutOfRangeException expected" 332Assert.Throws<ArgumentOutOfRangeException>(() =>
Collections\List\SegmentedList.Generic.Tests.Remove.cs (1)
150Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveRange(invalidSet.Item1, invalidSet.Item2));
Collections\List\SegmentedList.Generic.Tests.Reverse.cs (1)
163Assert.Throws<ArgumentOutOfRangeException>(() => list.Reverse(invalidSet.Item1, invalidSet.Item2));
Collections\List\SegmentedList.Generic.Tests.Sort.cs (1)
182Assert.Throws<ArgumentOutOfRangeException>(() => list.Sort(invalidSet.Item1, invalidSet.Item2, GetIComparer()));
Collections\SegmentedArrayTests.cs (1)
96Assert.Throws<ArgumentOutOfRangeException>("length", () => new SegmentedArray<byte>(-1));
Diagnostics\OperationTests.cs (4)
63Assert.Throws<ArgumentOutOfRangeException>(() => dynamicExpression.GetArgumentName(-1)); 64Assert.Throws<ArgumentOutOfRangeException>(() => dynamicExpression.GetArgumentRefKind(-1)); 67Assert.Throws<ArgumentOutOfRangeException>(() => dynamicExpression.GetArgumentName(100)); 68Assert.Throws<ArgumentOutOfRangeException>(() => dynamicExpression.GetArgumentRefKind(100));
Emit\SemanticEditTests.cs (6)
29Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.None, oldSymbol: null, newSymbol: null)); 39Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.Replace, oldSymbol: method, newSymbol: method, instrumentation: instrumentation)); 40Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.Insert, oldSymbol: method, newSymbol: method, instrumentation: instrumentation)); 41Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.Delete, oldSymbol: method, newSymbol: method, instrumentation: instrumentation)); 46Assert.Throws<ArgumentOutOfRangeException>("Kinds", () => new SemanticEdit(SemanticEditKind.Update, oldSymbol: method, newSymbol: method, 49Assert.Throws<ArgumentOutOfRangeException>("Kinds", () => new SemanticEdit(SemanticEditKind.Update, oldSymbol: method, newSymbol: method,
InternalUtilities\WeakListTests.cs (2)
323Assert.Throws<ArgumentOutOfRangeException>(() => list.GetWeakReference(-1)); 324Assert.Throws<ArgumentOutOfRangeException>(() => list.GetWeakReference(0));
LinePositionTests.cs (2)
31Assert.Throws<ArgumentOutOfRangeException>( 38Assert.Throws<ArgumentOutOfRangeException>(
MetadataReferences\AssemblyIdentityTests.cs (3)
244Assert.Throws<ArgumentOutOfRangeException>(() => new AssemblyIdentity("Goo", v)); 247Assert.Throws<ArgumentOutOfRangeException>(() => new AssemblyIdentity("Goo", contentType: (AssemblyContentType)(-1))); 248Assert.Throws<ArgumentOutOfRangeException>(() => new AssemblyIdentity("Goo", contentType: (AssemblyContentType)int.MaxValue));
MetadataReferences\MetadataReferencePropertiesTests.cs (1)
42Assert.Throws<ArgumentOutOfRangeException>(() => new MetadataReferenceProperties((MetadataImageKind)byte.MaxValue));
MetadataReferences\ModuleMetadataTests.cs (4)
24Assert.Throws<ArgumentOutOfRangeException>(() => { fixed (byte* ptr = new byte[] { 1, 2, 3 }) ModuleMetadata.CreateFromMetadata((IntPtr)ptr, 0); }); 25Assert.Throws<ArgumentOutOfRangeException>(() => { fixed (byte* ptr = new byte[] { 1, 2, 3 }) ModuleMetadata.CreateFromMetadata((IntPtr)ptr, -1); }); 90Assert.Throws<ArgumentOutOfRangeException>(() => { fixed (byte* ptr = new byte[] { 1, 2, 3 }) ModuleMetadata.CreateFromImage((IntPtr)ptr, 0); }); 91Assert.Throws<ArgumentOutOfRangeException>(() => { fixed (byte* ptr = new byte[] { 1, 2, 3 }) ModuleMetadata.CreateFromImage((IntPtr)ptr, -1); });
Text\SourceTextTests.cs (4)
455var ex = Assert.ThrowsAny<ArgumentOutOfRangeException>(() => 464var ex = Assert.ThrowsAny<ArgumentOutOfRangeException>(() =>
Text\StringText_LineTest.cs (6)
62Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(0, 0))); 69Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(0, 3))); 76Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(1, 5))); 107Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(1, 10))); 114Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(-1, 2))); 121Assert.Throws<ArgumentOutOfRangeException>(() => TextLine.FromSpan(text, new TextSpan(7, 0)));
Text\TextChangeRangeTest.cs (1)
19Assert.Throws<ArgumentOutOfRangeException>(
Text\TextChangeTests.cs (5)
220Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(-1, destination, 0, 2)); 221Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, -1, 2)); 222Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, 0, -1)); 224Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(newText.Length - 1, destination, 0, 2)); 225Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, destination.Length - 1, 2));
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
Syntax\SeparatedSyntaxListTests.vb (15)
138Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Insert(-1, nodeD)) 139Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Insert(list.Count + 1, nodeD)) 140Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD})) 141Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(list.Count + 1, {nodeD})) 142Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.RemoveAt(-1)) 143Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.RemoveAt(list.Count)) 144Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Replace(nodeD, nodeE)) 145Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.ReplaceRange(nodeD, {nodeE})) 185Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.RemoveAt(0)) 186Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Insert(1, nodeD)) 187Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Insert(-1, nodeD)) 188Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(1, {nodeD})) 189Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.InsertRange(-1, {nodeD})) 190Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Replace(nodeD, nodeE)) 191Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.ReplaceRange(nodeD, {nodeE}))
Syntax\SyntaxTokenFactoryTests.vb (1)
135Assert.Throws(Of ArgumentOutOfRangeException)(Function() SyntaxFactory.Token(CType(localKind, SyntaxKind)))
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
36/// <exception cref="ArgumentOutOfRangeException">
src\Compilers\Core\Portable\InternalUtilities\EncodingExtensions.cs (1)
23catch (ArgumentOutOfRangeException)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
232private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
src\Dependencies\Collections\SegmentedList`1.cs (1)
774/// <exception cref="ArgumentOutOfRangeException">
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\TestHooks\IExpeditableDelaySource.cs (1)
21/// <exception cref="ArgumentOutOfRangeException">
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\EncodingExtensions.cs (1)
23catch (ArgumentOutOfRangeException)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
232private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
src\Dependencies\Collections\SegmentedList`1.cs (1)
774/// <exception cref="ArgumentOutOfRangeException">
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\SolutionTests.cs (12)
260Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithDocumentSourceCodeKind(documentId, (SourceCodeKind)(-1))); 319Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithDocumentSyntaxRoot(documentId, root, (PreservationMode)(-1))); 362Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithDocumentText(documentId, text, (PreservationMode)(-1))); 386Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithDocumentText(documentId, textAndVersion, (PreservationMode)(-1))); 413Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithDocumentText([documentId], text, (PreservationMode)(-1))); 930Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithAdditionalDocumentText(documentId, text, (PreservationMode)(-1))); 954Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithAdditionalDocumentText(documentId, textAndVersion, (PreservationMode)(-1))); 976Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithAnalyzerConfigDocumentText(documentId, text, (PreservationMode)(-1))); 1000Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithAnalyzerConfigDocumentText(documentId, textAndVersion, (PreservationMode)(-1))); 1022Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithDocumentTextLoader(documentId, loader, (PreservationMode)(-1))); 1044Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithAdditionalDocumentTextLoader(documentId, loader, (PreservationMode)(-1))); 1066Assert.Throws<ArgumentOutOfRangeException>(() => solution.WithAnalyzerConfigDocumentTextLoader(documentId, loader, (PreservationMode)(-1)));
Microsoft.Data.Analysis.Tests (1)
DataFrameTests.cs (1)
93Assert.Throws<ArgumentOutOfRangeException>(() => dataFrame.Columns.Insert(columnCount + 1, repeatedName));
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\MsiUtils.wix.cs (1)
189/// <exception cref="ArgumentOutOfRangeException" />
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
PackageTests.cs (1)
50Assert.Throws<ArgumentOutOfRangeException>(() => { WorkloadSetPackage p = new(workloadSetPackageItem, PackageRootDirectory, new Version("256.12.3")); });
Microsoft.Extensions.AI (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AI.Abstractions (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AI.Abstractions.Tests (9)
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
30Assert.Throws<ArgumentOutOfRangeException>("value", () => options.Dimensions = 0); 31Assert.Throws<ArgumentOutOfRangeException>("value", () => options.Dimensions = -1);
Embeddings\GeneratedEmbeddingsTests.cs (7)
20Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new GeneratedEmbeddings<Embedding<float>>(-1)); 49Assert.Throws<ArgumentOutOfRangeException>("index", () => instance[0]); 50Assert.Throws<ArgumentOutOfRangeException>("index", () => instance[-1]); 80Assert.Throws<ArgumentOutOfRangeException>("index", () => generatedEmbeddings[-1]); 81Assert.Throws<ArgumentOutOfRangeException>("index", () => generatedEmbeddings[2]); 243Assert.Throws<ArgumentOutOfRangeException>("index", () => embeddings[-1]); 244Assert.Throws<ArgumentOutOfRangeException>("index", () => embeddings[2]);
Microsoft.Extensions.AI.AzureAIInference (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AI.Integration.Tests (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AI.Ollama (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AI.OpenAI (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AmbientMetadata.Application (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.AsyncState (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Caching.Hybrid (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
TimeExpirationAsyncTests.cs (2)
22var ex = await Assert.ThrowsAsync<ArgumentOutOfRangeException>(test);
Microsoft.Extensions.Compliance.Abstractions (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Compliance.Redaction (35)
src\Shared\Data.Validation\LengthAttribute.cs (1)
91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception>
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Compliance.Testing (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.DependencyInjection.AutoActivation (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Diagnostics.ExceptionSummarization (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Diagnostics.HealthChecks.Common (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Diagnostics.Probes (35)
src\Shared\Data.Validation\LengthAttribute.cs (1)
91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception>
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Diagnostics.ResourceMonitoring (38)
IResourceMonitor.cs (1)
22/// <exception cref="ArgumentOutOfRangeException"><paramref name="window"/> is greater than the maximum window size
src\Shared\BufferWriterPool\BufferWriter.cs (2)
113/// <exception cref="ArgumentOutOfRangeException"> 148/// <exception cref="ArgumentOutOfRangeException">
src\Shared\Data.Validation\LengthAttribute.cs (1)
91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception>
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (9)
CircularBufferTests.cs (1)
15Assert.Throws<ArgumentOutOfRangeException>(() => new CircularBuffer<int>(0, 0));
ResourceMonitoringServiceTests.cs (1)
714Assert.IsType<ArgumentOutOfRangeException>(exception);
ResourceUtilizationTests.cs (1)
33Assert.Throws<ArgumentOutOfRangeException>(() => new ResourceUtilization(-50.0, 500, _systemResources));
SnapshotTests.cs (2)
29Assert.Throws<ArgumentOutOfRangeException>(() 36Assert.Throws<ArgumentOutOfRangeException>(()
SystemResourcesTests.cs (4)
29Assert.Throws<ArgumentOutOfRangeException>(() => new SystemResources(0.0, 1.0, 1000UL, 1000UL)); 31Assert.Throws<ArgumentOutOfRangeException>(() => new SystemResources(1.0, 0.0, 1000UL, 1000UL)); 34Assert.Throws<ArgumentOutOfRangeException>(() => new SystemResources(1.0, 1.0, 0UL, 1000UL)); 36Assert.Throws<ArgumentOutOfRangeException>(() => new SystemResources(1.0, 1.0, 1000UL, 0UL));
Microsoft.Extensions.Diagnostics.Testing (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Metrics\MetricCollectorTests.cs (4)
245await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(-1)); 246await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(0)); 309await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(-1)); 310await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(0));
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.Hosting.Testing (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Http.Diagnostics (2)
src\Shared\BufferWriterPool\BufferWriter.cs (2)
113/// <exception cref="ArgumentOutOfRangeException"> 148/// <exception cref="ArgumentOutOfRangeException">
Microsoft.Extensions.Http.Resilience (35)
src\Shared\Data.Validation\LengthAttribute.cs (1)
91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception>
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.ObjectPool.DependencyInjection (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Options.Contextual (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
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" /> is less than 0.</exception>
ThrowHelper.cs (1)
49internal static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument)
Microsoft.Extensions.Resilience (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Telemetry (35)
src\Shared\Data.Validation\LengthAttribute.cs (1)
91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception>
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Telemetry.Abstractions (34)
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
429catch (ArgumentOutOfRangeException e)
Microsoft.Extensions.TimeProvider.Testing (37)
FakeTimeProvider.cs (3)
64/// <exception cref="ArgumentOutOfRangeException">The time value is less than <see cref="TimeSpan.Zero"/>.</exception> 94/// <exception cref="ArgumentOutOfRangeException">The supplied time value is before the current time.</exception> 126/// <exception cref="ArgumentOutOfRangeException">The time value is less than <see cref="TimeSpan.Zero"/>.</exception>
src\Shared\Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Microsoft.Extensions.TimeProvider.Testing.Tests (11)
FakeTimeProviderTests.cs (3)
212Assert.Throws<ArgumentOutOfRangeException>(() => timeProvider.Advance(TimeSpan.FromTicks(-1))); 220Assert.Throws<ArgumentOutOfRangeException>(() => timeProvider.SetUtcNow(timeProvider.GetUtcNow() - TimeSpan.FromTicks(1))); 366await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => source.Task.WaitAsync(TimeSpan.FromMilliseconds(-2), timeProvider, CancellationToken.None));
TimerTests.cs (8)
141Assert.Throws<ArgumentOutOfRangeException>("dueTime", () => t.Change(TimeSpan.FromMilliseconds(-2), TimeSpan.FromMilliseconds(1))); 142Assert.Throws<ArgumentOutOfRangeException>("dueTime", () => t.Change(TimeSpan.FromMilliseconds(-2), TimeSpan.FromSeconds(1))); 143Assert.Throws<ArgumentOutOfRangeException>("dueTime", () => t.Change(TimeSpan.FromMilliseconds(0xFFFFFFFFL), TimeSpan.FromMilliseconds(1))); 144Assert.Throws<ArgumentOutOfRangeException>("dueTime", () => t.Change(TimeSpan.FromMilliseconds(0xFFFFFFFFL), TimeSpan.FromSeconds(1))); 153Assert.Throws<ArgumentOutOfRangeException>("period", () => t.Change(TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(-2))); 154Assert.Throws<ArgumentOutOfRangeException>("period", () => t.Change(TimeSpan.FromSeconds(1), TimeSpan.FromMilliseconds(-2))); 155Assert.Throws<ArgumentOutOfRangeException>("period", () => t.Change(TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(0xFFFFFFFFL))); 156Assert.Throws<ArgumentOutOfRangeException>("period", () => t.Change(TimeSpan.FromSeconds(1), TimeSpan.FromMilliseconds(0xFFFFFFFFL)));
Microsoft.JSInterop.Tests (2)
JSRuntimeTest.cs (2)
392var ex = Assert.Throws<ArgumentOutOfRangeException>(() => runtime.ReceiveByteArray(7, byteArray));
Microsoft.Maui (1)
Animations\Animation.cs (1)
128 /// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="beginAt"/> or <paramref name="duration"/> is less than 0 or more than 1.</exception>
Microsoft.Maui.Controls (11)
BindingExpression.cs (1)
731 if (ex.InnerException is KeyNotFoundException || ex.InnerException is IndexOutOfRangeException || ex.InnerException is ArgumentOutOfRangeException)
Layout\GridExtensions.cs (3)
16 /// <exception cref="ArgumentOutOfRangeException"> 35 /// <exception cref="ArgumentOutOfRangeException"> 56 /// <exception cref="ArgumentOutOfRangeException">
OrderedDictionary.cs (5)
311 /// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is not within the valid range of indexes.</exception> 329 /// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is not within the valid range of indexes.</exception> 330 /// <exception cref="ArgumentOutOfRangeException"> 334 /// <exception cref="ArgumentOutOfRangeException"><paramref name="count" /> is less than 0.</exception> 350 /// <exception cref="ArgumentOutOfRangeException">
SetterSpecificity.cs (1)
108 /// <exception cref="ArgumentOutOfRangeException"></exception>
TypedBinding.cs (1)
316 catch (Exception ex) when (ex is NullReferenceException || ex is KeyNotFoundException || ex is IndexOutOfRangeException || ex is ArgumentOutOfRangeException)
Microsoft.Maui.Graphics (1)
PlatformImage.cs (1)
53 /// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="quality"/> is less than 0 or more than 1.</exception>
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (1)
100 /// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="quality"/> is less than 0 or more than 1.</exception>
Microsoft.ML.AutoML.Tests (1)
ColumnInferenceTests.cs (1)
54Assert.Throws<ArgumentOutOfRangeException>(() => new MLContext(1).Auto().InferColumns(DatasetUtil.GetUciAdultDataset(), 100));
Microsoft.ML.Core.Tests (1)
UnitTests\TestCustomTypeRegister.cs (1)
329Assert.Throws<ArgumentOutOfRangeException>(() => DataViewTypeManager.Knows(typeof(AlienBody), new Attribute[] { b, d }));
Microsoft.ML.Data (2)
Utilities\StreamUtils.cs (2)
186/// <exception cref="ArgumentOutOfRangeException"> 249/// <exception cref="ArgumentOutOfRangeException">
Microsoft.ML.OnnxTransformerTest (2)
DnnImageFeaturizerTest.cs (1)
91catch (ArgumentOutOfRangeException) { }
OnnxTransformTests.cs (1)
174catch (ArgumentOutOfRangeException) { }
Microsoft.ML.Predictor.Tests (5)
TestGamPublicInterfaces.cs (5)
66Assert.Throws<System.ArgumentOutOfRangeException>(() => new GamRegressionModelParameters(mlContext, binUpperBounds, misMatchArray, intercept)); 67Assert.Throws<System.ArgumentOutOfRangeException>(() => new GamRegressionModelParameters(mlContext, misMatchArray, binEffects, intercept)); 75Assert.Throws<System.ArgumentOutOfRangeException>(() => new GamRegressionModelParameters(mlContext, binUpperBounds, fewerBinEffects, intercept)); 81Assert.Throws<System.ArgumentOutOfRangeException>(() => new GamRegressionModelParameters(mlContext, binUpperBounds, moreBinEffects, intercept)); 89Assert.Throws<System.ArgumentOutOfRangeException>(() => new GamRegressionModelParameters(mlContext, unsortedUpperBounds, binEffects, intercept));
Microsoft.ML.Samples (1)
Dynamic\Transforms\DropColumns.cs (1)
59catch (ArgumentOutOfRangeException exception)
Microsoft.ML.TensorFlow.Tests (1)
TensorFlowEstimatorTests.cs (1)
96catch (ArgumentOutOfRangeException) { }
Microsoft.ML.TestFramework (4)
DataPipe\TestDataPipe.cs (2)
1284catch (ArgumentOutOfRangeException exception) 1307catch (ArgumentOutOfRangeException exception)
DataPipe\TestDataPipeBase.cs (2)
47catch (ArgumentOutOfRangeException) { } 55Assert.True(e is ArgumentOutOfRangeException || e is InvalidOperationException);
Microsoft.ML.Tests (12)
AnomalyDetectionTests.cs (2)
50Assert.Throws<ArgumentOutOfRangeException>(() => ML.AnomalyDetection.Evaluate(transformedData)); 285catch (ArgumentOutOfRangeException ex)
Scenarios\Api\TestApi.cs (1)
240Assert.Throws<ArgumentOutOfRangeException>(() => idv.Schema[1].Annotations.Schema[kindFloat]);
Scenarios\GetColumnTests.cs (2)
102catch (ArgumentOutOfRangeException) { } 110Assert.True(e is ArgumentOutOfRangeException || e is InvalidOperationException);
TextLoaderTests.cs (2)
584var ex = Assert.Throws<ArgumentOutOfRangeException>(() => mlContext.Data.LoadFromTextFile<ModelWithoutColumnAttribute>("fakefile.txt"));
Transformers\FeatureSelectionTests.cs (4)
236var ex = Assert.Throws<ArgumentOutOfRangeException>(() => 244ex = Assert.Throws<ArgumentOutOfRangeException>(() => 252ex = Assert.Throws<ArgumentOutOfRangeException>(() =>
Transformers\SelectColumnsTests.cs (1)
125Assert.Throws<ArgumentOutOfRangeException>(() => est.Fit(dataView));
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
1203/// <exception cref="ArgumentOutOfRangeException">`idx` is negative.</exception>
Microsoft.ML.Tokenizers.Tests (4)
TokenizerTests.cs (4)
221Assert.Throws<ArgumentOutOfRangeException>(() => tokenizer.GetIndexByTokenCount(input, maxTokenCount: 0, out _, out _)); 222Assert.Throws<ArgumentOutOfRangeException>(() => tokenizer.GetIndexByTokenCount(input, maxTokenCount: -1, out _, out _)); 223Assert.Throws<ArgumentOutOfRangeException>(() => tokenizer.GetIndexByTokenCountFromEnd(input, maxTokenCount: 0, out _, out _)); 224Assert.Throws<ArgumentOutOfRangeException>(() => tokenizer.GetIndexByTokenCountFromEnd(input, maxTokenCount: -1, out _, out _));
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
Microsoft.VisualStudio.LanguageServices (3)
Workspace\VisualStudioDocumentNavigationService.cs (3)
87catch (ArgumentOutOfRangeException e) when (FatalError.ReportAndCatch(e)) 147catch (ArgumentOutOfRangeException e) when (FatalError.ReportAndCatch(e)) 360catch (ArgumentOutOfRangeException e) when (FatalError.ReportAndCatch(e))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (8)
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (8)
319Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 320Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 343Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 344Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 351Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 352Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 367Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 368Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null));
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 (326)
MS\Internal\FontCache\FontCacheUtil.cs (2)
43ArgumentOutOfRangeException.ThrowIfNegative(length); 44ArgumentOutOfRangeException.ThrowIfGreaterThan(length, int.MaxValue);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (3)
727ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 728ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 729ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
MS\Internal\FontFace\FontDriver.cs (4)
142catch (ArgumentOutOfRangeException e) 153ArgumentOutOfRangeException.ThrowIfNegative(faceIndex); 154ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(faceIndex, _numFaces); 210catch (ArgumentOutOfRangeException e)
MS\Internal\FontFace\FontFamilyIdentifier.cs (2)
193ArgumentOutOfRangeException.ThrowIfNegative(tokenIndex); 194ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tokenIndex, Count);
MS\Internal\FontFace\TypefaceCollection.cs (3)
68ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 69ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 70ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
274/// <exception cref="System.ArgumentOutOfRangeException">Index was not found</exception>
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (8)
365ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 413ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 414ArgumentOutOfRangeException.ThrowIfNegative(unitsToEncode); 497ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(inputIndex, input.Length); 499ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(outputBufferIndex, outputBuffer.Length); 501ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 573ArgumentOutOfRangeException.ThrowIfNegative(bitCount); 574ArgumentOutOfRangeException.ThrowIfNegative(unitsToDecode);
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
24ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, AlgoModule.DefaultBAACount);
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
101ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(inputIndex, input.Length);
MS\Internal\IO\Packaging\PseudoWebRequest.cs (2)
265/// <exception cref="ArgumentOutOfRangeException">Value must be >= -1</exception> 277ArgumentOutOfRangeException.ThrowIfNegative(value);
MS\Internal\PartialArray.cs (1)
134ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
MS\Internal\Text\TextInterface\Factory.cs (1)
208ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(faceIndex, numberOfFaces);
MS\Internal\TextFormatting\FullTextLine.cs (1)
1488ArgumentOutOfRangeException.ThrowIfZero(textLength);
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
795ArgumentOutOfRangeException.ThrowIfZero(textLength);
MS\Internal\TextFormatting\TextFormatterImp.cs (13)
457ArgumentOutOfRangeException.ThrowIfEqual(paragraphWidth, double.NaN); 458ArgumentOutOfRangeException.ThrowIfNegative(paragraphWidth); 459ArgumentOutOfRangeException.ThrowIfEqual(paragraphWidth, double.PositiveInfinity); 460ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphWidth, Constants.RealInfiniteWidth); 464ArgumentOutOfRangeException.ThrowIfNegative(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize, "paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize"); 465ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize, realMaxFontRenderingEmSize, "paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize"); 466ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.Indent, Constants.RealInfiniteWidth, "paragraphProperties.Indent"); 467ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.LineHeight, Constants.RealInfiniteWidth, "paragraphProperties.LineHeight"); 468ArgumentOutOfRangeException.ThrowIfNegative(paragraphProperties.DefaultIncrementalTab, "paragraphProperties.DefaultIncrementalTab"); 469ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultIncrementalTab, Constants.RealInfiniteWidth, "paragraphProperties.DefaultIncrementalTab"); 482ArgumentOutOfRangeException.ThrowIfGreaterThan(cpFirst, characterHit.FirstCharacterIndex); 483ArgumentOutOfRangeException.ThrowIfLessThan(cpFirst, characterHit.FirstCharacterIndex - cchLength); 485ArgumentOutOfRangeException.ThrowIfNegative(characterHit.TrailingLength, nameof(cchLength));
MS\Internal\TextFormatting\TextRunCacheImp.cs (1)
107ArgumentOutOfRangeException.ThrowIfNegativeOrZero(textRun.Length, "textRun.Length");
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
175ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
120ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (7)
384ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length); 397ArgumentOutOfRangeException.ThrowIfNegative(characterOffset); 398ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(characterOffset, _length); 454ArgumentOutOfRangeException.ThrowIfNegative(characterOffset); 455ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(characterOffset, _length); 457ArgumentOutOfRangeException.ThrowIfNegative(characterLength); 458ArgumentOutOfRangeException.ThrowIfGreaterThan(characterLength, _length - characterOffset);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (2)
38ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 39ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startIndex, buffer.Length);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PartialList.cs (1)
151ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (3)
47ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 48ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 49ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
37ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maximumItems);
System\IO\Packaging\PackWebRequest.cs (2)
387/// <exception cref="ArgumentOutOfRangeException">Value must be >= -1</exception> 399ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\BinaryFormat\IntrinsicExtensions.cs (1)
11/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is negative.</exception>
System\Windows\Documents\DocumentPaginator.cs (3)
46/// <exception cref="ArgumentOutOfRangeException"> 55/// <exception cref="ArgumentOutOfRangeException"> 68/// <exception cref="ArgumentOutOfRangeException">
System\Windows\FontStretch.cs (2)
42ArgumentOutOfRangeException.ThrowIfLessThan(stretchValue, 1); 43ArgumentOutOfRangeException.ThrowIfGreaterThan(stretchValue, 9);
System\Windows\FontWeight.cs (2)
40ArgumentOutOfRangeException.ThrowIfLessThan(weightValue, 1); 41ArgumentOutOfRangeException.ThrowIfGreaterThan(weightValue, 999);
System\Windows\FreezableCollection.cs (4)
367ArgumentOutOfRangeException.ThrowIfNegative(index); 368ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 477ArgumentOutOfRangeException.ThrowIfNegative(index); 478ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Generated\TextDecorationCollection.cs (4)
275ArgumentOutOfRangeException.ThrowIfNegative(index); 276ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 385ArgumentOutOfRangeException.ThrowIfNegative(index); 386ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (2)
344ArgumentOutOfRangeException.ThrowIfGreaterThan(count, this.Count); 345ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count);
System\Windows\InterOp\D3DImage.cs (2)
59ArgumentOutOfRangeException.ThrowIfNegative(dpiX); 60ArgumentOutOfRangeException.ThrowIfNegative(dpiY);
System\Windows\Media\Animation\Generated\KeyFrames.cs (42)
135ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 136ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 276ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 277ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 417ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 418ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 558ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 559ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 699ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 700ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 840ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 841ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 981ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 982ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1122ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1123ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1263ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1264ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1404ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1405ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1545ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1546ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1686ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1687ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1827ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1828ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 1968ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 1969ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2109ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2110ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2250ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2251ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2391ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2392ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2532ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2533ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2673ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2674ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2814ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2815ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0); 2955ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 2956ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (4)
274ArgumentOutOfRangeException.ThrowIfNegative(index); 275ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 384ArgumentOutOfRangeException.ThrowIfNegative(index); 385ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\CharacterMetricsDictionary.cs (2)
119ArgumentOutOfRangeException.ThrowIfNegative(index); 176ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
111ArgumentOutOfRangeException.ThrowIfNegative(index); 145ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (4)
274ArgumentOutOfRangeException.ThrowIfNegative(index); 275ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 384ArgumentOutOfRangeException.ThrowIfNegative(index); 385ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\FamilyMapCollection.cs (4)
259ArgumentOutOfRangeException.ThrowIfNegative(index); 260ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 352ArgumentOutOfRangeException.ThrowIfNegative(index); 353ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count);
System\Windows\Media\FamilyTypefaceCollection.cs (4)
237ArgumentOutOfRangeException.ThrowIfNegative(index); 238ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 344ArgumentOutOfRangeException.ThrowIfNegative(index); 345ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count);
System\Windows\Media\Fonts.cs (3)
322ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 323ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 324ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
System\Windows\Media\FormattedText.cs (8)
274ArgumentOutOfRangeException.ThrowIfNegativeOrZero(emSize); 275ArgumentOutOfRangeException.ThrowIfGreaterThan(emSize, MaxFontEmSize); 276ArgumentOutOfRangeException.ThrowIfEqual(emSize, double.NaN); 287ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, _text.Length); 1238ArgumentOutOfRangeException.ThrowIfNegative(value); 1261ArgumentOutOfRangeException.ThrowIfNegative(value); 1336ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Windows\Media\Generated\DoubleCollection.cs (4)
229ArgumentOutOfRangeException.ThrowIfNegative(index); 230ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 352ArgumentOutOfRangeException.ThrowIfNegative(index); 353ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\DrawingCollection.cs (4)
287ArgumentOutOfRangeException.ThrowIfNegative(index); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 397ArgumentOutOfRangeException.ThrowIfNegative(index); 398ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\GeneralTransformCollection.cs (4)
272ArgumentOutOfRangeException.ThrowIfNegative(index); 273ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 382ArgumentOutOfRangeException.ThrowIfNegative(index); 383ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\GeometryCollection.cs (4)
287ArgumentOutOfRangeException.ThrowIfNegative(index); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 397ArgumentOutOfRangeException.ThrowIfNegative(index); 398ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\GradientStopCollection.cs (4)
273ArgumentOutOfRangeException.ThrowIfNegative(index); 274ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 383ArgumentOutOfRangeException.ThrowIfNegative(index); 384ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\Int32Collection.cs (4)
228ArgumentOutOfRangeException.ThrowIfNegative(index); 229ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 351ArgumentOutOfRangeException.ThrowIfNegative(index); 352ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\PathFigureCollection.cs (4)
278ArgumentOutOfRangeException.ThrowIfNegative(index); 279ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 388ArgumentOutOfRangeException.ThrowIfNegative(index); 389ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\PathSegmentCollection.cs (4)
272ArgumentOutOfRangeException.ThrowIfNegative(index); 273ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 382ArgumentOutOfRangeException.ThrowIfNegative(index); 383ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\PointCollection.cs (4)
228ArgumentOutOfRangeException.ThrowIfNegative(index); 229ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 351ArgumentOutOfRangeException.ThrowIfNegative(index); 352ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\TextEffectCollection.cs (4)
272ArgumentOutOfRangeException.ThrowIfNegative(index); 273ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 382ArgumentOutOfRangeException.ThrowIfNegative(index); 383ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\TransformCollection.cs (4)
287ArgumentOutOfRangeException.ThrowIfNegative(index); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 397ArgumentOutOfRangeException.ThrowIfNegative(index); 398ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\Generated\VectorCollection.cs (4)
228ArgumentOutOfRangeException.ThrowIfNegative(index); 229ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 351ArgumentOutOfRangeException.ThrowIfNegative(index); 352ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media\GlyphRun.cs (3)
428ArgumentOutOfRangeException.ThrowIfEqual(renderingEmSize, double.NaN); 429ArgumentOutOfRangeException.ThrowIfNegative(renderingEmSize); 474/// <exception cref="System.ArgumentOutOfRangeException">
System\Windows\Media\GlyphTypeface.cs (6)
1820ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1821ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 1822ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count); 1905ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1906ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrayIndex, array.Length); 1907ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - Count);
System\Windows\Media\Imaging\BitmapSizeOptions.cs (4)
108ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight); 127ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 148ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 149ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
System\Windows\Media\Imaging\BitmapSource.cs (5)
716ArgumentOutOfRangeException.ThrowIfNegativeOrZero(stride); 724ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, PixelWidth, "sourceRect.Width"); 725ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Height, PixelHeight, "sourceRect.Height"); 728ArgumentOutOfRangeException.ThrowIfLessThan(stride, minStride); 731ArgumentOutOfRangeException.ThrowIfLessThan(bufferSize, minRequiredDestSize);
System\Windows\Media\Imaging\InteropBitmapSource.cs (2)
115ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 116ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
System\Windows\Media\Imaging\JpegBitmapEncoder.cs (2)
53ArgumentOutOfRangeException.ThrowIfLessThan(value, 1); 54ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 100);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
45ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth); 46ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
System\Windows\Media\Imaging\WmpBitmapEncoder.cs (11)
53ArgumentOutOfRangeException.ThrowIfNegative(value); 54ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 1); 215ArgumentOutOfRangeException.ThrowIfZero(value); 233ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 3); 251ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 2); 269ArgumentOutOfRangeException.ThrowIfNegative(value); 270ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 4096); 288ArgumentOutOfRangeException.ThrowIfNegative(value); 289ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 4096); 368ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 3); 386ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 4);
System\Windows\Media\Imaging\WriteableBitmap.cs (15)
429ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 430ArgumentOutOfRangeException.ThrowIfNegativeOrZero(stride); 489ArgumentOutOfRangeException.ThrowIfNegativeOrZero(stride); 490ArgumentOutOfRangeException.ThrowIfNegative(offset); 807ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.X, nameof(sourceRect)); 808ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.Y, nameof(sourceRect)); 809ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.Width, nameof(sourceRect)); 810ArgumentOutOfRangeException.ThrowIfNegative(sourceRect.Height, nameof(sourceRect)); 814ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, _pixelWidth, nameof(sourceRect)); 815ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Height, _pixelHeight, nameof(sourceRect)); 816ArgumentOutOfRangeException.ThrowIfNegative(destinationX); 817ArgumentOutOfRangeException.ThrowIfNegative(destinationY); 818ArgumentOutOfRangeException.ThrowIfGreaterThan(destinationX, _pixelWidth - sourceRect.Width); 819ArgumentOutOfRangeException.ThrowIfGreaterThan(destinationY, _pixelHeight - sourceRect.Height); 844ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sourceBufferStride);
System\Windows\Media\MediaPlayerState.cs (3)
243ArgumentOutOfRangeException.ThrowIfEqual(value, double.NaN); 291ArgumentOutOfRangeException.ThrowIfEqual(value, double.NaN); 908ArgumentOutOfRangeException.ThrowIfEqual(value, double.NaN);
System\Windows\Media\TextEffect.cs (1)
44ArgumentOutOfRangeException.ThrowIfNegative(positionCount);
System\Windows\Media\textformatting\CharacterBufferReference.cs (2)
83ArgumentOutOfRangeException.ThrowIfNegative(offsetToFirstChar); 88ArgumentOutOfRangeException.ThrowIfGreaterThan(offsetToFirstChar, maxOffset);
System\Windows\Media\textformatting\CharacterString.cs (2)
94ArgumentOutOfRangeException.ThrowIfNegative(characterLength); 100ArgumentOutOfRangeException.ThrowIfGreaterThan(characterLength, maxLength);
System\Windows\Media\textformatting\TextCharacters.cs (2)
110ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length); 123ArgumentOutOfRangeException.ThrowIfNegativeOrZero(textRunProperties.FontRenderingEmSize, "textRunProperties.FontRenderingEmSize");
System\Windows\Media\textformatting\TextEndOfLine.cs (1)
44ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length);
System\Windows\Media\textformatting\TextEndOfSegment.cs (1)
32ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length);
System\Windows\Media\textformatting\TextHidden.cs (1)
34ArgumentOutOfRangeException.ThrowIfNegativeOrZero(length);
System\Windows\Media\textformatting\TextParagraphCache.cs (3)
163ArgumentOutOfRangeException.ThrowIfEqual(maxLineWidth, double.NaN); 171ArgumentOutOfRangeException.ThrowIfNegative(maxLineWidth); 172ArgumentOutOfRangeException.ThrowIfGreaterThan(maxLineWidth, Constants.RealInfiniteWidth);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
44ArgumentOutOfRangeException.ThrowIfNegativeOrZero(autoNumberingIndex);
System\Windows\Media\VisualCollection.cs (20)
178ArgumentOutOfRangeException.ThrowIfNegative(index); 179ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _size); 201ArgumentOutOfRangeException.ThrowIfNegative(index); 202ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _size); 284/// <exception cref="ArgumentOutOfRangeException">Capacity is set to a value that is less than Count.</exception> 307/// <exception cref="ArgumentOutOfRangeException"><c>index</c> is less than zero -or- <c>index</c> is equal to or greater than Count.</exception> 317ArgumentOutOfRangeException.ThrowIfNegative(index); 318ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 325ArgumentOutOfRangeException.ThrowIfNegative(index); 326ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 661/// <exception cref="ArgumentOutOfRangeException"> 684ArgumentOutOfRangeException.ThrowIfNegative(index); 685ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _size); 723/// <exception cref="ArgumentOutOfRangeException">index is less than zero 734ArgumentOutOfRangeException.ThrowIfNegative(index); 735ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 747/// <exception cref="ArgumentOutOfRangeException"> 765ArgumentOutOfRangeException.ThrowIfNegative(index); 766ArgumentOutOfRangeException.ThrowIfNegative(count); 767ArgumentOutOfRangeException.ThrowIfGreaterThan(count, _size - index);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (4)
272ArgumentOutOfRangeException.ThrowIfNegative(index); 273ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 382ArgumentOutOfRangeException.ThrowIfNegative(index); 383ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\MaterialCollection.cs (4)
287ArgumentOutOfRangeException.ThrowIfNegative(index); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 397ArgumentOutOfRangeException.ThrowIfNegative(index); 398ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Model3DCollection.cs (4)
287ArgumentOutOfRangeException.ThrowIfNegative(index); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 397ArgumentOutOfRangeException.ThrowIfNegative(index); 398ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Point3DCollection.cs (4)
229ArgumentOutOfRangeException.ThrowIfNegative(index); 230ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 352ArgumentOutOfRangeException.ThrowIfNegative(index); 353ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Transform3DCollection.cs (4)
287ArgumentOutOfRangeException.ThrowIfNegative(index); 288ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 397ArgumentOutOfRangeException.ThrowIfNegative(index); 398ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Generated\Vector3DCollection.cs (4)
229ArgumentOutOfRangeException.ThrowIfNegative(index); 230ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count); 352ArgumentOutOfRangeException.ThrowIfNegative(index); 353ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _collection.Count);
System\Windows\Media3D\Visual3DCollection.cs (10)
95ArgumentOutOfRangeException.ThrowIfNegative(index); 96ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InternalCount); 138ArgumentOutOfRangeException.ThrowIfNegative(index); 139ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, array.Length); 140ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - Count); 154ArgumentOutOfRangeException.ThrowIfNegative(index); 155ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, array.Length); 156ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - Count); 247ArgumentOutOfRangeException.ThrowIfNegative(index); 248ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InternalCount);
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
360ArgumentOutOfRangeException.ThrowIfLessThan(readOnlyList.Count, count, nameof(count));
PresentationCore.Tests (5)
BinaryFormat\CountTests.cs (1)
14func.Should().Throw<ArgumentOutOfRangeException>();
FluentAssertions\ComparisonHelpers.cs (2)
13ArgumentOutOfRangeException.ThrowIfLessThan(variance, T.Zero); 21ArgumentOutOfRangeException.ThrowIfLessThan(variance, T.Zero);
System\Windows\Media\Animation\RepeatBehavior.Tests.cs (2)
19Assert.Throws<ArgumentOutOfRangeException>(() => new RepeatBehavior(count)); 55Assert.Throws<ArgumentOutOfRangeException>(() => new RepeatBehavior(duration));
PresentationFramework (214)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
398ArgumentOutOfRangeException.ThrowIfNegative(offset); 399ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, realLocator.Parts.Count);
MS\Internal\Annotations\ObservableDictionary.cs (3)
185/// <exception cref="ArgumentOutOfRangeException">startIndex is less than zero or greater than the lenght of target</exception> 189ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 190ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, target.Length);
MS\Internal\Controls\InnerItemCollectionView.cs (3)
430/// <exception cref="ArgumentOutOfRangeException"> 464ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 465ArgumentOutOfRangeException.ThrowIfGreaterThan(position, ViewCount);
MS\Internal\Data\CollectionViewProxy.cs (2)
343/// <exception cref="ArgumentOutOfRangeException"> 349ArgumentOutOfRangeException.ThrowIfNegative(index);
MS\Internal\Data\CompositeCollectionView.cs (5)
188/// <exception cref="ArgumentOutOfRangeException"> 193ArgumentOutOfRangeException.ThrowIfNegative(index); 302/// <exception cref="ArgumentOutOfRangeException"> 307ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 318ArgumentOutOfRangeException.ThrowIfGreaterThan(position, Count);
MS\Internal\Data\EnumerableCollectionView.cs (1)
350/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Data\IndexedEnumerable.cs (2)
198/// <exception cref="ArgumentOutOfRangeException"> 212ArgumentOutOfRangeException.ThrowIfNegative(index);
MS\Internal\Data\RBTree.cs (3)
571ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 624ArgumentOutOfRangeException.ThrowIfNegative(index); 625ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count + delta);
MS\Internal\Documents\ContentElementCollection.cs (6)
60/// <exception cref="ArgumentOutOfRangeException"> 93/// <exception cref="ArgumentOutOfRangeException"> 200/// <exception cref="ArgumentOutOfRangeException"> 242/// <exception cref="ArgumentOutOfRangeException"> 262/// <exception cref="ArgumentOutOfRangeException"> 599/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\DocumentGrid.cs (5)
424ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(scale, 0.0); 441ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 455ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 2679ArgumentOutOfRangeException.ThrowIfLessThan(pageNumber, row.FirstPage); 2680ArgumentOutOfRangeException.ThrowIfGreaterThan(pageNumber, row.FirstPage + row.PageCount);
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
66/// <exception cref="ArgumentOutOfRangeException"> 132/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\PageCache.cs (9)
695ArgumentOutOfRangeException.ThrowIfNegative(start); 696ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count); 754ArgumentOutOfRangeException.ThrowIfNegative(start); 755ArgumentOutOfRangeException.ThrowIfLessThan(count, 1); 789ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _cache.Count); 790ArgumentOutOfRangeException.ThrowIfNegative(index); 816ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(start, _cache.Count); 818ArgumentOutOfRangeException.ThrowIfGreaterThan(count, _cache.Count - start); 819ArgumentOutOfRangeException.ThrowIfLessThan(count, 1);
MS\Internal\Documents\RowCache.cs (21)
241ArgumentOutOfRangeException.ThrowIfNegative(index); 242ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _rowCache.Count); 255ArgumentOutOfRangeException.ThrowIfNegative(pageNumber); 256ArgumentOutOfRangeException.ThrowIfGreaterThan(pageNumber, LastPageInCache); 269ArgumentOutOfRangeException.ThrowIfNegative(pageNumber); 270ArgumentOutOfRangeException.ThrowIfGreaterThan(pageNumber, LastPageInCache); 299ArgumentOutOfRangeException.ThrowIfNegative(offset); 300ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, ExtentHeight); 389ArgumentOutOfRangeException.ThrowIfLessThan(endOffset, startOffset); 501ArgumentOutOfRangeException.ThrowIfNegative(pivotPage); 503ArgumentOutOfRangeException.ThrowIfGreaterThan(pivotPage, PageCache.PageCount); 506ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 640ArgumentOutOfRangeException.ThrowIfNegative(pivotPage); 641ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(pivotPage, PageCache.PageCount); 644ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 722ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.PageCount); 795ArgumentOutOfRangeException.ThrowIfNegative(startPage); 796ArgumentOutOfRangeException.ThrowIfGreaterThan(startPage, PageCache.PageCount); 799ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1); 827ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startPage, PageCache.PageCount); 829ArgumentOutOfRangeException.ThrowIfLessThan(columns, 1);
MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
75/// <exception cref="ArgumentOutOfRangeException"> 224/// <exception cref="ArgumentOutOfRangeException"> 253/// <exception cref="ArgumentOutOfRangeException"> 310/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\TableTextElementCollectionInternal.cs (4)
80/// <exception cref="ArgumentOutOfRangeException"> 173/// <exception cref="ArgumentOutOfRangeException"> 203/// <exception cref="ArgumentOutOfRangeException"> 397/// <exception cref="ArgumentOutOfRangeException">
MS\Internal\Documents\TextBoxView.cs (1)
510ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, this.VisualChildrenCount);
MS\Internal\Documents\UndoManager.cs (6)
497/// <exception cref="ArgumentOutOfRangeException"> 510ArgumentOutOfRangeException.ThrowIfGreaterThan(count, UndoCount); 511ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count); 562/// <exception cref="ArgumentOutOfRangeException"> 575ArgumentOutOfRangeException.ThrowIfGreaterThan(count, RedoStack.Count); 576ArgumentOutOfRangeException.ThrowIfNegativeOrZero(count);
MS\Internal\WeakDictionary.cs (2)
293ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 302ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - count);
MS\Internal\WeakHashSet.cs (2)
40ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 49ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, array.Length - count);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
85ArgumentOutOfRangeException.ThrowIfNegative(index); 137catch (ArgumentOutOfRangeException ex)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
164/// <exception cref="ArgumentOutOfRangeException"> 184/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (4)
194ArgumentOutOfRangeException.ThrowIfNegative(row); 195ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(row, ((IGridProvider)this).RowCount); 196ArgumentOutOfRangeException.ThrowIfNegative(column); 197ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(column, ((IGridProvider)this).ColumnCount);
System\Windows\Automation\Peers\GridViewColumnHeaderAutomationPeer.cs (2)
80ArgumentOutOfRangeException.ThrowIfNegative(width); 81ArgumentOutOfRangeException.ThrowIfNegative(height);
System\Windows\Automation\Peers\RangeBaseAutomationPeer.cs (2)
56ArgumentOutOfRangeException.ThrowIfLessThan(val, owner.Minimum); 57ArgumentOutOfRangeException.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)
2131/// <exception cref="ArgumentOutOfRangeException"> 2144ArgumentOutOfRangeException.ThrowIfNegative(index); 2145ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, parentDataGrid.Columns.Count);
System\Windows\Controls\GridViewColumnCollection.cs (4)
353ArgumentOutOfRangeException.ThrowIfNegative(index); 354ArgumentOutOfRangeException.ThrowIfGreaterThan(index, count); 421ArgumentOutOfRangeException.ThrowIfNegative(index, indexName); 422ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _actualIndices.Count, indexName);
System\Windows\Controls\ItemCollection.cs (9)
288ArgumentOutOfRangeException.ThrowIfNegative(index); 325/// <exception cref="ArgumentOutOfRangeException"> 331ArgumentOutOfRangeException.ThrowIfNegative(index); 341ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _internalView.Count); 363/// <exception cref="ArgumentOutOfRangeException"> 404/// <exception cref="ArgumentOutOfRangeException"> 510/// <exception cref="ArgumentOutOfRangeException"> 523ArgumentOutOfRangeException.ThrowIfNegative(index); 524ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _internalView.Count);
System\Windows\Controls\MultipleCopiesCollection.cs (2)
282ArgumentOutOfRangeException.ThrowIfNegative(index); 283ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, RepeatCount);
System\Windows\Controls\PasswordBox.cs (2)
1057ArgumentOutOfRangeException.ThrowIfNegative(start); 1058ArgumentOutOfRangeException.ThrowIfNegative(length);
System\Windows\Controls\TextBox.cs (20)
152ArgumentOutOfRangeException.ThrowIfNegative(start); 153ArgumentOutOfRangeException.ThrowIfNegative(length); 236ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 237ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 260ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 261ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 291ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 292ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 367ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 368ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 395ArgumentOutOfRangeException.ThrowIfNegative(lineIndex); 396ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(lineIndex, LineCount); 432ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 433ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 476ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 477ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 547ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 548ArgumentOutOfRangeException.ThrowIfGreaterThan(charIndex, this.TextContainer.SymbolCount); 803ArgumentOutOfRangeException.ThrowIfNegative(value); 844ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
382ArgumentOutOfRangeException.ThrowIfNegative(index); 383ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Controls\VirtualizingStackPanel.cs (3)
1610/// <exception cref="ArgumentOutOfRangeException"> 1681ArgumentOutOfRangeException.ThrowIfNegative(itemIndex); 1682ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, ItemCount);
System\Windows\Data\BindingListCollectionView.cs (3)
104ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 105ArgumentOutOfRangeException.ThrowIfGreaterThan(position, InternalCount); 157/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Data\CollectionView.cs (4)
541ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 542ArgumentOutOfRangeException.ThrowIfGreaterThan(position, Count); 652/// <exception cref="ArgumentOutOfRangeException"> 658ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Data\CompositeCollection.cs (3)
180/// <exception cref="ArgumentOutOfRangeException"> 222/// <exception cref="ArgumentOutOfRangeException"> 292/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Data\ListCollectionView.cs (3)
196ArgumentOutOfRangeException.ThrowIfLessThan(position, -1); 197ArgumentOutOfRangeException.ThrowIfGreaterThan(position, InternalCount); 297/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Data\RelativeSource.cs (1)
203/// <exception cref="ArgumentOutOfRangeException"> AncestorLevel cannot be set to less than 1 </exception>
System\Windows\Documents\FixedDocument.cs (2)
309/// <exception cref="ArgumentOutOfRangeException">pageNumber is less than zero.</exception> 356/// <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)
55/// <exception cref="ArgumentOutOfRangeException"> 74/// <exception cref="ArgumentOutOfRangeException"> 160/// <exception cref="ArgumentOutOfRangeException"> 208/// <exception cref="ArgumentOutOfRangeException"> 230/// <exception cref="ArgumentOutOfRangeException"> 410/// <exception cref="ArgumentOutOfRangeException"> 433/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TableColumnCollection.cs (7)
55/// <exception cref="ArgumentOutOfRangeException"> 74/// <exception cref="ArgumentOutOfRangeException"> 160/// <exception cref="ArgumentOutOfRangeException"> 208/// <exception cref="ArgumentOutOfRangeException"> 230/// <exception cref="ArgumentOutOfRangeException"> 418/// <exception cref="ArgumentOutOfRangeException"> 441/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TableRowCollection.cs (7)
55/// <exception cref="ArgumentOutOfRangeException"> 74/// <exception cref="ArgumentOutOfRangeException"> 160/// <exception cref="ArgumentOutOfRangeException"> 208/// <exception cref="ArgumentOutOfRangeException"> 230/// <exception cref="ArgumentOutOfRangeException"> 410/// <exception cref="ArgumentOutOfRangeException"> 433/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TableRowGroupCollection.cs (7)
55/// <exception cref="ArgumentOutOfRangeException"> 74/// <exception cref="ArgumentOutOfRangeException"> 160/// <exception cref="ArgumentOutOfRangeException"> 208/// <exception cref="ArgumentOutOfRangeException"> 230/// <exception cref="ArgumentOutOfRangeException"> 409/// <exception cref="ArgumentOutOfRangeException"> 432/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Documents\TextElementCollection.cs (1)
606ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
System\Windows\Documents\ZoomPercentageConverter.cs (1)
189catch (ArgumentOutOfRangeException) { }
System\Windows\FigureLength.cs (3)
124ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 1.0); 129ArgumentOutOfRangeException.ThrowIfGreaterThan(value, maxColumns); 134ArgumentOutOfRangeException.ThrowIfGreaterThan(value, maxPixel);
System\Windows\Markup\Baml2006\SharedStream.cs (5)
51ArgumentOutOfRangeException.ThrowIfNegative(offset); 53ArgumentOutOfRangeException.ThrowIfNegative(length); 168ArgumentOutOfRangeException.ThrowIfNegative(offset); 169ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, buffer.Length); 170ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length - count);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
297ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex);
System\Windows\Markup\XamlStream.cs (3)
178ArgumentOutOfRangeException.ThrowIfLessThan(position, ReadLength); 185ArgumentOutOfRangeException.ThrowIfGreaterThan(position, WriteLength); 216ArgumentOutOfRangeException.ThrowIfGreaterThan(count, ReadLength - ReadPosition);
System\Windows\Media\Animation\Generated\KeyFrames.cs (2)
132ArgumentOutOfRangeException.ThrowIfNegative(keyFrameProgress); 133ArgumentOutOfRangeException.ThrowIfGreaterThan(keyFrameProgress, 1.0);
System\Windows\StyleHelper.cs (1)
5435ArgumentOutOfRangeException.ThrowIfNegative(childIndex);
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1895catch (ArgumentOutOfRangeException) { }
ReachFramework (61)
PrintConfig\DocumentNUp.cs (2)
506/// <exception cref="ArgumentOutOfRangeException"> 619/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobCollate.cs (1)
267/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobDuplex.cs (1)
265/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobInputBins.cs (1)
352/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobPageOrder.cs (1)
239/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\JobStaple.cs (1)
270/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageBorderless.cs (1)
240/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageCopyCount.cs (1)
73/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageDeviceFont.cs (1)
241/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageMediaSize.cs (6)
454/// <exception cref="ArgumentOutOfRangeException"> 495/// <exception cref="ArgumentOutOfRangeException"> 510/// <exception cref="ArgumentOutOfRangeException"> 513/// <exception cref="ArgumentOutOfRangeException"> 538/// <exception cref="ArgumentOutOfRangeException"> 541/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageMediaType.cs (1)
242/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageOrientation.cs (1)
239/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageOutputColor.cs (1)
242/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageOutputQuality.cs (1)
241/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageResolution.cs (3)
336/// <exception cref="ArgumentOutOfRangeException"> 363/// <exception cref="ArgumentOutOfRangeException"> 390/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageScaling.cs (1)
516/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PageTrueTypeFont.cs (1)
241/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PhotoPrintingIntent.cs (1)
239/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PrtCap_Public.cs (1)
102/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PrtTicket_Public_Simple.cs (23)
336/// <exception cref="ArgumentOutOfRangeException"> 380/// <exception cref="ArgumentOutOfRangeException"> 426/// <exception cref="ArgumentOutOfRangeException"> 470/// <exception cref="ArgumentOutOfRangeException"> 523/// <exception cref="ArgumentOutOfRangeException"> 592/// <exception cref="ArgumentOutOfRangeException"> 636/// <exception cref="ArgumentOutOfRangeException"> 680/// <exception cref="ArgumentOutOfRangeException"> 724/// <exception cref="ArgumentOutOfRangeException"> 728/// <exception cref="ArgumentOutOfRangeException"> 732/// <exception cref="ArgumentOutOfRangeException"> 835/// <exception cref="ArgumentOutOfRangeException"> 879/// <exception cref="ArgumentOutOfRangeException"> 923/// <exception cref="ArgumentOutOfRangeException"> 967/// <exception cref="ArgumentOutOfRangeException"> 971/// <exception cref="ArgumentOutOfRangeException"> 975/// <exception cref="ArgumentOutOfRangeException"> 1077/// <exception cref="ArgumentOutOfRangeException"> 1130/// <exception cref="ArgumentOutOfRangeException"> 1177/// <exception cref="ArgumentOutOfRangeException"> 1221/// <exception cref="ArgumentOutOfRangeException"> 1265/// <exception cref="ArgumentOutOfRangeException"> 1309/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PTConverter.cs (7)
64/// <exception cref="ArgumentOutOfRangeException"> 78ArgumentOutOfRangeException.ThrowIfGreaterThan(clientPrintSchemaVersion, MaxPrintSchemaVersion); 79ArgumentOutOfRangeException.ThrowIfNegativeOrZero(clientPrintSchemaVersion); 144/// <exception cref="ArgumentOutOfRangeException"> 176/// <exception cref="ArgumentOutOfRangeException"> 204/// <exception cref="ArgumentOutOfRangeException"> 207/// <exception cref="ArgumentOutOfRangeException">
PrintConfig\PTManager.cs (4)
198/// <exception cref="ArgumentOutOfRangeException"> 212ArgumentOutOfRangeException.ThrowIfNegativeOrZero(clientPrintSchemaVersion); 213ArgumentOutOfRangeException.ThrowIfGreaterThan(clientPrintSchemaVersion, MaxPrintSchemaVersion); 353/// <exception cref="ArgumentOutOfRangeException">
Shared (37)
BufferWriterPool\BufferWriter.cs (2)
113/// <exception cref="ArgumentOutOfRangeException"> 148/// <exception cref="ArgumentOutOfRangeException">
Data.Validation\LengthAttribute.cs (1)
91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception>
Throw\Throw.cs (34)
214/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the enum value is not valid. 324/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 335/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 347/// Throws an <see cref="System.ArgumentOutOfRangeException"/>. 416/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 434/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 452/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 470/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 488/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 507/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 528/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 546/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 564/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 582/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 600/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 619/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 640/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 658/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 676/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 694/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 712/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 731/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 752/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 770/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 788/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 806/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 824/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 843/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0. 864/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less than min. 885/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater than max. 906/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is less or equal than min. 927/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is greater or equal than max. 948/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is not in the specified range. 968/// Throws an <see cref="System.ArgumentOutOfRangeException"/> if the specified number is equal to 0.
Shared.Tests (86)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
75Assert.Throws<ArgumentOutOfRangeException>(() => nothing[0]);
EmptyCollections\EmptyReadOnlyListTests.cs (1)
28Assert.Throws<ArgumentOutOfRangeException>(() => instance[0]);
Pools\PoolTests.cs (5)
223Assert.Throws<ArgumentOutOfRangeException>(() => PoolFactory.CreatePool<Foo>(0)); 226Assert.Throws<ArgumentOutOfRangeException>(() => PoolFactory.CreatePool<Foo>(new FooPolicy(), 0)); 228Assert.Throws<ArgumentOutOfRangeException>(() => PoolFactory.CreateResettingPool<Foo>(0)); 230Assert.Throws<ArgumentOutOfRangeException>(() => PoolFactory.CreateStringBuilderPool(0, 200)); 231Assert.Throws<ArgumentOutOfRangeException>(() => PoolFactory.CreateStringBuilderPool(200, 0));
Throw\DoubleTests.cs (18)
18var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThan(0.0, 1.0, "paramName")); 22exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThan(double.NaN, 1.0, "paramName")); 37var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThan(1.4, 0.0, "paramName")); 41exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThan(double.NaN, 0.0, "paramName")); 56var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThanOrEqual(1.2, 1.2, "paramName")); 60exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThanOrEqual(double.NaN, 1.2, "paramName")); 75var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThanOrEqual(1.22, 1.22, "paramName")); 79exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThanOrEqual(double.NaN, 1.22, "paramName")); 96var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfZero(zero, "paramName")); 115var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(-1.0, 0, 1, "foo")); 119exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(2.0, 0, 1, "foo")); 126exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(double.NaN, 0, 1, "foo"));
Throw\IntegerTests.cs (26)
18var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThan(0, 1, "paramName")); 33var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThan(1, 0, "paramName")); 48var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThanOrEqual(1, 1, "paramName")); 63var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThanOrEqual(1, 1, "paramName")); 78var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfZero(0, "paramName")); 93var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(-1, 0, 1, "foo")); 97exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(2, 0, 1, "foo")); 178var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThan(0U, 1U, "paramName")); 193var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThan(1U, 0U, "paramName")); 208var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThanOrEqual(1U, 1U, "paramName")); 223var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThanOrEqual(1U, 1U, "paramName")); 238var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfZero(0U, "paramName")); 253var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(0U, 1, 2, "foo")); 257exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(2U, 0U, 1U, "foo"));
Throw\LongTests.cs (26)
18var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThan(0L, 1L, "paramName")); 33var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThan(1L, 0L, "paramName")); 48var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThanOrEqual(1L, 1L, "paramName")); 63var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThanOrEqual(1L, 1L, "paramName")); 78var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfZero(0L, "paramName")); 93var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(-1L, 0, 1, "foo")); 97exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(2L, 0, 1, "foo")); 178var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThan(0UL, 1UL, "paramName")); 193var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThan(1UL, 0UL, "paramName")); 208var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfLessThanOrEqual(1UL, 1UL, "paramName")); 223var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfGreaterThanOrEqual(1UL, 1UL, "paramName")); 238var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfZero(0UL, "paramName")); 253var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(0UL, 1UL, 2UL, "foo")); 257exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange(2L, 0UL, 1UL, "foo"));
Throw\ThrowTest.cs (9)
82var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.ArgumentOutOfRangeException(paramName)); 91var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.ArgumentOutOfRangeException(paramName, message)); 103var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.ArgumentOutOfRangeException(paramName, actualValue, message)); 403var exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange((Color)(-1), "foo")); 407exception = Assert.Throws<ArgumentOutOfRangeException>(() => Throw.IfOutOfRange((Color)3, "foo"));
System.Collections (37)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (2)
32ArgumentOutOfRangeException.ThrowIfNegative(index); 33ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length);
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\OrderedDictionary.cs (7)
11using static System.ArgumentOutOfRangeException; 74/// <exception cref="ArgumentOutOfRangeException">capacity is less than 0.</exception> 100/// <exception cref="ArgumentOutOfRangeException">capacity is less than 0.</exception> 593/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 722/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than <see cref="Count"/>.</exception> 867/// <exception cref="ArgumentOutOfRangeException"><paramref name="capacity"/> is negative.</exception> 894/// <exception cref="ArgumentOutOfRangeException"><paramref name="capacity"/> is less than <see cref="Count"/>.</exception>
System\Collections\Generic\PriorityQueue.cs (5)
80/// <exception cref="ArgumentOutOfRangeException"> 111/// <exception cref="ArgumentOutOfRangeException"> 116ArgumentOutOfRangeException.ThrowIfNegative(initialCapacity); 591/// <exception cref="ArgumentOutOfRangeException"> 597ArgumentOutOfRangeException.ThrowIfNegative(capacity);
System\Collections\Generic\SortedDictionary.cs (4)
540ArgumentOutOfRangeException.ThrowIfNegative(index); 564ArgumentOutOfRangeException.ThrowIfNegative(index); 701ArgumentOutOfRangeException.ThrowIfNegative(index); 725ArgumentOutOfRangeException.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)
84/// <exception cref="ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is less than 1.</exception> 85/// <exception cref="ArgumentOutOfRangeException"> <paramref name="capacity"/> is less than 0.</exception> 139/// <exception cref="ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is less than 1.</exception> 157/// <exception cref="ArgumentOutOfRangeException"><paramref name="concurrencyLevel"/> is less than 1. -or- <paramref name="capacity"/> is less than 0.</exception> 175ArgumentOutOfRangeException.ThrowIfNegative(capacity); 745/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0.</exception> 755ArgumentOutOfRangeException.ThrowIfNegative(index); 1883/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 1893ArgumentOutOfRangeException.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 (9)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
987/// <exception cref="ArgumentOutOfRangeException">
System\Collections\Immutable\ImmutableList_1.cs (5)
111/// <exception cref="ArgumentOutOfRangeException"> 172/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is negative or not less than <see cref="Count"/>.</exception> 180/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is negative or not less than <see cref="Count"/>.</exception> 938/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is negative or not less than <see cref="Count"/> (getter).</exception> 1068/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is negative or not less than <see cref="Count"/> (getter).</exception>
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
640/// <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 (7)
System\Console.cs (3)
627ArgumentOutOfRangeException.ThrowIfNegative(bufferSize); 639ArgumentOutOfRangeException.ThrowIfNegative(bufferSize); 651ArgumentOutOfRangeException.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.Data.Odbc (17)
Common\System\Data\Common\AdapterUtil.Odbc.cs (6)
88internal static ArgumentOutOfRangeException InvalidCommandType(CommandType value) 104internal static ArgumentOutOfRangeException InvalidDataRowVersion(DataRowVersion value) 121internal static ArgumentOutOfRangeException InvalidIsolationLevel(IsolationLevel value) 141internal static ArgumentOutOfRangeException InvalidKeyRestrictionBehavior(KeyRestrictionBehavior value) 156internal static ArgumentOutOfRangeException InvalidParameterDirection(ParameterDirection value) 173internal static ArgumentOutOfRangeException InvalidUpdateRowSource(UpdateRowSource value)
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\Odbc\Odbc32.cs (3)
33internal static ArgumentOutOfRangeException NotSupportedEnumerationValue(Type type, int value) 38internal static ArgumentOutOfRangeException NotSupportedCommandType(CommandType value) 56internal static ArgumentOutOfRangeException NotSupportedIsolationLevel(IsolationLevel value)
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Metrics\TagList.netcore.cs (5)
67ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual((uint)index, (uint)_tagsCount, nameof(index)); 74ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual((uint)index, (uint)_tagsCount, nameof(index)); 161ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual((uint)arrayIndex, (uint)array.Length, nameof(arrayIndex)); 180ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)index, (uint)_tagsCount, nameof(index)); 215ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual((uint)index, (uint)_tagsCount, nameof(index));
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
1451ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 1452ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout));
System.Drawing.Common.Tests (22)
System\Drawing\BitmapTests.cs (4)
559AssertExtensions.Throws<ArgumentOutOfRangeException>("x", () => bitmap.GetPixel(x, 0)); 568AssertExtensions.Throws<ArgumentOutOfRangeException>("y", () => bitmap.GetPixel(0, y)); 942AssertExtensions.Throws<ArgumentOutOfRangeException>("x", () => bitmap.SetPixel(x, 0, Color.Red)); 951AssertExtensions.Throws<ArgumentOutOfRangeException>("y", () => bitmap.SetPixel(0, y, Color.Red));
System\Drawing\Drawing2D\GraphicsPathTests.cs (8)
573AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>(() => gp.AddCurve(points)); 574AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>(() => gp.AddCurve(points, 0, 2, 0.5f)); 588AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>(() => gp.AddCurve(points)); 589AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>(() => gp.AddCurve(points, 0, 2, 0.5f)); 603AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>( 606AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>( 614AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>( 617AssertExtensions.ThrowsAny<ArgumentException, ArgumentOutOfRangeException>(
System\Drawing\IconTests.cs (2)
592AssertExtensions.Throws<ArgumentOutOfRangeException>(null, icon.ToBitmap); 804Assert.Throws<ArgumentOutOfRangeException>(() => { Icon.ExtractIcon("Foo", 0, size); });
System\Drawing\Printing\MarginsTests.cs (8)
58AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("left", null, () => new Margins(-1, 2, 3, 4)); 64AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("right", null, () => new Margins(1, -1, 3, 4)); 70AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("top", null, () => new Margins(1, 2, -1, 4)); 76AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("bottom", null, () => new Margins(1, 2, 3, -1)); 178AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("value", null, () => margins.Left = -1); 200AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("value", null, () => margins.Right = -1); 222AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("value", null, () => margins.Top = -1); 244AssertExtensions.Throws<ArgumentOutOfRangeException, ArgumentException>("value", null, () => margins.Bottom = -1);
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"> 125/// <exception cref="ArgumentOutOfRangeException"> 247/// <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"> 781/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Enumerated.cs (2)
28/// <exception cref="ArgumentOutOfRangeException"> 80/// <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)
30/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.SetOf.cs (1)
35/// <exception cref="ArgumentOutOfRangeException">
System\Formats\Asn1\AsnDecoder.Text.cs (6)
36/// <exception cref="ArgumentOutOfRangeException"> 115/// <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)
39/// <exception cref="ArgumentOutOfRangeException"> 59/// <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 (11)
System\Formats\Tar\PosixTarEntry.cs (6)
53/// <exception cref="ArgumentOutOfRangeException">The value is negative, or larger than 2097151 when using <see cref="TarEntryFormat.V7"/> or <see cref="TarEntryFormat.Ustar"/>.</exception> 64ArgumentOutOfRangeException.ThrowIfNegative(value); 67ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 0x1FFFFF); // 7777777 in octal 79/// <exception cref="ArgumentOutOfRangeException">The value is negative, or larger than 2097151 when using <see cref="TarEntryFormat.V7"/> or <see cref="TarEntryFormat.Ustar"/>.</exception> 90ArgumentOutOfRangeException.ThrowIfNegative(value); 93ArgumentOutOfRangeException.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)
98/// <exception cref="ArgumentOutOfRangeException">The specified value is larger than <see cref="DateTimeOffset.UnixEpoch"/> when using <see cref="TarEntryFormat.V7"/> or <see cref="TarEntryFormat.Ustar"/>.</exception> 106ArgumentOutOfRangeException.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 (11)
System\IO\Compression\ZipArchive.cs (3)
53/// <exception cref="ArgumentOutOfRangeException">mode specified an invalid value.</exception> 64/// <exception cref="ArgumentOutOfRangeException">mode specified an invalid value.</exception> 76/// <exception cref="ArgumentOutOfRangeException">mode specified an invalid value.</exception>
System\IO\Compression\ZipArchiveEntry.cs (1)
263/// <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\ZLibCompressionOptions.cs (6)
17/// <exception cref="ArgumentOutOfRangeException">The value is less than -1 or greater than 9.</exception> 27ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 28ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 9); 36/// <exception cref="ArgumentOutOfRangeException" >The value is not a valid <see cref="ZLibCompressionStrategy"/> value.</exception> 42ArgumentOutOfRangeException.ThrowIfLessThan((int)value, (int) ZLibCompressionStrategy.Default, nameof(value)); 43ArgumentOutOfRangeException.ThrowIfGreaterThan((int)value, (int)ZLibCompressionStrategy.Fixed, nameof(value));
System.IO.Compression.Brotli (7)
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\BrotliCompressionOptions.cs (3)
16/// <exception cref="ArgumentOutOfRangeException" accessor="set">The value is less than 0 or greater than 11.</exception> 25ArgumentOutOfRangeException.ThrowIfLessThan(value, 0, nameof(value)); 26ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 11, nameof(value));
System\IO\Compression\enc\BrotliEncoder.cs (3)
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 large enough that the result would be larger than <see cref="int.MaxValue"/>.</exception> 112ArgumentOutOfRangeException.ThrowIfNegative(inputSize);
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)
32/// <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.Packaging (22)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
235ArgumentOutOfRangeException.ThrowIfNegative(newLength);
System\IO\Packaging\Package.cs (12)
28/// <exception cref="ArgumentOutOfRangeException">If FileAccess enumeration does not have one of the valid values</exception> 107/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [packageMode] does not have one of the valid values</exception> 123/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [packageMode] does not have one of the valid values</exception> 124/// <exception cref="ArgumentOutOfRangeException">If FileAccess enumeration [packageAccess] does not have one of the valid values</exception> 159/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [packageMode] does not have one of the valid values</exception> 208/// <exception cref="ArgumentOutOfRangeException">If CompressionOption enumeration [compressionOption] does not have one of the valid values</exception> 575/// <exception cref="ArgumentOutOfRangeException">If parameter "targetMode" enumeration does not have a valid value</exception> 597/// <exception cref="ArgumentOutOfRangeException">If parameter "targetMode" enumeration does not have a valid value</exception> 849/// <exception cref="ArgumentOutOfRangeException">If FileAccess enumeration [packageAccess] does not have one of the valid values</exception> 850/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [packageMode] does not have one of the valid values</exception> 915/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [packageMode] does not have one of the valid values</exception> 916/// <exception cref="ArgumentOutOfRangeException">If FileAccess enumeration [packageAccess] does not have one of the valid values</exception>
System\IO\Packaging\PackagePart.cs (6)
94/// <exception cref="ArgumentOutOfRangeException">If CompressionOption enumeration [compressionOption] does not have one of the valid values</exception> 288/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [mode] does not have one of the valid values</exception> 311/// <exception cref="ArgumentOutOfRangeException">If FileMode enumeration [mode] does not have one of the valid values</exception> 312/// <exception cref="ArgumentOutOfRangeException">If FileAccess enumeration [access] does not have one of the valid values</exception> 379/// <exception cref="ArgumentOutOfRangeException">If parameter "targetMode" enumeration does not have a valid value</exception> 403/// <exception cref="ArgumentOutOfRangeException">If parameter "targetMode" enumeration does not have a valid value</exception>
System\IO\Packaging\PackageRelationshipSelector.cs (1)
26/// <exception cref="ArgumentOutOfRangeException">If selectorType Enumeration does not have a valid value</exception>
System\IO\Packaging\ZipPackage.cs (1)
35/// <exception cref="ArgumentOutOfRangeException">If CompressionOption enumeration [compressionOption] does not have one of the valid values</exception>
System\IO\Packaging\ZipPackagePartPiece.cs (1)
161ArgumentOutOfRangeException.ThrowIfNegative(pieceNumber);
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)
42/// <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.AsyncEnumerable (7)
System\Linq\Chunk.cs (1)
25/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is less than 1.</exception>
System\Linq\ElementAtAsync.cs (3)
19/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is outside the bounds of the source sequence (via the returned task).</exception> 56/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is outside the bounds of the <paramref name="source" /> sequence.</exception> 63/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is outside the bounds of the source sequence (via the returned task).</exception>
System\Linq\Range.cs (2)
14/// <exception cref="ArgumentOutOfRangeException"><paramref name="count"/> is less than 0</exception> 15/// <exception cref="ArgumentOutOfRangeException"><paramref name="start"/> + <paramref name="count"/> -1 is larger than <see cref="int.MaxValue"/>.</exception>
System\Linq\Repeat.cs (1)
15/// <exception cref="ArgumentOutOfRangeException"><paramref name="count"/> is less than 0.</exception>
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)
836/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is below 1.</exception> 1455/// <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)
109ArgumentOutOfRangeException.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)
287ArgumentOutOfRangeException.ThrowIfNegative(code); 288ArgumentOutOfRangeException.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)
239ArgumentOutOfRangeException.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)
117ArgumentOutOfRangeException.ThrowIfNegative(offset); 118ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 120ArgumentOutOfRangeException.ThrowIfNegative(count); 121ArgumentOutOfRangeException.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)
127ArgumentOutOfRangeException.ThrowIfGreaterThan((ulong)newAddress, 0x00000000FFFFFFFF, nameof(newAddress)); 151ArgumentOutOfRangeException.ThrowIfGreaterThan((ulong)scopeid, 0x00000000FFFFFFFF, nameof(scopeid)); 443ArgumentOutOfRangeException.ThrowIfNegative(value); 444ArgumentOutOfRangeException.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)
67ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\FtpControlStream.cs (1)
948catch (ArgumentOutOfRangeException)
System\Net\FtpWebRequest.cs (1)
422ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Net\HttpWebRequest.cs (5)
257ArgumentOutOfRangeException.ThrowIfLessThan(value, System.Threading.Timeout.Infinite); 270ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 338ArgumentOutOfRangeException.ThrowIfNegative(value); 690ArgumentOutOfRangeException.ThrowIfLessThan(value, 0); 703ArgumentOutOfRangeException.ThrowIfLessThan(value, -1);
System\Net\ServicePoint\ServicePoint.cs (6)
36ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 48ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 60ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 80ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 101ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveTime); 102ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveInterval);
System\Net\ServicePoint\ServicePointManager.cs (5)
57ArgumentOutOfRangeException.ThrowIfNegative(value); 67ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 77ArgumentOutOfRangeException.ThrowIfLessThan(value, Timeout.Infinite); 214ArgumentOutOfRangeException.ThrowIfNegativeOrZero(keepAliveTime); 215ArgumentOutOfRangeException.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)
353/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than -1.</exception> 362ArgumentOutOfRangeException.ThrowIfLessThan(timeout, -1); 369/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is less than -1 milliseconds or greater than <see cref="int.MaxValue"/> milliseconds.</exception> 382ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 383ArgumentOutOfRangeException.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)
520ArgumentOutOfRangeException.ThrowIfNegative(value); 535ArgumentOutOfRangeException.ThrowIfNegative(value); 551ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 572ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 632ArgumentOutOfRangeException.ThrowIfNegative(value); 633ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 255); 991ArgumentOutOfRangeException.ThrowIfLessThan(timeout, -1); 2375/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> was negative or greater than TimeSpan.FromMicroseconds(int.MaxValue).</exception> 2387/// <exception cref="ArgumentOutOfRangeException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter contains too many sockets.</exception> 2429/// <exception cref="ArgumentOutOfRangeException">The <paramref name="checkRead"/>, <paramref name="checkWrite"/>, or <paramref name="checkError"/> parameter contains too many sockets.</exception> 2430/// <exception cref="ArgumentOutOfRangeException">The <paramref name="timeout"/> was negative or greater than TimeSpan.FromMicroseconds(int.MaxValue).</exception> 2443ArgumentOutOfRangeException.ThrowIfLessThan(timeout, TimeSpan.Zero); 2445ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMicroseconds, int.MaxValue, nameof(timeout)); 2754ArgumentOutOfRangeException.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)
337ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)_buffer.Length, nameof(offset)); 338ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)count, (long)(_buffer.Length - offset), nameof(count)); 393ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)offset, (uint)buffer.Length, nameof(offset)); 394ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)count, (long)(buffer.Length - offset), nameof(count));
System\Net\Sockets\SocketPal.Unix.cs (2)
2002ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(arrOffset, arrLength, nameof(socketList)); 2037ArgumentOutOfRangeException.ThrowIfNegative(arrEndOffset);
System\Net\Sockets\TCPListener.cs (1)
137ArgumentOutOfRangeException.ThrowIfNegative(backlog);
System\Net\Sockets\UDPClient.cs (4)
319ArgumentOutOfRangeException.ThrowIfNegative(bytes); 320ArgumentOutOfRangeException.ThrowIfGreaterThan(bytes, datagram.Length); 442ArgumentOutOfRangeException.ThrowIfNegative(ifindex); 511ArgumentOutOfRangeException.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 (11)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
117ArgumentOutOfRangeException.ThrowIfNegative(offset); 118ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 120ArgumentOutOfRangeException.ThrowIfNegative(count); 121ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System\Net\WebSockets\ValueWebSocketReceiveResult.cs (1)
20ArgumentOutOfRangeException.ThrowIfNegative(count);
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)
117ArgumentOutOfRangeException.ThrowIfNegative(offset); 118ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, buffer.Length); 120ArgumentOutOfRangeException.ThrowIfNegative(count); 121ArgumentOutOfRangeException.ThrowIfGreaterThan(count, buffer.Length - offset);
System\Net\WebSockets\ClientWebSocketOptions.cs (5)
240ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 241ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sendBufferSize); 252ArgumentOutOfRangeException.ThrowIfNegativeOrZero(receiveBufferSize); 253ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sendBufferSize); 256ArgumentOutOfRangeException.ThrowIfZero(buffer.Count, nameof(buffer));
System.Numerics.Tensors (11)
System\NIndex.cs (1)
127/// then used to <see cref="NIndex"/> a collection, an <see cref="ArgumentOutOfRangeException" /> is thrown, which has the same effect as the validation.
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
50/// <exception cref="ArgumentOutOfRangeException">The specified <paramref name="startIndex"/> or end index is not in the range (&lt;0 or &gt;FlattenedLength). 67/// <exception cref="ArgumentOutOfRangeException"> 273/// <exception cref="ArgumentOutOfRangeException">
System\Numerics\Tensors\netcore\Tensor.cs (1)
337/// <exception cref="ArgumentOutOfRangeException"></exception>
System\Numerics\Tensors\netcore\Tensor.Factory.cs (2)
52/// <exception cref="ArgumentOutOfRangeException"></exception> 64/// <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)
51/// <exception cref="ArgumentOutOfRangeException"> 69/// <exception cref="ArgumentOutOfRangeException"> 274/// <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 (968)
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">int.MaxValue</see>.</exception>
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (9)
83ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 122ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 123ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 191ArgumentOutOfRangeException.ThrowIfNegativeOrZero(assemblyByteLength); 192ArgumentOutOfRangeException.ThrowIfGreaterThan(assemblyByteLength, int.MaxValue); 193ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 194ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 264ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 265ArgumentOutOfRangeException.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)
76ArgumentOutOfRangeException.ThrowIfNegative(length); 90ArgumentOutOfRangeException.ThrowIfNegative(length1); 91ArgumentOutOfRangeException.ThrowIfNegative(length2); 106ArgumentOutOfRangeException.ThrowIfNegative(length1); 107ArgumentOutOfRangeException.ThrowIfNegative(length2); 108ArgumentOutOfRangeException.ThrowIfNegative(length3); 198/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is negative.</exception> 208ArgumentOutOfRangeException.ThrowIfNegative(length); 233/// <exception cref="ArgumentOutOfRangeException">Any value in <paramref name="lengths"/> is less than zero.</exception> 290/// <exception cref="ArgumentOutOfRangeException">Any value in <paramref name="lengths"/> is less than zero.</exception>
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (30)
389/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 397/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than the length of a <see cref="char"/>.</exception> 414/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 432/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 2.</exception> 452/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 470/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 4.</exception> 490/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 508/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 8.</exception> 528/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 546/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 16.</exception> 563/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 572/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 2.</exception> 593/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 602/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 4.</exception> 623/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 632/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 8.</exception> 653/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 672/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 16.</exception> 690/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 698/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 2.</exception> 718/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 726/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 4.</exception> 746/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 754/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="value"/> is less than 8.</exception> 774/// <exception cref="ArgumentOutOfRangeException"> 789ArgumentOutOfRangeException.ThrowIfNegative(length); 799ArgumentOutOfRangeException.ThrowIfGreaterThan(length, int.MaxValue / 3); 847/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 862/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than zero or greater than the length of <paramref name="value"/> minus 1.</exception> 880/// <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 (2)
38/// <exception cref="ArgumentOutOfRangeException"> 44ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Encoder.cs (2)
40/// <exception cref="ArgumentOutOfRangeException"> 46ArgumentOutOfRangeException.ThrowIfGreaterThan<uint>((uint)length, MaximumEncodeLength);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (2)
27/// <exception cref="ArgumentOutOfRangeException">The specified <paramref name="base64Length"/> is less than 0. 32ArgumentOutOfRangeException.ThrowIfNegative(base64Length);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlEncoder.cs (2)
36/// <exception cref="ArgumentOutOfRangeException"> 42ArgumentOutOfRangeException.ThrowIfGreaterThan<uint>((uint)bytesLength, MaximumEncodeLength);
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)
122/// <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)
1582/// <exception cref="ArgumentOutOfRangeException">Passed capacity is lower than entries count.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (4)
1184ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 1185ArgumentOutOfRangeException.ThrowIfNegative(count); 1343/// <exception cref="ArgumentOutOfRangeException">Passed capacity is lower than entries count.</exception> 1346ArgumentOutOfRangeException.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)
32ArgumentOutOfRangeException.ThrowIfNegative(index); 33ArgumentOutOfRangeException.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); 3042/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3059/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> or <paramref name="length"/> is negative.</exception> 3060/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> plus <paramref name="length"/> is greater than the length of <paramref name="inArray"/>.</exception> 3061/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3066ArgumentOutOfRangeException.ThrowIfNegative(length); 3067ArgumentOutOfRangeException.ThrowIfNegative(offset); 3068ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, inArray.Length - length); 3078/// <exception cref="ArgumentOutOfRangeException"><paramref name="bytes"/> is too large to be encoded.</exception> 3083ArgumentOutOfRangeException.ThrowIfGreaterThan(bytes.Length, int.MaxValue / 2, nameof(bytes)); 3119/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3136/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> or <paramref name="length"/> is negative.</exception> 3137/// <exception cref="ArgumentOutOfRangeException"><paramref name="offset"/> plus <paramref name="length"/> is greater than the length of <paramref name="inArray"/>.</exception> 3138/// <exception cref="ArgumentOutOfRangeException"><paramref name="inArray"/> is too large to be encoded.</exception> 3143ArgumentOutOfRangeException.ThrowIfNegative(length); 3144ArgumentOutOfRangeException.ThrowIfNegative(offset); 3145ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, inArray.Length - length); 3155/// <exception cref="ArgumentOutOfRangeException"><paramref name="bytes"/> is too large to be encoded.</exception> 3160ArgumentOutOfRangeException.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)
248/// <exception cref="ArgumentOutOfRangeException"> 385/// <exception cref="ArgumentOutOfRangeException"> 444/// <exception cref="ArgumentOutOfRangeException"> 504/// <exception cref="ArgumentOutOfRangeException"> 572/// <exception cref="ArgumentOutOfRangeException"> 634/// <exception cref="ArgumentOutOfRangeException"> 699/// <exception cref="ArgumentOutOfRangeException"> 763/// <exception cref="ArgumentOutOfRangeException"> 929/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (3)
221/// <exception cref="ArgumentOutOfRangeException"> 281/// <exception cref="ArgumentOutOfRangeException"> 490/// <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)
61ArgumentOutOfRangeException.ThrowIfNegative(skipFrames); 73ArgumentOutOfRangeException.ThrowIfNegative(skipFrames); 106ArgumentOutOfRangeException.ThrowIfNegative(skipFrames); 119ArgumentOutOfRangeException.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)
652ArgumentOutOfRangeException.ThrowIfNegative(year);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (4)
385ArgumentOutOfRangeException.ThrowIfNegative(length1); 386ArgumentOutOfRangeException.ThrowIfNegative(length2); 388ArgumentOutOfRangeException.ThrowIfNegative(offset1); 389ArgumentOutOfRangeException.ThrowIfNegative(offset2);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
200ArgumentOutOfRangeException.ThrowIfNegative(culture); 995ArgumentOutOfRangeException.ThrowIfNegativeOrZero(culture);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
844catch (ArgumentOutOfRangeException) 1507catch (ArgumentOutOfRangeException) 4644catch (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)
485ArgumentOutOfRangeException.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\Guid.cs (2)
300/// <exception cref="ArgumentOutOfRangeException"><paramref name="timestamp" /> represents an offset prior to <see cref="DateTimeOffset.UnixEpoch" />.</exception> 320ArgumentOutOfRangeException.ThrowIfNegative(unix_ts_ms, nameof(timestamp));
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); 498ArgumentOutOfRangeException.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)
90ArgumentOutOfRangeException.ThrowIfNegative(value);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (6)
200/// <exception cref="ArgumentOutOfRangeException"> 232/// <exception cref="ArgumentOutOfRangeException"> 313/// <exception cref="ArgumentOutOfRangeException"> 344/// <exception cref="ArgumentOutOfRangeException"> 425/// <exception cref="ArgumentOutOfRangeException"> 456/// <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"> 831/// <exception cref="ArgumentOutOfRangeException"> 868/// <exception cref="ArgumentOutOfRangeException"> 942/// <exception cref="ArgumentOutOfRangeException"> 983/// <exception cref="ArgumentOutOfRangeException"><paramref name="bufferSize"/> was not a positive value.</exception> 990ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (12)
155ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 230ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 350ArgumentOutOfRangeException.ThrowIfNegative(index); 351ArgumentOutOfRangeException.ThrowIfNegative(count); 429ArgumentOutOfRangeException.ThrowIfNegative(index); 430ArgumentOutOfRangeException.ThrowIfNegative(count); 863/// <exception cref="ArgumentOutOfRangeException">The number of characters in the next line is larger than <see cref="int.MaxValue"/>.</exception> 995/// <exception cref="ArgumentOutOfRangeException">The number of characters is larger than <see cref="int.MaxValue"/>.</exception> 1051ArgumentOutOfRangeException.ThrowIfNegative(index); 1052ArgumentOutOfRangeException.ThrowIfNegative(count); 1262ArgumentOutOfRangeException.ThrowIfNegative(index); 1263ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (8)
111ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 187ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bufferSize); 373ArgumentOutOfRangeException.ThrowIfNegative(index); 374ArgumentOutOfRangeException.ThrowIfNegative(count); 733ArgumentOutOfRangeException.ThrowIfNegative(index); 734ArgumentOutOfRangeException.ThrowIfNegative(count); 885ArgumentOutOfRangeException.ThrowIfNegative(index); 886ArgumentOutOfRangeException.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)
81/// <exception cref="ArgumentOutOfRangeException"> 116/// <exception cref="ArgumentOutOfRangeException"> 140/// <exception cref="ArgumentOutOfRangeException"> 221/// <exception cref="ArgumentOutOfRangeException"> 241/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (14)
109/// <exception cref="ArgumentOutOfRangeException"> 131/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex"/> is less than 0 or greater than <paramref name="text"/>.Length.</exception> 158/// <exception cref="ArgumentOutOfRangeException"><paramref name="range"/>'s start or end index is not within the bounds of the string.</exception> 159/// <exception cref="ArgumentOutOfRangeException"><paramref name="range"/>'s start index is greater than its end index.</exception> 187/// <exception cref="ArgumentOutOfRangeException"> 227/// <exception cref="ArgumentOutOfRangeException"> 270/// <exception cref="ArgumentOutOfRangeException"> 3708/// <exception cref="ArgumentOutOfRangeException"> 3734/// <exception cref="ArgumentOutOfRangeException"> 3768/// <exception cref="ArgumentOutOfRangeException"> 3807/// <exception cref="ArgumentOutOfRangeException"> 3839/// <exception cref="ArgumentOutOfRangeException"> 3877/// <exception cref="ArgumentOutOfRangeException"> 3897/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (4)
593ArgumentOutOfRangeException.ThrowIfNegative(offset); 594ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, bytes.Length); 596ArgumentOutOfRangeException.ThrowIfNegative(count); 597ArgumentOutOfRangeException.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"> 372/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero. 386/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero. 400/// <exception cref="ArgumentOutOfRangeException"><paramref name="fieldOfView" /> is less than or equal to zero. 417/// <exception cref="ArgumentOutOfRangeException"><paramref name="fieldOfView" /> is less than or equal to zero. 436/// <exception cref="ArgumentOutOfRangeException"><paramref name="nearPlaneDistance" /> is less than or equal to zero. 452/// <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)
572ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 573ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 574ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 595ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 596ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 597ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 618ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(fieldOfView, 0.0f); 619ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(fieldOfView, float.Pi); 621ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 622ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 623ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 645ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(fieldOfView, 0.0f); 646ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(fieldOfView, float.Pi); 648ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 649ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 650ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 672ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 673ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 674ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance); 702ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(nearPlaneDistance, 0.0f); 703ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(farPlaneDistance, 0.0f); 704ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(nearPlaneDistance, farPlaneDistance);
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
69/// <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 (3)
736/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector128{T}.Count" />.</exception> 1100/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3466/// <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)
50/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector{T}.Count" />.</exception> 69/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector{T}.Count" />.</exception> 86/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector{T}.Count" />.</exception> 103/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <c>sizeof(<see cref="Vector{T}" />)</c>.</exception> 121/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector{T}.Count" />.</exception> 213/// <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)
167/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 989/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is less than zero.
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (2)
188/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 999/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is less than zero.
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (2)
220/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 1070/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> is less than zero.
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> 300/// <exception cref="ArgumentOutOfRangeException"> 321/// <exception cref="ArgumentOutOfRangeException"> 330ArgumentOutOfRangeException.ThrowIfNegative(length); 447ArgumentOutOfRangeException.ThrowIfNegative(maxValue); 475ArgumentOutOfRangeException.ThrowIfNegative(maxValue);
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
61/// <exception cref="ArgumentOutOfRangeException"> 150/// <exception cref="ArgumentOutOfRangeException"> 170/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (4)
59/// <exception cref="ArgumentOutOfRangeException"> 96/// <exception cref="ArgumentOutOfRangeException"> 353/// <exception cref="ArgumentOutOfRangeException"> 370/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
200/// <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)
554catch (ArgumentOutOfRangeException e) 636catch (ArgumentOutOfRangeException e)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
111/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (5)
46ArgumentOutOfRangeException.ThrowIfNegative(len); 64ArgumentOutOfRangeException.ThrowIfNegative(len); 83ArgumentOutOfRangeException.ThrowIfNegative(byteLen); 279ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 280ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (2)
384ArgumentOutOfRangeException.ThrowIfGreaterThan(sizeof(T), sizeof(UnionTypes), nameof(T)); 576ArgumentOutOfRangeException.ThrowIfGreaterThan(sizeof(T), sizeof(UnionTypes), nameof(T));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (1)
597/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (4)
217ArgumentOutOfRangeException.ThrowIfNegative(index); 218ArgumentOutOfRangeException.ThrowIfNegative(count); 305ArgumentOutOfRangeException.ThrowIfNegative(index); 306ArgumentOutOfRangeException.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> 191/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 232/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Count" />.</exception> 241/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Count" />.</exception> 249/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Count" />.</exception> 329/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 801/// <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> 161/// <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)
665/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 871/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector128{T}.Count" />.</exception> 892/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector128{T}.Count" />.</exception> 912/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector128{T}.Count" />.</exception> 1655/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3900/// <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)
125/// <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)
677/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 883/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector256{T}.Count" />.</exception> 904/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector256{T}.Count" />.</exception> 924/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector256{T}.Count" />.</exception> 1746/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3937/// <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)
124/// <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)
605/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 802/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector512{T}.Count" />.</exception> 822/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector512{T}.Count" />.</exception> 841/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector512{T}.Count" />.</exception> 1795/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 3930/// <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)
124/// <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)
639/// <exception cref="ArgumentOutOfRangeException"><paramref name="startIndex" /> is negative or greater than the length of <paramref name="destination" />.</exception> 868/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector64{T}.Count" />.</exception> 889/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" />, starting from <paramref name="index" />, is less than <see cref="Vector64{T}.Count" />.</exception> 909/// <exception cref="ArgumentOutOfRangeException">The length of <paramref name="values" /> is less than <see cref="Vector64{T}.Count" />.</exception> 1557/// <exception cref="ArgumentOutOfRangeException"><paramref name="index" /> was less than zero or greater than the number of elements.</exception> 4064/// <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)
124/// <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)
62/// <exception cref="ArgumentOutOfRangeException"> 101/// <exception cref="ArgumentOutOfRangeException"> 377/// <exception cref="ArgumentOutOfRangeException"> 394/// <exception cref="ArgumentOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
384ArgumentOutOfRangeException.ThrowIfNegative(length); 476ArgumentOutOfRangeException.ThrowIfNegative(length);
src\libraries\System.Private.CoreLib\src\System\String.cs (10)
100ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 101ArgumentOutOfRangeException.ThrowIfNegative(length); 102ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, value.Length - length); 152ArgumentOutOfRangeException.ThrowIfNegative(length); 153ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 204ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 205ArgumentOutOfRangeException.ThrowIfNegative(length); 263ArgumentOutOfRangeException.ThrowIfNegative(length); 264ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 293ArgumentOutOfRangeException.ThrowIfNegative(count);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (13)
698ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)startIndex, (uint)Length, nameof(startIndex)); 778ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 779ArgumentOutOfRangeException.ThrowIfNegative(count); 780ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex, value.Length - count); 1129ArgumentOutOfRangeException.ThrowIfNegative(totalWidth); 1147ArgumentOutOfRangeException.ThrowIfNegative(totalWidth); 1163ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 1164ArgumentOutOfRangeException.ThrowIfNegative(count); 1166ArgumentOutOfRangeException.ThrowIfGreaterThan(count, oldLength - startIndex); 1698ArgumentOutOfRangeException.ThrowIfNegative(count); 1760ArgumentOutOfRangeException.ThrowIfNegative(count); 2267ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 2274ArgumentOutOfRangeException.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); 121ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 122ArgumentOutOfRangeException.ThrowIfNegative(charCount); 142ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 143ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 145ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 146ArgumentOutOfRangeException.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); 110ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 111ArgumentOutOfRangeException.ThrowIfNegative(charCount); 128ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 129ArgumentOutOfRangeException.ThrowIfNegative(charCount); 131ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 132ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 160ArgumentOutOfRangeException.ThrowIfNegative(charCount); 161ArgumentOutOfRangeException.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)
71/// <exception cref="ArgumentOutOfRangeException"> 88/// <exception cref="ArgumentOutOfRangeException"> 100/// <exception cref="ArgumentOutOfRangeException"> 111/// <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); 874ArgumentOutOfRangeException.ThrowIfNegative(destinationIndex); 886ArgumentOutOfRangeException.ThrowIfNegative(count); 937ArgumentOutOfRangeException.ThrowIfNegative(count); 978ArgumentOutOfRangeException.ThrowIfNegative(length); 979ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 1361ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 1362ArgumentOutOfRangeException.ThrowIfNegative(charCount); 1464/// <exception cref="ArgumentOutOfRangeException">The length of the expanded string would exceed <see cref="StringBuilder.MaxCapacity"/>.</exception> 1513/// <exception cref="ArgumentOutOfRangeException">The length of the expanded string would exceed <see cref="StringBuilder.MaxCapacity"/>.</exception> 2260ArgumentOutOfRangeException.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); 184ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 185ArgumentOutOfRangeException.ThrowIfNegative(charCount); 218ArgumentOutOfRangeException.ThrowIfNegative(charCount); 219ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 236ArgumentOutOfRangeException.ThrowIfNegative(index); 237ArgumentOutOfRangeException.ThrowIfNegative(count); 260ArgumentOutOfRangeException.ThrowIfNegative(count); 276ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 277ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 310ArgumentOutOfRangeException.ThrowIfNegative(charCount); 311ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 328ArgumentOutOfRangeException.ThrowIfNegative(index); 329ArgumentOutOfRangeException.ThrowIfNegative(count); 1747ArgumentOutOfRangeException.ThrowIfNegative(charCount); 1766ArgumentOutOfRangeException.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); 192ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 193ArgumentOutOfRangeException.ThrowIfNegative(charCount); 226ArgumentOutOfRangeException.ThrowIfNegative(charCount); 227ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 244ArgumentOutOfRangeException.ThrowIfNegative(index); 245ArgumentOutOfRangeException.ThrowIfNegative(count); 268ArgumentOutOfRangeException.ThrowIfNegative(count); 284ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 285ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 318ArgumentOutOfRangeException.ThrowIfNegative(charCount); 319ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 336ArgumentOutOfRangeException.ThrowIfNegative(index); 337ArgumentOutOfRangeException.ThrowIfNegative(count); 1070ArgumentOutOfRangeException.ThrowIfNegative(charCount); 1089ArgumentOutOfRangeException.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); 228ArgumentOutOfRangeException.ThrowIfNegative(charIndex); 229ArgumentOutOfRangeException.ThrowIfNegative(charCount); 262ArgumentOutOfRangeException.ThrowIfNegative(charCount); 263ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 280ArgumentOutOfRangeException.ThrowIfNegative(index); 281ArgumentOutOfRangeException.ThrowIfNegative(count); 304ArgumentOutOfRangeException.ThrowIfNegative(count); 320ArgumentOutOfRangeException.ThrowIfNegative(byteIndex); 321ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 354ArgumentOutOfRangeException.ThrowIfNegative(charCount); 355ArgumentOutOfRangeException.ThrowIfNegative(byteCount); 372ArgumentOutOfRangeException.ThrowIfNegative(index); 373ArgumentOutOfRangeException.ThrowIfNegative(count); 726ArgumentOutOfRangeException.ThrowIfNegative(charCount); 755ArgumentOutOfRangeException.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)
129/// <exception cref="ArgumentOutOfRangeException"> 151/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> is less than -1 or greater than <see cref="uint.MaxValue"/> - 1.</exception> 175/// <exception cref="ArgumentOutOfRangeException"> 363/// <exception cref="ArgumentOutOfRangeException"> 397/// <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); 391/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 404ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 405ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 422/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 437ArgumentOutOfRangeException.ThrowIfLessThan(totalMilliseconds, -1, nameof(timeout)); 438ArgumentOutOfRangeException.ThrowIfGreaterThan(totalMilliseconds, int.MaxValue, nameof(timeout)); 451/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 475/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 490ArgumentOutOfRangeException.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"/> 213/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 246/// <exception cref="ArgumentOutOfRangeException"><paramref name="timeout"/> is a negative 276/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a 296/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a negative number other than -1, 535/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a negative number other than -1, 559/// <exception cref="ArgumentOutOfRangeException"> 583/// <exception cref="ArgumentOutOfRangeException"> 616/// <exception cref="ArgumentOutOfRangeException"><paramref name="millisecondsTimeout"/> is a negative number other than -1, 776/// <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"> 2459/// <exception cref="ArgumentOutOfRangeException">The <paramref name="options"/> argument specifies an invalid value.</exception> 2648/// <exception cref="ArgumentOutOfRangeException"> 2669/// <exception cref="ArgumentOutOfRangeException"> 2716/// <exception cref="ArgumentOutOfRangeException"> 2746/// <exception cref="ArgumentOutOfRangeException"> 3723/// <exception cref="ArgumentOutOfRangeException"> 3760/// <exception cref="ArgumentOutOfRangeException"> 3904/// <exception cref="ArgumentOutOfRangeException"> 3942/// <exception cref="ArgumentOutOfRangeException"> 4099/// <exception cref="ArgumentOutOfRangeException"> 4139/// <exception cref="ArgumentOutOfRangeException"> 4302/// <exception cref="ArgumentOutOfRangeException"> 4343/// <exception cref="ArgumentOutOfRangeException"> 4768/// <exception cref="ArgumentOutOfRangeException"> 4816/// <exception cref="ArgumentOutOfRangeException"> 4899/// <exception cref="ArgumentOutOfRangeException"> 5213/// <exception cref="ArgumentOutOfRangeException"> 5277/// <exception cref="ArgumentOutOfRangeException"> 5310/// <exception cref="ArgumentOutOfRangeException"> 5683/// <exception cref="ArgumentOutOfRangeException"> 5695/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 5696/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> property is greater than 4294967294.</exception> 5706/// <exception cref="ArgumentOutOfRangeException"> 5726/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/> represents a negative time interval other than <see cref="Timeout.InfiniteTimeSpan"/>.</exception> 5727/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> property is greater than 4294967294.</exception> 5740/// <exception cref="ArgumentOutOfRangeException"> 5754/// <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 2468/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2509/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2611/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2656/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2761/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2808/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2902/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the 2945/// <exception cref="ArgumentOutOfRangeException">The exception that is thrown when the
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (3)
132ArgumentOutOfRangeException.ThrowIfNegative(maxStackSize); 152ArgumentOutOfRangeException.ThrowIfNegative(maxStackSize); 368ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, Timeout.Infinite);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (10)
1698ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1716ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1734ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1735ArgumentOutOfRangeException.ThrowIfGreaterThan(millisecondsTimeOutInterval, int.MaxValue); 1753ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeOutInterval, -1); 1754ArgumentOutOfRangeException.ThrowIfGreaterThan(millisecondsTimeOutInterval, int.MaxValue); 1774ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, nameof(timeout)); 1775ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, int.MaxValue, nameof(timeout)); 1796ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, nameof(timeout)); 1797ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, int.MaxValue, nameof(timeout));
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (18)
499ArgumentOutOfRangeException.ThrowIfLessThan(tm, -1, parameter); 500ArgumentOutOfRangeException.ThrowIfGreaterThan(tm, Timer.MaxSupportedTimeout, parameter); 845ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 846ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 857ArgumentOutOfRangeException.ThrowIfLessThan(dueTm, -1, nameof(dueTime)); 858ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTm, MaxSupportedTimeout, nameof(dueTime)); 861ArgumentOutOfRangeException.ThrowIfLessThan(periodTm, -1, nameof(period)); 862ArgumentOutOfRangeException.ThrowIfGreaterThan(periodTm, MaxSupportedTimeout, nameof(period)); 881ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 882ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 883ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTime, MaxSupportedTimeout); 884ArgumentOutOfRangeException.ThrowIfGreaterThan(period, MaxSupportedTimeout); 913ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 914ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 930ArgumentOutOfRangeException.ThrowIfLessThan(dueTime, -1); 931ArgumentOutOfRangeException.ThrowIfLessThan(period, -1); 932ArgumentOutOfRangeException.ThrowIfGreaterThan(dueTime, MaxSupportedTimeout); 933ArgumentOutOfRangeException.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); 307ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 455ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
743private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) 753private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, int paramNumber, ExceptionResource resource)
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (13)
273/// <exception cref="ArgumentOutOfRangeException"> 295/// <exception cref="ArgumentOutOfRangeException"> 458/// <exception cref="ArgumentOutOfRangeException"> 474/// <exception cref="ArgumentOutOfRangeException"> 495/// <exception cref="ArgumentOutOfRangeException"> 510/// <exception cref="ArgumentOutOfRangeException"> 530/// <exception cref="ArgumentOutOfRangeException"> 544/// <exception cref="ArgumentOutOfRangeException"> 563/// <exception cref="ArgumentOutOfRangeException"> 576/// <exception cref="ArgumentOutOfRangeException"> 594/// <exception cref="ArgumentOutOfRangeException"> 607/// <exception cref="ArgumentOutOfRangeException"> 635/// <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)
380ArgumentOutOfRangeException.ThrowIfNegative(genericParameterCount); 658ArgumentOutOfRangeException.ThrowIfNegative(position);
src\libraries\System.Private.CoreLib\src\System\Version.cs (11)
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); 311/// <exception cref="ArgumentOutOfRangeException">At least one component in <paramref name="utf8Text" /> is less than zero.</exception> 435ArgumentOutOfRangeException.ThrowIfNegative(parsedComponent, componentName);
src\System\Array.CoreCLR.cs (5)
62ArgumentOutOfRangeException.ThrowIfNegative(length); 65ArgumentOutOfRangeException.ThrowIfLessThan(sourceIndex, srcLB); 66ArgumentOutOfRangeException.ThrowIfNegative(sourceIndex - srcLB, nameof(sourceIndex)); 70ArgumentOutOfRangeException.ThrowIfLessThan(destinationIndex, dstLB); 71ArgumentOutOfRangeException.ThrowIfNegative(destinationIndex - dstLB, nameof(destinationIndex));
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
43ArgumentOutOfRangeException.ThrowIfNegative(index);
src\System\GC.CoreCLR.cs (17)
139ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bytesAllocated); 142ArgumentOutOfRangeException.ThrowIfGreaterThan(bytesAllocated, int.MaxValue); 150ArgumentOutOfRangeException.ThrowIfNegativeOrZero(bytesAllocated); 153ArgumentOutOfRangeException.ThrowIfGreaterThan(bytesAllocated, int.MaxValue); 198ArgumentOutOfRangeException.ThrowIfNegative(generation); 246ArgumentOutOfRangeException.ThrowIfNegative(generation); 482ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 494ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1); 516ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize); 520ArgumentOutOfRangeException.ThrowIfNegativeOrZero(lohSize); 522ArgumentOutOfRangeException.ThrowIfGreaterThan(lohSize, totalSize); 650ArgumentOutOfRangeException.ThrowIfLessThan(highMemoryPercent, 0); 651ArgumentOutOfRangeException.ThrowIfGreaterThan(highMemoryPercent, 1.0); 652ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(highMemoryPercent, lowMemoryPercent); 653ArgumentOutOfRangeException.ThrowIfLessThan(lowMemoryPercent, 0); 692/// <exception cref="ArgumentOutOfRangeException"> 705ArgumentOutOfRangeException.ThrowIfNegativeOrZero(totalSize);
src\System\Reflection\Emit\DynamicILGenerator.cs (3)
887ArgumentOutOfRangeException.ThrowIfNegative(codeSize); 903ArgumentOutOfRangeException.ThrowIfNegative(exceptionsSize); 919ArgumentOutOfRangeException.ThrowIfNegative(signatureSize);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
481ArgumentOutOfRangeException.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);
src\System\Threading\Thread.CoreCLR.cs (1)
408/// <exception cref="ArgumentOutOfRangeException">if timeout &lt; -1 (Timeout.Infinite)</exception>
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)
1380ArgumentOutOfRangeException.ThrowIfGreaterThan(character, '\xff'); 1419ArgumentOutOfRangeException.ThrowIfNegative(index); 1420ArgumentOutOfRangeException.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.Windows.Core (5)
System\Collections\Generic\CollectionExtensions.cs (1)
18ArgumentOutOfRangeException.ThrowIfLessThan(readOnlyList.Count, count, nameof(count));
System\IO\BinaryReaderExtensions.cs (1)
64ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Private\Windows\Count.cs (1)
19ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Private\Windows\Ole\ClipboardCore.cs (2)
64ArgumentOutOfRangeException.ThrowIfNegative(retryTimes); 65ArgumentOutOfRangeException.ThrowIfNegative(retryDelay);
System.Private.Windows.Core.TestUtilities (2)
ComparisonHelpers.cs (2)
13ArgumentOutOfRangeException.ThrowIfLessThan(variance, T.Zero); 21ArgumentOutOfRangeException.ThrowIfLessThan(variance, T.Zero);
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)
82ArgumentOutOfRangeException.ThrowIfNegative(iOffset);
System.Reflection.Metadata (89)
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
77/// <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\TypeName.cs (1)
490/// <exception cref="ArgumentOutOfRangeException">rank is invalid. For example, 0 or negative.</exception>
System\Reflection\Metadata\TypeNameParserOptions.cs (1)
26ArgumentOutOfRangeException.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)
57/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception> 73/// <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)
51/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is negative.</exception> 69/// <exception cref="ArgumentOutOfRangeException"><paramref name="size"/> is negative.</exception> 125/// <exception cref="ArgumentOutOfRangeException"><paramref name="options"/> has an invalid value.</exception> 153/// <exception cref="ArgumentOutOfRangeException">Size is negative or extends past the end of the stream.</exception> 479/// <exception cref="ArgumentOutOfRangeException"><paramref name="relativeVirtualAddress"/> is negative.</exception>
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
554catch (ArgumentOutOfRangeException e) 636catch (ArgumentOutOfRangeException e)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.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)
973ArgumentOutOfRangeException.ThrowIfNegative(exponent.Sign, nameof(exponent)); 1033ArgumentOutOfRangeException.ThrowIfNegative(exponent);
System.Security.Cryptography (268)
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">
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\Pkcs12LoaderLimits.cs (1)
403ArgumentOutOfRangeException.ThrowIfNegative(value, paramName);
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)
82/// <exception cref="ArgumentOutOfRangeException"><paramref name="outputLength"/> is less than 1.</exception> 86ArgumentOutOfRangeException.ThrowIfNegativeOrZero(outputLength); 146/// <exception cref="ArgumentOutOfRangeException"><paramref name="outputLength"/> is less than 1.</exception> 151ArgumentOutOfRangeException.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)
99/// <exception cref="ArgumentOutOfRangeException"> 107ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 140/// <exception cref="ArgumentOutOfRangeException"> 148ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 207/// <exception cref="ArgumentOutOfRangeException"> 238/// <exception cref="ArgumentOutOfRangeException"> 252ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 293/// <exception cref="ArgumentOutOfRangeException"> 312ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 330/// <exception cref="ArgumentOutOfRangeException"> 348ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 406/// <exception cref="ArgumentOutOfRangeException"> 426ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 453/// <exception cref="ArgumentOutOfRangeException"> 472ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\Kmac256.cs (15)
99/// <exception cref="ArgumentOutOfRangeException"> 107ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 140/// <exception cref="ArgumentOutOfRangeException"> 148ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 207/// <exception cref="ArgumentOutOfRangeException"> 238/// <exception cref="ArgumentOutOfRangeException"> 252ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 293/// <exception cref="ArgumentOutOfRangeException"> 312ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 330/// <exception cref="ArgumentOutOfRangeException"> 348ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 406/// <exception cref="ArgumentOutOfRangeException"> 426ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 453/// <exception cref="ArgumentOutOfRangeException"> 472ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\KmacXof128.cs (15)
99/// <exception cref="ArgumentOutOfRangeException"> 107ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 140/// <exception cref="ArgumentOutOfRangeException"> 148ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 207/// <exception cref="ArgumentOutOfRangeException"> 238/// <exception cref="ArgumentOutOfRangeException"> 252ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 293/// <exception cref="ArgumentOutOfRangeException"> 312ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 330/// <exception cref="ArgumentOutOfRangeException"> 348ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 406/// <exception cref="ArgumentOutOfRangeException"> 426ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 453/// <exception cref="ArgumentOutOfRangeException"> 472ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\KmacXof256.cs (15)
99/// <exception cref="ArgumentOutOfRangeException"> 107ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 140/// <exception cref="ArgumentOutOfRangeException"> 148ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 207/// <exception cref="ArgumentOutOfRangeException"> 238/// <exception cref="ArgumentOutOfRangeException"> 252ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 293/// <exception cref="ArgumentOutOfRangeException"> 312ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 330/// <exception cref="ArgumentOutOfRangeException"> 348ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 406/// <exception cref="ArgumentOutOfRangeException"> 426ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 453/// <exception cref="ArgumentOutOfRangeException"> 472ArgumentOutOfRangeException.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 (8)
346/// <exception cref="ArgumentOutOfRangeException"> 381ArgumentOutOfRangeException.ThrowIfNegative(labelLength); 382ArgumentOutOfRangeException.ThrowIfNegative(dataLength); 444/// <exception cref="ArgumentOutOfRangeException"> 501/// <exception cref="ArgumentOutOfRangeException"> 555/// <exception cref="ArgumentOutOfRangeException"> 645/// <exception cref="ArgumentOutOfRangeException"> 688/// <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); 442ArgumentOutOfRangeException.ThrowIfNegative(offset); 443ArgumentOutOfRangeException.ThrowIfNegative(count);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (5)
82ArgumentOutOfRangeException.ThrowIfNegative(saltSize); 83ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 113ArgumentOutOfRangeException.ThrowIfNegativeOrZero(iterations); 134ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 176ArgumentOutOfRangeException.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); 133/// <exception cref="ArgumentOutOfRangeException"> 140ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 176/// <exception cref="ArgumentOutOfRangeException"> 187ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 276/// <exception cref="ArgumentOutOfRangeException"> 299/// <exception cref="ArgumentOutOfRangeException"> 308ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 340/// <exception cref="ArgumentOutOfRangeException"> 353ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 443/// <exception cref="ArgumentOutOfRangeException"> 459ArgumentOutOfRangeException.ThrowIfNegative(outputLength);
System\Security\Cryptography\Shake256.cs (13)
90/// <exception cref="ArgumentOutOfRangeException"> 97ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 133/// <exception cref="ArgumentOutOfRangeException"> 140ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 176/// <exception cref="ArgumentOutOfRangeException"> 187ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 276/// <exception cref="ArgumentOutOfRangeException"> 299/// <exception cref="ArgumentOutOfRangeException"> 308ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 340/// <exception cref="ArgumentOutOfRangeException"> 353ArgumentOutOfRangeException.ThrowIfNegative(outputLength); 443/// <exception cref="ArgumentOutOfRangeException"> 459ArgumentOutOfRangeException.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)
82/// <exception cref="ArgumentOutOfRangeException"> 114ArgumentOutOfRangeException.ThrowIfNegative(pathLengthConstraint);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (1)
906/// <exception cref="ArgumentOutOfRangeException">
System.ServiceModel.Http.Tests (14)
ServiceModel\BasicHttpBindingTest.cs (7)
119Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxBufferPoolSize = value); 139Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxBufferSize = value); 159Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxReceivedMessageSize = value); 234Assert.Throws<ArgumentOutOfRangeException>(() => binding.CloseTimeout = timeSpan); 251Assert.Throws<ArgumentOutOfRangeException>(() => binding.OpenTimeout = timeSpan); 268Assert.Throws<ArgumentOutOfRangeException>(() => binding.SendTimeout = timeSpan); 285Assert.Throws<ArgumentOutOfRangeException>(() => binding.SendTimeout = timeSpan);
ServiceModel\BasicHttpsBindingTest.cs (7)
109Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxBufferPoolSize = value); 129Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxBufferSize = value); 149Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxReceivedMessageSize = value); 224Assert.Throws<ArgumentOutOfRangeException>(() => binding.CloseTimeout = timeSpan); 241Assert.Throws<ArgumentOutOfRangeException>(() => binding.OpenTimeout = timeSpan); 258Assert.Throws<ArgumentOutOfRangeException>(() => binding.SendTimeout = timeSpan); 275Assert.Throws<ArgumentOutOfRangeException>(() => binding.SendTimeout = timeSpan);
System.ServiceModel.NetTcp.Tests (7)
Channels\TcpConnectionPoolSettingsTest.cs (3)
53Assert.Throws<ArgumentOutOfRangeException>(() => settings.IdleTimeout = timeSpan); 74Assert.Throws<ArgumentOutOfRangeException>(() => settings.LeaseTimeout = timeSpan); 96Assert.Throws<ArgumentOutOfRangeException>(() => settings.MaxOutboundConnectionsPerEndpoint = value);
ServiceModel\NetTcpBindingTest.cs (2)
68Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxBufferSize = value); 87Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxReceivedMessageSize = value);
ServiceModel\NetTcpSecurityTest.cs (1)
37Assert.Throws<ArgumentOutOfRangeException>(() => security.Mode = (SecurityMode)999);
ServiceModel\TcpTransportSecurityTest.cs (1)
38Assert.Throws<ArgumentOutOfRangeException>(() => transport.ClientCredentialType = (TcpClientCredentialType)999);
System.ServiceModel.Primitives.Tests (10)
Channels\BinaryMessageEncodingBindingElementTest.cs (3)
58Assert.Throws<ArgumentOutOfRangeException>(() => bindingElement.MaxSessionSize = value); 109Assert.Throws<ArgumentOutOfRangeException>(() => bindingElement.MaxReadPoolSize = value); 136Assert.Throws<ArgumentOutOfRangeException>(() => bindingElement.MaxWritePoolSize = value);
ServiceModel\MessageContractTest.cs (1)
52Assert.Throws<ArgumentOutOfRangeException>(() => messageCA.WrapperName = wrapperName);
ServiceModel\SynchronizedCollection.cs (6)
96Assert.Throws<ArgumentOutOfRangeException>(() => 101Assert.Throws<ArgumentOutOfRangeException>(() => 106Assert.Throws<ArgumentOutOfRangeException>(() => 111Assert.Throws<ArgumentOutOfRangeException>(() => 118Assert.Throws<ArgumentOutOfRangeException>(() => 123Assert.Throws<ArgumentOutOfRangeException>(() =>
System.ServiceModel.UnixDomainSocket.Tests (4)
ServiceModel\UnixDomainSocketBindingTest.cs (2)
69Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxBufferSize = value); 88Assert.Throws<ArgumentOutOfRangeException>(() => binding.MaxReceivedMessageSize = value);
ServiceModel\UnixDomainSocketSecurityTest.cs (1)
37Assert.Throws<ArgumentOutOfRangeException>(() => security.Mode = (UnixDomainSocketSecurityMode)999);
ServiceModel\UnixDomainSocketTransportSecurityTest.cs (1)
40Assert.Throws<ArgumentOutOfRangeException>(() => transport.ClientCredentialType = (UnixDomainSocketClientCredentialType)999);
System.Text.Encodings.Web (1)
System\ThrowHelper.cs (1)
49private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
System.Text.Json (32)
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 (4)
74/// <exception cref="ArgumentOutOfRangeException"> 107/// <exception cref="ArgumentOutOfRangeException"> 151/// <exception cref="ArgumentOutOfRangeException"> 204/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Nodes\JsonNode.cs (1)
204/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
143/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Nodes\JsonObject.IList.cs (5)
14/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 21/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 41/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 72/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than <see cref="Count"/>.</exception> 86/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception>
System\Text\Json\Reader\JsonReaderOptions.cs (2)
21/// <exception cref="ArgumentOutOfRangeException"> 45/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Serialization\JsonSerializerOptions.cs (5)
559/// <exception cref="ArgumentOutOfRangeException"> 630/// <exception cref="ArgumentOutOfRangeException"> 706/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> contains an invalid character.</exception> 728/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is out of the allowed range.</exception> 767/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
491/// <exception cref="ArgumentOutOfRangeException"> 527/// <exception cref="ArgumentOutOfRangeException"> 571/// <exception cref="ArgumentOutOfRangeException">
System\Text\Json\ThrowHelper.cs (1)
46private 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\ThrowHelper.cs (1)
49private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
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 (14)
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.EnumerateSplits.cs (2)
58/// <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>
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)
605ArgumentOutOfRangeException.ThrowIfNegative(offset); 606ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, bytes.Length); 608ArgumentOutOfRangeException.ThrowIfNegative(count); 609ArgumentOutOfRangeException.ThrowIfGreaterThan(count, bytes.Length - offset);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
129ArgumentOutOfRangeException.ThrowIfNegative(index); 130ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count);
System.Windows.Forms (471)
misc\CollectionHelper.cs (2)
20ArgumentOutOfRangeException.ThrowIfNegative(index); 21ArgumentOutOfRangeException.ThrowIfGreaterThan((uint)index, (uint)target.Length, nameof(index));
System\Windows\Forms\AutoCompleteStringCollection.cs (2)
136ArgumentOutOfRangeException.ThrowIfNegative(index); 137ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _data.Count);
System\Windows\Forms\Control.ControlCollection.cs (2)
345ArgumentOutOfRangeException.ThrowIfNegative(index); 346ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Control.cs (1)
3035ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
462ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex);
System\Windows\Forms\Controls\Buttons\FlatButtonAppearance.cs (1)
37ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (12)
434ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 460ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 595ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 653ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 654ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 100); 875ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 876ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, _itemsCollection?.Count ?? 0); 1000ArgumentOutOfRangeException.ThrowIfNegative(value); 1962ArgumentOutOfRangeException.ThrowIfNegative(index); 1963ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _itemsCollection?.Count ?? 0); 3240ArgumentOutOfRangeException.ThrowIfNegative(start); 3244ArgumentOutOfRangeException.ThrowIfLessThan(length, -start);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (12)
218ArgumentOutOfRangeException.ThrowIfNegative(index); 219ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 270ArgumentOutOfRangeException.ThrowIfNegative(arrayIndex); 271ArgumentOutOfRangeException.ThrowIfGreaterThan(arrayIndex, destination.Length - count); 285ArgumentOutOfRangeException.ThrowIfNegative(index); 286ArgumentOutOfRangeException.ThrowIfGreaterThan(index, destination.Length - count); 313ArgumentOutOfRangeException.ThrowIfNegative(index); 314ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 361ArgumentOutOfRangeException.ThrowIfNegative(index); 362ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 407ArgumentOutOfRangeException.ThrowIfNegative(index); 408ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (11)
1392ArgumentOutOfRangeException.ThrowIfNegative(value); 1573ArgumentOutOfRangeException.ThrowIfLessThan(value, MinimumColumnHeadersHeight); 1574ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxHeadersThickness); 2444ArgumentOutOfRangeException.ThrowIfNegative(value); 2445ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Columns.Count); 2524ArgumentOutOfRangeException.ThrowIfNegative(value); 2525ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Rows.Count); 2790ArgumentOutOfRangeException.ThrowIfNegative(value); 3173ArgumentOutOfRangeException.ThrowIfLessThan(value, AllowUserToAddRowsInternal ? 1 : 0); 3378ArgumentOutOfRangeException.ThrowIfLessThan(value, MinimumRowHeadersWidth); 3379ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxHeadersThickness);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (69)
1713ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 1714ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 1799ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 1800ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 1952ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1953ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 2127ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1); 2128ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 2389ArgumentOutOfRangeException.ThrowIfNegative(rowsCount); 2391ArgumentOutOfRangeException.ThrowIfNegative(rowIndexStart); 3464ArgumentOutOfRangeException.ThrowIfNegative(columnIndexException); 3465ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndexException, Columns.Count); 3473ArgumentOutOfRangeException.ThrowIfLessThan(columnIndexException, -1); 3474ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndexException, Columns.Count); 3486ArgumentOutOfRangeException.ThrowIfNegative(rowIndexException); 3487ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.Count); 3495ArgumentOutOfRangeException.ThrowIfLessThan(rowIndexException, -1); 3496ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexException, Rows.Count); 7052ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 7057ArgumentOutOfRangeException.ThrowIfNotEqual(columnIndex, -1); 7063ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 7068ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 8197ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 8198ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 9027ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 9028ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 9783ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 9784ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 9786ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1); 9787ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 9809ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 9810ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 9853ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 9854ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 11513ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.ColumnIndex, Columns.Count, "e.ColumnIndex"); 11514ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(e.RowIndex, Rows.Count, "e.RowIndex"); 11519ArgumentOutOfRangeException.ThrowIfNegative(e.ColumnIndex, "e.ColumnIndex"); 11520ArgumentOutOfRangeException.ThrowIfNegative(e.RowIndex, "e.RowIndex"); 26755ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 26756ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 26760ArgumentOutOfRangeException.ThrowIfNotEqual(columnIndex, -1); 26764ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 26768ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 26769ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 27624ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 27625ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 27627ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 27628ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 27954ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 27955ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 28073ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 28074ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28867ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 28868ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1); 28869ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 28870ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28880ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 28881ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(columnIndex, Columns.Count); 28883ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 28884ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28938ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 28939ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count); 28949ArgumentOutOfRangeException.ThrowIfNegative(rowIndexStart); 28950ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexStart, Rows.Count); 28952ArgumentOutOfRangeException.ThrowIfNegative(rowIndexEnd); 28953ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndexEnd, Rows.Count); 28955ArgumentOutOfRangeException.ThrowIfLessThan(rowIndexEnd, rowIndexStart); 28982ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, updateToEnd ? 0 : -1); 28983ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, Rows.Count);
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
105ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (3)
176ArgumentOutOfRangeException.ThrowIfNegative(value); 177ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxBandThickness); 626ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxBandThickness);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (13)
1303ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1304ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1727ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1728ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1797ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1798ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1877ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1878ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 2415ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 2416ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, dataGridView.Rows.Count); 2543ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxWidth); 2567ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxRatio); 2631ArgumentOutOfRangeException.ThrowIfNegativeOrZero(maxHeight);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCancelEventArgs.cs (2)
17ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 18ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellEventArgs.cs (2)
15ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 16ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellFormattingEventArgs.cs (2)
16ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 17ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellLinkedList.cs (2)
29ArgumentOutOfRangeException.ThrowIfLessThan(index, 0); 30ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (2)
16ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1); 17ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellValueEventArgs.cs (2)
16ArgumentOutOfRangeException.ThrowIfNegative(columnIndex); 17ArgumentOutOfRangeException.ThrowIfNegative(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
338ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 339ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
1033ArgumentOutOfRangeException.ThrowIfNegative(index); 1034ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
11ArgumentOutOfRangeException.ThrowIfLessThan(columnIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (7)
125ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 215ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 268ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 282ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 482ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 707ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 1190ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (8)
154ArgumentOutOfRangeException.ThrowIfNegative(index); 155ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count); 163ArgumentOutOfRangeException.ThrowIfNegative(index); 164ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count); 221ArgumentOutOfRangeException.ThrowIfNegative(index); 222ArgumentOutOfRangeException.ThrowIfGreaterThan(index, InnerArray.Count); 258ArgumentOutOfRangeException.ThrowIfNegative(index); 259ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (8)
262ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 283ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 347ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 355ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 362ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 363ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 375ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 424ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewIntLinkedList.cs (4)
41ArgumentOutOfRangeException.ThrowIfLessThan(index, 0); 42ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 185ArgumentOutOfRangeException.ThrowIfLessThan(index, 0); 186ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (8)
1210ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1211ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1237ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1238ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1286ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1287ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 1367ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 1368ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
251ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (4)
1045ArgumentOutOfRangeException.ThrowIfLessThan(indexStart, -1); 1077ArgumentOutOfRangeException.ThrowIfLessThan(indexStart, -1); 1096ArgumentOutOfRangeException.ThrowIfGreaterThan(indexStart, _items.Count); 1128ArgumentOutOfRangeException.ThrowIfGreaterThan(indexStart, _items.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowContextMenuStripNeededEventArgs.cs (1)
10ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowDividerDoubleClickEventArgs.cs (1)
11ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (6)
99ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 100ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 296ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 297ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count); 566ArgumentOutOfRangeException.ThrowIfLessThan(rowIndex, -1); 567ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(rowIndex, DataGridView.Rows.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeightInfoNeededEventArgs.cs (1)
30ArgumentOutOfRangeException.ThrowIfGreaterThan(value, DataGridViewBand.MaxBandThickness);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowsRemovedEventArgs.cs (2)
10ArgumentOutOfRangeException.ThrowIfNegative(rowIndex); 11ArgumentOutOfRangeException.ThrowIfLessThan(rowCount, 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
70ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (3)
30ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 85ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1); 136ArgumentOutOfRangeException.ThrowIfNotEqual(rowIndex, -1);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
601ArgumentOutOfRangeException.ThrowIfLessThan(value, EffectiveMinDate(_minDateTime)); 657ArgumentOutOfRangeException.ThrowIfGreaterThan(value, EffectiveMaxDate(_maxDateTime));
System\Windows\Forms\Controls\ImageList\ImageList.cs (4)
525ArgumentOutOfRangeException.ThrowIfNegative(index); 526ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Images.Count); 602ArgumentOutOfRangeException.ThrowIfNegative(index); 603ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Images.Count);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (6)
129ArgumentOutOfRangeException.ThrowIfNegative(index); 130ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 136ArgumentOutOfRangeException.ThrowIfNegative(index); 137ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 544ArgumentOutOfRangeException.ThrowIfNegative(index); 545ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\Labels\Label.cs (1)
435ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex);
System\Windows\Forms\Controls\Labels\LinkClickedEventArgs.cs (3)
23/// <exception cref="ArgumentOutOfRangeException"> 30ArgumentOutOfRangeException.ThrowIfNegative(linkStart); 31ArgumentOutOfRangeException.ThrowIfNegative(linkLength);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
372ArgumentOutOfRangeException.ThrowIfNegative(index); 373ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count); 857ArgumentOutOfRangeException.ThrowIfNegative(index); 858ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (11)
248ArgumentOutOfRangeException.ThrowIfNegative(value); 589ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 590ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 255); 851ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 852ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, _itemsCollection?.Count ?? 0); 1271ArgumentOutOfRangeException.ThrowIfNegative(index); 1272ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count); 1413ArgumentOutOfRangeException.ThrowIfNegative(index); 1416ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Math.Max(1, itemCount)); 2146ArgumentOutOfRangeException.ThrowIfNegative(index); 2147ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, itemCount);
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (6)
265ArgumentOutOfRangeException.ThrowIfNegative(index); 266ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count); 282ArgumentOutOfRangeException.ThrowIfNegative(index); 283ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count); 290ArgumentOutOfRangeException.ThrowIfNegative(index); 291ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _count);
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (8)
210ArgumentOutOfRangeException.ThrowIfNegative(index); 211ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count); 327ArgumentOutOfRangeException.ThrowIfNegative(index); 328ArgumentOutOfRangeException.ThrowIfGreaterThan(index, InnerArray.Count); 389ArgumentOutOfRangeException.ThrowIfNegative(index); 390ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count); 413ArgumentOutOfRangeException.ThrowIfNegative(index); 414ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerArray.Count);
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
483ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, -1); 484ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startIndex, items.Count);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
206ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex);
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
74ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
402ArgumentOutOfRangeException.ThrowIfNegative(index); 403ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count);
System\Windows\Forms\Controls\ListView\ListView.cs (27)
3184ArgumentOutOfRangeException.ThrowIfNegative(index); 3185ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count); 3202ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 3203ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startIndex, Items.Count); 3557ArgumentOutOfRangeException.ThrowIfNegative(index); 3558ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 3574ArgumentOutOfRangeException.ThrowIfNegative(index); 3575ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count); 3639ArgumentOutOfRangeException.ThrowIfNegative(itemIndex); 3640ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, Items.Count); 3641ArgumentOutOfRangeException.ThrowIfNegative(subItemIndex); 3645ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(subItemIndex, Items[itemIndex].SubItems.Count); 3650ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(subItemIndex, Columns.Count); 4979ArgumentOutOfRangeException.ThrowIfNegative(startIndex); 4980ArgumentOutOfRangeException.ThrowIfNegative(endIndex); 4983ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startIndex, maxSize); 4984ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(endIndex, maxSize); 5245ArgumentOutOfRangeException.ThrowIfNegative(index); 5246ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _columnHeaders?.Length ?? 0); 5382ArgumentOutOfRangeException.ThrowIfNegative(itemIndex); 5383ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, VirtualMode ? VirtualListSize : _itemCount); 5402ArgumentOutOfRangeException.ThrowIfNegative(index); 5403ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount); 5427ArgumentOutOfRangeException.ThrowIfNegative(index); 5428ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _itemCount); 5438ArgumentOutOfRangeException.ThrowIfLessThan(index, -1); 5439ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, VirtualMode ? VirtualListSize : _itemCount);
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (10)
62ArgumentOutOfRangeException.ThrowIfNegative(index); 63ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerList.Count); 69ArgumentOutOfRangeException.ThrowIfNegative(index); 70ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerList.Count); 78ArgumentOutOfRangeException.ThrowIfNegative(index); 79ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, InnerList.Count); 377ArgumentOutOfRangeException.ThrowIfNegative(index); 378ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 438ArgumentOutOfRangeException.ThrowIfNegative(index); 439ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.IInnerList.cs (2)
31ArgumentOutOfRangeException.ThrowIfNegative(index); 32ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (8)
46ArgumentOutOfRangeException.ThrowIfNegative(displayIndex); 47ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(displayIndex, _owner._itemCount); 81ArgumentOutOfRangeException.ThrowIfNegative(index); 82ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._itemCount); 334ArgumentOutOfRangeException.ThrowIfNegative(index); 335ArgumentOutOfRangeException.ThrowIfGreaterThan(index, count); 402ArgumentOutOfRangeException.ThrowIfNegative(index); 403ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._itemCount);
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (8)
97ArgumentOutOfRangeException.ThrowIfNegative(index); 98ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 257ArgumentOutOfRangeException.ThrowIfNegative(itemIndex); 260ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, _owner.VirtualListSize); 274ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, _owner.Items.Count); 317ArgumentOutOfRangeException.ThrowIfNegative(itemIndex); 320ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, _owner.VirtualListSize); 329ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(itemIndex, _owner.Items.Count);
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
121ArgumentOutOfRangeException.ThrowIfNegative(index); 122ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (2)
252/// <exception cref="ArgumentOutOfRangeException"> 274ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
483ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 735ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 736ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 14);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (8)
47ArgumentOutOfRangeException.ThrowIfNegative(index); 48ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 54ArgumentOutOfRangeException.ThrowIfNegative(index); 55ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 303ArgumentOutOfRangeException.ThrowIfNegative(index); 304ArgumentOutOfRangeException.ThrowIfGreaterThan(index, Count); 346ArgumentOutOfRangeException.ThrowIfNegative(index); 347ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (18)
460ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimePicker.EffectiveMinDate(_minDate)); 480ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 516ArgumentOutOfRangeException.ThrowIfGreaterThan(value, DateTimePicker.EffectiveMaxDate(_maxDate)); 517ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimePicker.MinimumDateTime); 618ArgumentOutOfRangeException.ThrowIfNegative(value); 619ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxScrollChange); 647ArgumentOutOfRangeException.ThrowIfLessThan(value, MinDate); 648ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxDate); 684ArgumentOutOfRangeException.ThrowIfLessThan(value, _minDate); 685ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _maxDate); 879ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _maxDate); 882ArgumentOutOfRangeException.ThrowIfLessThan(value, _minDate); 1799ArgumentOutOfRangeException.ThrowIfLessThan(date, _minDate); 1800ArgumentOutOfRangeException.ThrowIfGreaterThan(date, _maxDate); 1838ArgumentOutOfRangeException.ThrowIfLessThan(date1, _minDate); 1839ArgumentOutOfRangeException.ThrowIfGreaterThan(date1, _maxDate); 1840ArgumentOutOfRangeException.ThrowIfLessThan(date2, _minDate); 1841ArgumentOutOfRangeException.ThrowIfGreaterThan(date2, _maxDate);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (3)
236ArgumentOutOfRangeException.ThrowIfNegative(value); 279ArgumentOutOfRangeException.ThrowIfNegative(value); 317ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
3570ArgumentOutOfRangeException.ThrowIfNegative(tabIndex); 3571ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(tabIndex, _tabs.Count);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (12)
224ArgumentOutOfRangeException.ThrowIfNegative(value); 565ArgumentOutOfRangeException.ThrowIfNegative(value); 813ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 2000); 814ArgumentOutOfRangeException.ThrowIfLessThan(value, -2000); 1148ArgumentOutOfRangeException.ThrowIfNegative(value); 1481ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, 0.015625f); 1482ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, 64.0f); 1847ArgumentOutOfRangeException.ThrowIfNegative(start); 1848ArgumentOutOfRangeException.ThrowIfGreaterThan(start, textLen); 1954ArgumentOutOfRangeException.ThrowIfNegative(start); 1955ArgumentOutOfRangeException.ThrowIfGreaterThan(start, textLength); 1959ArgumentOutOfRangeException.ThrowIfLessThan(end, start);
System\Windows\Forms\Controls\TabControl\TabControl.cs (11)
662ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 1058ArgumentOutOfRangeException.ThrowIfNegative(index); 1059ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1105ArgumentOutOfRangeException.ThrowIfNegative(index); 1109ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1163ArgumentOutOfRangeException.ThrowIfNegative(index); 1164ArgumentOutOfRangeException.ThrowIfGreaterThan(index, TabCount); 1585ArgumentOutOfRangeException.ThrowIfNegative(index); 1586ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount); 1638ArgumentOutOfRangeException.ThrowIfNegative(index); 1639ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, TabCount);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
231ArgumentOutOfRangeException.ThrowIfLessThan(value, -1);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (5)
642ArgumentOutOfRangeException.ThrowIfNegative(value); 1024ArgumentOutOfRangeException.ThrowIfNegative(value); 1051ArgumentOutOfRangeException.ThrowIfNegative(value); 1601ArgumentOutOfRangeException.ThrowIfNegative(lineNumber); 1693ArgumentOutOfRangeException.ThrowIfNegative(start);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1127ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
716ArgumentOutOfRangeException.ThrowIfNegative(row);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
286ArgumentOutOfRangeException.ThrowIfNegative(index);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
193ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (4)
522ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 905ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 1031ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 1032ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ALLOWEDIMAGES);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (4)
34ArgumentOutOfRangeException.ThrowIfNegative(index); 35ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._childCount); 41ArgumentOutOfRangeException.ThrowIfNegative(index); 42ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._childCount);
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
561ArgumentOutOfRangeException.ThrowIfNegative(value); 752ArgumentOutOfRangeException.ThrowIfNegative(value); 753ArgumentOutOfRangeException.ThrowIfGreaterThan(value, MaxIndent); 797ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 798ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, short.MaxValue); 1032ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (2)
100ArgumentOutOfRangeException.ThrowIfLessThan(value, -1); 101ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Items.Count);
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (3)
110ArgumentOutOfRangeException.ThrowIfNegative(value); 111ArgumentOutOfRangeException.ThrowIfGreaterThan(value, 99); 161ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Controls\UpDown\NumericUpDownAcceleration.cs (4)
18ArgumentOutOfRangeException.ThrowIfNegative(seconds); 19ArgumentOutOfRangeException.ThrowIfNegative(increment); 37ArgumentOutOfRangeException.ThrowIfNegative(value, nameof(_seconds)); 55ArgumentOutOfRangeException.ThrowIfNegative(value, nameof(_increment));
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (2)
51ArgumentOutOfRangeException.ThrowIfNegative(index); 52ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (2)
47ArgumentOutOfRangeException.ThrowIfNegative(numberBack); 59ArgumentOutOfRangeException.ThrowIfNegative(numberForward);
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (2)
35ArgumentOutOfRangeException.ThrowIfNegative(index); 36ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (7)
756ArgumentOutOfRangeException.ThrowIfNegative(animationSpeed); 774ArgumentOutOfRangeException.ThrowIfNegative(min); 775ArgumentOutOfRangeException.ThrowIfGreaterThan(min, ushort.MaxValue); 777ArgumentOutOfRangeException.ThrowIfNegative(max); 778ArgumentOutOfRangeException.ThrowIfGreaterThan(max, ushort.MaxValue); 792ArgumentOutOfRangeException.ThrowIfNegative(pos); 793ArgumentOutOfRangeException.ThrowIfGreaterThan(pos, ushort.MaxValue);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogProgressBar.cs (9)
118/// <exception cref="ArgumentOutOfRangeException"> 133ArgumentOutOfRangeException.ThrowIfNegative(value); 134ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue); 164/// <exception cref="ArgumentOutOfRangeException"> 179ArgumentOutOfRangeException.ThrowIfNegative(value); 180ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue); 210/// <exception cref="ArgumentOutOfRangeException"> 225ArgumentOutOfRangeException.ThrowIfNegative(value); 226ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (5)
644ArgumentOutOfRangeException.ThrowIfNegative(value, nameof(SplitterDistance)); 750ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 1255ArgumentOutOfRangeException.ThrowIfNegative(value); 1284ArgumentOutOfRangeException.ThrowIfNegative(value); 1313ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value);
System\Windows\Forms\Layout\TableLayout.cs (2)
1292ArgumentOutOfRangeException.ThrowIfNegative(row); 1293ArgumentOutOfRangeException.ThrowIfNegative(column);
System\Windows\Forms\NotifyIcon.cs (1)
547ArgumentOutOfRangeException.ThrowIfNegative(timeout);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPosition.cs (2)
13ArgumentOutOfRangeException.ThrowIfLessThan(row, -1); 14ArgumentOutOfRangeException.ThrowIfLessThan(column, -1);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (6)
102ArgumentOutOfRangeException.ThrowIfNegative(value); 128ArgumentOutOfRangeException.ThrowIfNegative(value); 252ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 290ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 340ArgumentOutOfRangeException.ThrowIfLessThan(row, -1); 401ArgumentOutOfRangeException.ThrowIfLessThan(column, -1);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyle.cs (1)
43ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
173ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 191ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); 220ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Rendering\ControlPaint.cs (6)
575ArgumentOutOfRangeException.ThrowIfNegative(leftWidth); 576ArgumentOutOfRangeException.ThrowIfNegative(topWidth); 577ArgumentOutOfRangeException.ThrowIfNegative(rightWidth); 578ArgumentOutOfRangeException.ThrowIfNegative(bottomWidth); 1437ArgumentOutOfRangeException.ThrowIfNegative(width); 1438ArgumentOutOfRangeException.ThrowIfNegative(height);
System\Windows\Forms\Rendering\TextRenderer.cs (6)
88/// <exception cref="ArgumentOutOfRangeException"> 129/// <exception cref="ArgumentOutOfRangeException"> 218/// <exception cref="ArgumentOutOfRangeException"> 259/// <exception cref="ArgumentOutOfRangeException"> 436/// <exception cref="ArgumentOutOfRangeException"> 500/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
222ArgumentOutOfRangeException.ThrowIfNegative(value); 310ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\Scrolling\ScrollProperties.cs (3)
87ArgumentOutOfRangeException.ThrowIfNegative(value); 151ArgumentOutOfRangeException.ThrowIfNegative(value); 197ArgumentOutOfRangeException.ThrowIfNegative(value);
System\Windows\Forms\ToolTip\ToolTip.cs (8)
143ArgumentOutOfRangeException.ThrowIfNegative(value); 164ArgumentOutOfRangeException.ThrowIfNegative(value); 335ArgumentOutOfRangeException.ThrowIfNegative(value); 360ArgumentOutOfRangeException.ThrowIfNegative(value); 1391ArgumentOutOfRangeException.ThrowIfNegative(duration); 1424ArgumentOutOfRangeException.ThrowIfNegative(duration); 1461ArgumentOutOfRangeException.ThrowIfNegative(duration); 1477ArgumentOutOfRangeException.ThrowIfNegative(duration);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
319ArgumentOutOfRangeException.ThrowIfNegative(imageIndex); 320ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(imageIndex, imageList.Images.Count);
System.Windows.Forms.Design (11)
System\Windows\Forms\Design\Behavior\AdornerCollection.cs (2)
54/// <exception cref="ArgumentOutOfRangeException"> 161/// <exception cref="ArgumentOutOfRangeException">
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (7)
52ArgumentOutOfRangeException.ThrowIfNegative(index); 53ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 59ArgumentOutOfRangeException.ThrowIfNegative(index); 60ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count); 181ArgumentOutOfRangeException.ThrowIfLessThan(index, 0, nameof(index)); 182ArgumentOutOfRangeException.ThrowIfNegative(index); 183ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Count);
System\Windows\Forms\Design\StyleEditorForm.cs (2)
767catch (ArgumentOutOfRangeException) 782catch (ArgumentOutOfRangeException)
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (2)
52action.Should().Throw<ArgumentOutOfRangeException>(); 62action.Should().Throw<ArgumentOutOfRangeException>();
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (2)
1173ArgumentOutOfRangeException.ThrowIfNegative(start); 1174ArgumentOutOfRangeException.ThrowIfLessThan(end, start);
System.Windows.Forms.Primitives.Tests (7)
Interop\ComCtl32\LVITEMWTests.cs (1)
18Assert.Throws<ArgumentOutOfRangeException>(() => lvi.UpdateText("012345"));
Interop\Kernel32\SYSTEMTIMETests.cs (1)
73Assert.Throws<ArgumentOutOfRangeException>(() => dt = (DateTime)st); // cast to DateTime implicitly with incorrect arguments
Interop\Oleaut32\VARIANTTests.cs (1)
745Assert.Throws<ArgumentOutOfRangeException>("fileTime", variant.ToObject);
System\SpanReaderTests.cs (4)
62Assert.Fail($"Expected {nameof(ArgumentOutOfRangeException)}"); 64catch (ArgumentOutOfRangeException) 85Assert.Fail($"Expected {nameof(ArgumentOutOfRangeException)}"); 87catch (ArgumentOutOfRangeException)
System.Windows.Forms.Tests (516)
CheckedListBoxTests.cs (4)
259ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(() => box.GetItemCheckState(index)); 360ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(() => box.SetItemCheckState(index, CheckState.Checked));
LinkLabelTests.cs (1)
67act.Should().Throw<ArgumentOutOfRangeException>().WithMessage("*LinkArea*");
misc\CollectionHelperTests.cs (2)
32Assert.Throws<ArgumentOutOfRangeException>(() => source.HashtableCopyTo(target, index: -2)); 41Assert.Throws<ArgumentOutOfRangeException>(() => source.HashtableCopyTo(target, index: 5));
NumericUpDownTests.cs (1)
303act.Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value");
System\Windows\Forms\AbstractButtonBaseTests.cs (1)
23.Should().Throw<ArgumentOutOfRangeException>();
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
271Assert.Throws<ArgumentOutOfRangeException>("index", () => accessibleObject.GetChild(index));
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
185Assert.Throws<ArgumentOutOfRangeException>("value", () => accessibleObject.SetValue(newValue));
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (3)
168Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "value")); 186Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, null)); 196Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "value"));
System\Windows\Forms\ButtonBaseTests.cs (1)
2211Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ImageIndex = value);
System\Windows\Forms\ClipboardTests.cs (2)
354action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("retryTimes"); 361action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("retryDelay");
System\Windows\Forms\ColumnHeaderCollectionTests.cs (6)
59Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 84Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 831Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, (ColumnHeader)null)); 865Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ColumnHeader())); 1051Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 1061Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index));
System\Windows\Forms\ColumnHeaderTests.cs (2)
233Assert.Throws<ArgumentOutOfRangeException>("DisplayIndex", () => header.DisplayIndex = value); 486Assert.Throws<ArgumentOutOfRangeException>("value", () => header.ImageIndex = value);
System\Windows\Forms\ColumnStyleTests.cs (2)
42Assert.Throws<ArgumentOutOfRangeException>("value", () => new ColumnStyle(SizeType.AutoSize, -1)); 139Assert.Throws<ArgumentOutOfRangeException>("value", () => style.Width = -1);
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (10)
550Assert.Throws<ArgumentOutOfRangeException>("arrayIndex", () => comboBoxObjectCollection.CopyTo(new object[1], -1)); 567Assert.Throws<ArgumentOutOfRangeException>("arrayIndex", () => comboBoxObjectCollection.CopyTo(new object[1], 3)); 788Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.Insert(-1, 1)); 805Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.Insert(3, 1)); 889Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.RemoveAt(-1)); 906Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.RemoveAt(3)); 1158Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.SetItemInternal(-1, 1)); 1175Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.SetItemInternal(3, 1)); 1335Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection[-1] = 1); 1352Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection[3] = 1);
System\Windows\Forms\ComboBoxTests.cs (6)
1590Assert.Throws<ArgumentOutOfRangeException>("startIndex", () => control.FindString("s", startIndex)); 1714Assert.Throws<ArgumentOutOfRangeException>("startIndex", () => control.FindStringExact("s", startIndex)); 1715Assert.Throws<ArgumentOutOfRangeException>("startIndex", () => control.FindStringExact("s", startIndex, ignoreCase: true)); 1716Assert.Throws<ArgumentOutOfRangeException>("startIndex", () => control.FindStringExact("s", startIndex, ignoreCase: false)); 2656.Should().Throw<ArgumentOutOfRangeException>() 2675.Should().Throw<ArgumentOutOfRangeException>();
System\Windows\Forms\ContainerControlTests.cs (1)
217Assert.Throws<ArgumentOutOfRangeException>("value", () => control.AutoScaleDimensions = value);
System\Windows\Forms\ControlPaintTests.cs (34)
664Assert.Throws<ArgumentOutOfRangeException>(() => ControlPaint.DrawBorder(graphics, bounds, leftColor, leftWidth, leftStyle, topColor, topWidth, topStyle, rightColor, rightWidth, rightStyle, bottomColor, bottomWidth, bottomStyle)); 876Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawButton(graphics, new Rectangle(0, 0, -3, 4), state)); 877Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawButton(graphics, 0, 0, -3, 4, state)); 887Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawButton(graphics, new Rectangle(0, 0, 3, -4), state)); 888Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawButton(graphics, 0, 0, 3, -4, state)); 959Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawCaptionButton(graphics, new Rectangle(0, 0, -3, 4), CaptionButton.Close, state)); 960Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawCaptionButton(graphics, 0, 0, -3, 4, CaptionButton.Close, state)); 970Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawCaptionButton(graphics, new Rectangle(0, 0, 3, -4), CaptionButton.Close, state)); 971Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawCaptionButton(graphics, 0, 0, 3, -4, CaptionButton.Close, state)); 1040Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.DrawCheckBox(graphics, new Rectangle(0, 0, -3, 4), state)); 1041Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.DrawCheckBox(graphics, 0, 0, -3, 4, state)); 1051Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.DrawCheckBox(graphics, new Rectangle(0, 0, 3, -4), state)); 1052Assert.Throws<ArgumentOutOfRangeException>(expectedParamName, () => ControlPaint.DrawCheckBox(graphics, 0, 0, 3, -4, state)); 1120Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawComboButton(graphics, new Rectangle(0, 0, -3, 4), state)); 1121Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawComboButton(graphics, 0, 0, -3, 4, state)); 1131Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawComboButton(graphics, new Rectangle(0, 0, 3, -4), state)); 1132Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawComboButton(graphics, 0, 0, 3, -4, state)); 1303Assert.Throws<ArgumentOutOfRangeException>("pixelsBetweenDots", () => ControlPaint.DrawGrid(graphics, new Rectangle(0, 0, width, height), new Size(width, height), Color.Red)); 1500Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawMenuGlyph(graphics, new Rectangle(0, 0, -3, 4), glyph)); 1501Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawMenuGlyph(graphics, 0, 0, -3, 4, glyph)); 1512Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawMenuGlyph(graphics, new Rectangle(0, 0, 3, -4), glyph)); 1513Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawMenuGlyph(graphics, 0, 0, 3, -4, glyph)); 1581Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawMixedCheckBox(graphics, new Rectangle(0, 0, -3, 4), state)); 1582Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawMixedCheckBox(graphics, 0, 0, -3, 4, state)); 1592Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawMixedCheckBox(graphics, new Rectangle(0, 0, 3, -4), state)); 1593Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawMixedCheckBox(graphics, 0, 0, 3, -4, state)); 1661Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawRadioButton(graphics, new Rectangle(0, 0, -3, 4), state)); 1662Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawRadioButton(graphics, 0, 0, -3, 4, state)); 1672Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawRadioButton(graphics, new Rectangle(0, 0, 3, -4), state)); 1673Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawRadioButton(graphics, 0, 0, 3, -4, state)); 1799Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, -3, 4), ScrollButton.Up, state)); 1800Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.DrawScrollButton(graphics, 0, 0, -3, 4, ScrollButton.Up, state)); 1810Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawScrollButton(graphics, new Rectangle(0, 0, 3, -4), ScrollButton.Up, state)); 1811Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.DrawScrollButton(graphics, 0, 0, 3, -4, ScrollButton.Up, state));
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
1728Assert.Throws<ArgumentOutOfRangeException>("index", () => enumerator.Current); 1731Assert.Throws<ArgumentOutOfRangeException>("index", () => enumerator.Current); 1735Assert.Throws<ArgumentOutOfRangeException>("index", () => enumerator.Current); 1892Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 1907Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 2905Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 2920Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 3425Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.SetChildIndex(child, -2));
System\Windows\Forms\ControlTests.Properties.cs (1)
11859Assert.Throws<ArgumentOutOfRangeException>("value", () => control.TabIndex = -1);
System\Windows\Forms\DataGridViewCellCancelEventArgsTests.cs (2)
24Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellCancelEventArgs(-2, 0)); 30Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellCancelEventArgs(0, -2));
System\Windows\Forms\DataGridViewCellContextMenuStripNeededEventArgsTests.cs (2)
24Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellContextMenuStripNeededEventArgs(-2, 0)); 30Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellContextMenuStripNeededEventArgs(0, -2));
System\Windows\Forms\DataGridViewCellEventArgsTests.cs (2)
23Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellEventArgs(-2, 0)); 29Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellEventArgs(0, -2));
System\Windows\Forms\DataGridViewCellFormattingEventArgsTests.cs (2)
32Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellFormattingEventArgs(-2, 0, "value", typeof(string), null)); 38Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellFormattingEventArgs(0, -2, "value", typeof(string), null));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (4)
33Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, null)); 34Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4))); 40Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, null)); 41Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.ClipboardTests.cs (3)
97action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("rowIndex"); 115action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("rowIndex"); 133action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("rowIndex");
System\Windows\Forms\DataGridViewCellTests.cs (26)
103Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.ContentBounds); 675Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.EditedFormattedValue); 728Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.ErrorIconBounds); 1323Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.FormattedValue); 1503Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.InheritedState); 3649Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetContentBounds(rowIndex)); 3801Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetEditedFormattedValue(rowIndex, DataGridViewDataErrorContexts.Formatting)); 4131Assert.Throws<ArgumentOutOfRangeException>("e.RowIndex", () => cell.GetErrorText(1)); 4394Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedContextMenuStrip(rowIndex)); 4411Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedContextMenuStrip(rowIndex)); 4627Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(-1)); 4658Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(rowIndex)); 4675Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(rowIndex)); 4692Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(rowIndex)); 4741Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedStyle(new DataGridViewCellStyle(), rowIndex, true)); 4905Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 5050Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.Value = value); 5186Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 5203Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 5305Assert.Throws<ArgumentOutOfRangeException>("maxWidth", () => DataGridViewCell.MeasureTextHeight(graphics, "text", SystemFonts.DefaultFont, maxWidth, TextFormatFlags.Default)); 5306Assert.Throws<ArgumentOutOfRangeException>("maxWidth", () => DataGridViewCell.MeasureTextHeight(graphics, "text", SystemFonts.DefaultFont, maxWidth, TextFormatFlags.Default, out widthTruncated)); 5366Assert.Throws<ArgumentOutOfRangeException>("maxRatio", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", SystemFonts.DefaultFont, maxRatio, TextFormatFlags.Default)); 5468Assert.Throws<ArgumentOutOfRangeException>("maxHeight", () => DataGridViewCell.MeasureTextWidth(graphics, "text", SystemFonts.DefaultFont, maxHeight, TextFormatFlags.Default)); 6347Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.SetValue(rowIndex, "value")); 6364Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.SetValue(rowIndex, "value")); 6381Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.SetValue(rowIndex, "value"));
System\Windows\Forms\DataGridViewCellValueEventArgsTests.cs (2)
25Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellValueEventArgs(columnIndex, 0)); 33Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellValueEventArgs(0, rowIndex));
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (2)
33Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewColumnDividerDoubleClickEventArgs(-2, null)); 34Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewColumnDividerDoubleClickEventArgs(-2, new HandledMouseEventArgs(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\DataGridViewColumnTests.cs (1)
1118Assert.Throws<ArgumentOutOfRangeException>("value", () => column.DividerWidth = value);
System\Windows\Forms\DataGridViewComboBoxCell.ObjectCollectionTests.cs (5)
155action.Should().Throw<ArgumentOutOfRangeException>(); 223actionNegativeIndex.Should().Throw<ArgumentOutOfRangeException>(); 311actionNegativeIndex.Should().Throw<ArgumentOutOfRangeException>(); 312actionOutOfRangeIndex.Should().Throw<ArgumentOutOfRangeException>(); 350action.Should().Throw<ArgumentOutOfRangeException>();
System\Windows\Forms\DataGridViewDataErrorEventArgsTests.cs (2)
32Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewDataErrorEventArgs(null, -2, 0, DataGridViewDataErrorContexts.Formatting)); 38Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewDataErrorEventArgs(null, 0, -2, DataGridViewDataErrorContexts.Formatting));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (26)
3036Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(rowIndex)); 3091Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(rowIndex)); 3102Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetInheritedState(rowIndex)); 3271Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 3283Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 3295Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 3307Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 3324Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 3341Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetSize(rowIndex)); 3464Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.Value = value); 3605Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.Value = value1); 3643Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.Value = value1); 3684Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.Value = value1); 3713Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 3725Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 3737Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 3754Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 3772Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 3786Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 3803Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.GetValue(rowIndex)); 4211Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.OnMouseDown(e)); 4296Assert.Throws<ArgumentOutOfRangeException>(() => cell.OnMouseEnter(rowIndex)); 4364Assert.Throws<ArgumentOutOfRangeException>(() => cell.OnMouseLeave(rowIndex)); 4426Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.OnMouseLeave(rowIndex)); 4510Assert.Throws<ArgumentOutOfRangeException>(() => cell.OnMouseUp(e)); 4594Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.OnMouseUp(e));
System\Windows\Forms\DataGridViewRowContextMenuStripNeededEventArgsTests.cs (1)
23Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewRowContextMenuStripNeededEventArgs(-2));
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (1)
34Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewRowDividerDoubleClickEventArgs(-2, new HandledMouseEventArgs(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (2)
50Assert.Throws<ArgumentOutOfRangeException>("value", () => e.Height = value); 106Assert.Throws<ArgumentOutOfRangeException>("value", () => e.MinimumHeight = value);
System\Windows\Forms\DataGridViewRowsRemovedEventArgsTests.cs (2)
24Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewRowsRemovedEventArgs(rowIndex, 1)); 33Assert.Throws<ArgumentOutOfRangeException>("rowCount", () => new DataGridViewRowsRemovedEventArgs(1, rowCount));
System\Windows\Forms\DataGridViewRowTests.cs (10)
874Assert.Throws<ArgumentOutOfRangeException>("value", () => row.DividerHeight = value); 1109Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.ErrorText = "value"); 2015Assert.Throws<ArgumentOutOfRangeException>("value", () => row.Height = value); 2485Assert.Throws<ArgumentOutOfRangeException>("value", () => row.MinimumHeight = value); 4369Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.GetContextMenuStrip(rowIndex)); 4493Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.GetErrorText(rowIndex)); 4563Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.GetState(rowIndex)); 5009Assert.Throws<ArgumentOutOfRangeException>("index", () => row.Paint(graphics, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), rowIndex, DataGridViewElementStates.None, true, true)); 5319Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.PaintCells(graphics, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), rowIndex, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5641Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.PaintHeader(graphics, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), rowIndex, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (4)
67Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 86Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 243Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]); 263Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]);
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (4)
75Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 98Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 271Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]); 295Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]);
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (4)
65Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 83Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 236Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]); 255Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]);
System\Windows\Forms\DataGridViewTests.cs (4)
491Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ColumnHeadersHeight = value); 1419Assert.Throws<ArgumentOutOfRangeException>("value", () => control.RowHeadersWidth = value); 2200Assert.Throws<ArgumentOutOfRangeException>("value", () => control.OnColumnHeadersHeightSizeModeChanged(eventArgs)); 2681Assert.Throws<ArgumentOutOfRangeException>("value", () => control.OnRowHeadersWidthSizeModeChanged(eventArgs));
System\Windows\Forms\DataObjectTests.cs (2)
2238action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("index"); 2291action.Should().Throw<ArgumentOutOfRangeException>().WithParameterName("index");
System\Windows\Forms\DateTimePickerTests.cs (4)
385act.Should().Throw<ArgumentOutOfRangeException>(); 413act.Should().Throw<ArgumentOutOfRangeException>(); 416act.Should().Throw<ArgumentOutOfRangeException>(); 508act.Should().Throw<ArgumentOutOfRangeException>();
System\Windows\Forms\DomainUpDownTests.cs (2)
420_control.Invoking(c => c.SelectedIndex = value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value"); 430_control.Invoking(c => c.SelectedIndex = value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value");
System\Windows\Forms\DragDropHelperTests.cs (1)
259Assert.Throws<ArgumentOutOfRangeException>(() => DragDropHelper.SetDropDescription(dataObject, (DROPIMAGETYPE)dropImageType, message, messageReplacementToken));
System\Windows\Forms\ErrorProviderTests.cs (1)
117Assert.Throws<ArgumentOutOfRangeException>("value", () => provider.BlinkRate = -1);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (8)
223Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 235Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 305Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = null); 317Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = null); 1383Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 1395Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 1680Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = value); 1694Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = image);
System\Windows\Forms\ImageListTests.cs (8)
417Assert.Throws<ArgumentOutOfRangeException>("value", () => list.ImageSize = new Size(width, 1)); 425Assert.Throws<ArgumentOutOfRangeException>("value", () => list.ImageSize = new Size(1, height)); 1039Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, Point.Empty, index)); 1040Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, 0, 0, index)); 1041Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, 0, 0, 10, 10, index)); 1055Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, Point.Empty, index)); 1056Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, 0, 0, index)); 1057Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, 0, 0, 10, 10, index));
System\Windows\Forms\LabelTests.cs (1)
636Assert.Throws<ArgumentOutOfRangeException>(() => label.ImageIndex = -2);
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (14)
79Assert.Throws<ArgumentOutOfRangeException>("value", () => settings.ColumnCount = -1); 153Assert.Throws<ArgumentOutOfRangeException>("value", () => settings.RowCount = -1); 213Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.GetCellPosition(child)); 223Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.GetCellPosition(child)); 233Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.GetCellPosition(child)); 243Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.GetCellPosition(child)); 905Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.SetColumn("control", -2)); 913Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.SetColumn("control", -2)); 1139Assert.Throws<ArgumentOutOfRangeException>("value", () => settings.SetColumnSpan("control", value)); 1149Assert.Throws<ArgumentOutOfRangeException>("value", () => settings.SetColumnSpan("control", value)); 1381Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.SetRow("control", -2)); 1389Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.SetRow("control", -2)); 1614Assert.Throws<ArgumentOutOfRangeException>("value", () => settings.SetRowSpan("control", value)); 1624Assert.Throws<ArgumentOutOfRangeException>("value", () => settings.SetRowSpan("control", value));
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (12)
67Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 81Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 228Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 242Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 1493Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 1507Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 1535Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 1549Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 1712Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 1726Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 2767Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 2781Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index));
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (16)
141Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 155Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 1279Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 1293Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 5000Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, 1)); 5014Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, 1)); 6840Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 6854Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 6926Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 6940Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 8084Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 8098Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = 2); 10322Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, 1)); 10336Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, 1)); 12162Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 12176Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index));
System\Windows\Forms\ListBoxTests.cs (20)
777Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ColumnWidth = -1); 1810Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemHeight = value); 2733Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectedIndex = value); 2743Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectedIndex = value); 5034Assert.Throws<ArgumentOutOfRangeException>("startIndex", () => control.FindString("s", startIndex)); 5138Assert.Throws<ArgumentOutOfRangeException>("startIndex", () => control.FindStringExact("s", startIndex)); 5309Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemHeight(index)); 5320Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemHeight(index)); 5453Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(-1)); 5454Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(0)); 5455Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(1)); 5464Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(-1)); 5465Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(1)); 5466Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(2)); 5473Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(-1)); 5474Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(0)); 5475Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(1)); 5485Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(-1)); 5486Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(1)); 5487Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRectangle(2));
System\Windows\Forms\ListViewGroupCollectionTests.cs (7)
41Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 186Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new ListViewGroup()); 208Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 246Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new ListViewGroup()); 874Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewGroup())); 909Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewGroup())); 1026Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index));
System\Windows\Forms\ListViewGroupTests.cs (1)
251Assert.Throws<ArgumentOutOfRangeException>("value", () => group.TitleImageIndex = value);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (8)
59Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 86Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new ListViewItem.ListViewSubItem()); 121Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 148Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 662Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, null)); 695Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewItem.ListViewSubItem())); 809Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 819Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index));
System\Windows\Forms\ListViewTests.cs (13)
4189Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(0)); 4214Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4215Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(0)); 4216Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4226Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4227Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4228Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(2)); 4235Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4236Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(0)); 4237Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4248Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4249Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4250Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(2));
System\Windows\Forms\MonthCalendarTests.cs (25)
730Assert.Throws<ArgumentOutOfRangeException>("x", () => calendar.CalendarDimensions = new Size(x, 1)); 739Assert.Throws<ArgumentOutOfRangeException>("y", () => calendar.CalendarDimensions = new Size(1, y)); 1376Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.MaxDate = calendar.MinDate.AddTicks(-1)); 1440Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.MaxSelectionCount = value); 1509Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.MinDate = calendar.MaxDate.AddTicks(1)); 1516Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.MinDate = calendar.MinDate.AddTicks(-1)); 1938Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.ScrollChange = value); 2011Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionStart = calendar.MinDate.AddTicks(-1)); 2022Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionStart = calendar.MaxDate.AddTicks(1)); 2089Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionEnd = calendar.MinDate.AddTicks(-1)); 2092Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionEnd = calendar.MinDate.AddTicks(-1)); 2099Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionEnd = calendar.MaxDate.AddTicks(1)); 2102Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionEnd = calendar.MaxDate.AddTicks(1)); 2207Assert.Throws<ArgumentOutOfRangeException>("date1", () => calendar.SelectionRange = new SelectionRange(calendar.MinDate.AddTicks(-1), calendar.MinDate)); 2208Assert.Throws<ArgumentOutOfRangeException>("date1", () => calendar.SelectionRange = new SelectionRange(calendar.MinDate, calendar.MinDate.AddTicks(-1))); 2224Assert.Throws<ArgumentOutOfRangeException>("date2", () => calendar.SelectionRange = new SelectionRange(calendar.MaxDate.AddDays(1), calendar.MaxDate)); 2225Assert.Throws<ArgumentOutOfRangeException>("date2", () => calendar.SelectionRange = new SelectionRange(calendar.MaxDate, calendar.MaxDate.AddDays(1))); 2911Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.TodayDate = calendar.MinDate.AddTicks(-1)); 2922Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.TodayDate = calendar.MaxDate.AddDays(1)); 4027Assert.Throws<ArgumentOutOfRangeException>("date", () => calendar.SetDate(calendar.MinDate.AddTicks(-1))); 4039Assert.Throws<ArgumentOutOfRangeException>("date", () => calendar.SetDate(calendar.MaxDate.AddDays(1))); 4138Assert.Throws<ArgumentOutOfRangeException>("date1", () => calendar.SetSelectionRange(calendar.MinDate.AddTicks(-1), calendar.MinDate)); 4139Assert.Throws<ArgumentOutOfRangeException>("date2", () => calendar.SetSelectionRange(calendar.MinDate, calendar.MinDate.AddTicks(-1))); 4155Assert.Throws<ArgumentOutOfRangeException>("date1", () => calendar.SetSelectionRange(calendar.MaxDate.AddDays(1), calendar.MaxDate)); 4156Assert.Throws<ArgumentOutOfRangeException>("date2", () => calendar.SetSelectionRange(calendar.MaxDate, calendar.MaxDate.AddDays(1)));
System\Windows\Forms\NotifyIconTests.cs (3)
430Assert.Throws<ArgumentOutOfRangeException>("Text", () => notifyIcon.Text = new string('a', NotifyIcon.MaxTextSize + 1)); 953Assert.Throws<ArgumentOutOfRangeException>("timeout", () => notifyIcon.ShowBalloonTip(-1)); 954Assert.Throws<ArgumentOutOfRangeException>("timeout", () => notifyIcon.ShowBalloonTip(-1, "Title", "Text", ToolTipIcon.Error));
System\Windows\Forms\NumericUpDownAccelerationTests.cs (2)
21act.Should().Throw<ArgumentOutOfRangeException>(); 35act.Should().Throw<ArgumentOutOfRangeException>();
System\Windows\Forms\PictureBoxTests.cs (1)
1453Assert.Throws<ArgumentOutOfRangeException>("value", () => control.TabIndex = -1);
System\Windows\Forms\ProgressBarTests.cs (4)
897Assert.Throws<ArgumentOutOfRangeException>("value", () => control.MarqueeAnimationSpeed = -1); 996Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Maximum = -1); 1095Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Minimum = -1); 1755Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Value = value);
System\Windows\Forms\RichTextBoxTests.cs (23)
952Assert.Throws<ArgumentOutOfRangeException>("value", () => control.BulletIndent = value); 2054Assert.Throws<ArgumentOutOfRangeException>("value", () => control.MaxLength = -1); 2595Assert.Throws<ArgumentOutOfRangeException>("value", () => control.RightMargin = -1); 4442Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionCharOffset = value); 5560Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionLength = -1); 5939Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionRightIndent = -1); 6394Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionTabs = new int[33]); 7836Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ZoomFactor = value); 8497Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight)); 8498Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, 0, RichTextBoxFinds.NoHighlight)); 8499Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find(['s'], start)); 8500Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find(['s'], start, 0)); 8512Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight)); 8513Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, 0, RichTextBoxFinds.NoHighlight)); 8514Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find(['s'], start)); 8515Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find(['s'], start, 0)); 8522Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find("s", 0, -2, RichTextBoxFinds.NoHighlight)); 8523Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 0, -2)); 8533Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find("s", 0, -2, RichTextBoxFinds.NoHighlight)); 8534Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 0, -2)); 8546Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 1, 0)); 8547Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 1, 0)); 9212Assert.Throws<ArgumentOutOfRangeException>(() => new LinkClickedEventArgs("text", linkStart, linkLength));
System\Windows\Forms\RowStyleTests.cs (2)
42Assert.Throws<ArgumentOutOfRangeException>("value", () => new RowStyle(SizeType.AutoSize, -1)); 139Assert.Throws<ArgumentOutOfRangeException>("value", () => style.Height = -1);
System\Windows\Forms\ScrollableControlTests.cs (1)
468Assert.Throws<ArgumentOutOfRangeException>("value", () => control.AutoScrollMargin = new Size(x, y));
System\Windows\Forms\ScrollBarTests.cs (4)
822Assert.Throws<ArgumentOutOfRangeException>("value", () => control.LargeChange = -1); 1373Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SmallChange = -1); 1751ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(paramName, () => control.Value = value);
System\Windows\Forms\ScrollPropertiesTests.cs (4)
152Assert.Throws<ArgumentOutOfRangeException>("value", () => properties.LargeChange = -1); 219Assert.Throws<ArgumentOutOfRangeException>("value", () => properties.SmallChange = -1); 427Assert.Throws<ArgumentOutOfRangeException>("value", () => properties.Minimum = -1); 513Assert.Throws<ArgumentOutOfRangeException>("value", () => properties.Value = value);
System\Windows\Forms\SplitterPanelTests.cs (1)
926Assert.Throws<ArgumentOutOfRangeException>("value", () => control.TabIndex = -1);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
1368Assert.Throws<ArgumentOutOfRangeException>(() => owner.SelectedTab); 1373Assert.Throws<ArgumentOutOfRangeException>(() => owner.SelectedTab); 1378Assert.Throws<ArgumentOutOfRangeException>(() => owner.SelectedTab);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (42)
1235Assert.Throws<ArgumentOutOfRangeException>("destinationIndex", () => iList.CopyTo(array, -1)); 2916Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, value)); 2917Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "text")); 2918Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "key", "text")); 2919Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "key", "text", 1)); 2920Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "key", "text", "imageKey")); 2932Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, value)); 2933Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "text")); 2934Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "key", "text")); 2935Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "key", "text", 1)); 2936Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, "key", "text", "imageKey")); 2948Assert.Throws<ArgumentOutOfRangeException>(() => collection.Insert(index, value)); 2961Assert.Throws<ArgumentOutOfRangeException>(() => collection.Insert(index, value)); 2977Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, value)); 2978Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "text")); 2979Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "key", "text")); 2980Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "key", "text", 1)); 2981Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "key", "text", "imageKey")); 3000Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, value)); 3001Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "text")); 3002Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "key", "text")); 3003Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "key", "text", 1)); 3004Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, "key", "text", "imageKey")); 3153Assert.Throws<ArgumentOutOfRangeException>("index", () => iList.Insert(-1, value)); 3166Assert.Throws<ArgumentOutOfRangeException>("index", () => iList.Insert(-1, value)); 3179Assert.Throws<ArgumentOutOfRangeException>(() => iList.Insert(index, value)); 3193Assert.Throws<ArgumentOutOfRangeException>(() => iList.Insert(index, value)); 3208Assert.Throws<ArgumentOutOfRangeException>("index", () => iList.Insert(index, value)); 3226Assert.Throws<ArgumentOutOfRangeException>("index", () => iList.Insert(index, value)); 3336Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 3351Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 3695Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = page); 3711Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = page2); 3737Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]); 3751Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index]); 3955Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index] = page); 3970Assert.Throws<ArgumentOutOfRangeException>("index", () => iList[index] = page2); 4472Assert.Throws<ArgumentOutOfRangeException>(() => owner.SelectedTab); 4477Assert.Throws<ArgumentOutOfRangeException>(() => owner.SelectedTab); 4482Assert.Throws<ArgumentOutOfRangeException>(() => owner.SelectedTab); 4871Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 4886Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index));
System\Windows\Forms\TabControlTests.cs (27)
1606Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemSize = new Size(-1, 1)); 1613Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemSize = new Size(1, -1)); 1815Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Padding = new Point(-1, 1)); 1822Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Padding = new Point(1, -1)); 2507Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectedIndex = -2); 3175Assert.Throws<ArgumentOutOfRangeException>("index", () => control.DeselectTab(page)); 3187Assert.Throws<ArgumentOutOfRangeException>("index", () => control.DeselectTab(page3)); 3556Assert.Throws<ArgumentOutOfRangeException>("index", () => control.DeselectTab(index)); 3570Assert.Throws<ArgumentOutOfRangeException>("index", () => control.DeselectTab(index)); 3633Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetControl(index)); 3647Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetControl(index)); 3783Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3784Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(0)); 3785Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3795Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3796Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3797Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(2)); 3804Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3805Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(0)); 3806Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3817Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3818Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3819Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(2)); 5331Assert.Throws<ArgumentOutOfRangeException>("index", () => control.SelectTab(page)); 5343Assert.Throws<ArgumentOutOfRangeException>("index", () => control.SelectTab(page3)); 5651Assert.Throws<ArgumentOutOfRangeException>("index", () => control.SelectTab(index)); 5665Assert.Throws<ArgumentOutOfRangeException>("index", () => control.SelectTab(index));
System\Windows\Forms\TableLayoutControlCollectionTests.cs (2)
45Assert.Throws<ArgumentOutOfRangeException>("column", () => collection.Add(child, -2, 2)); 57Assert.Throws<ArgumentOutOfRangeException>("row", () => collection.Add(child, 1, -2));
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (6)
35Assert.Throws<ArgumentOutOfRangeException>("column", () => new TableLayoutPanelCellPosition(-2, 0)); 41Assert.Throws<ArgumentOutOfRangeException>("row", () => new TableLayoutPanelCellPosition(0, -2)); 149Assert.Throws<ArgumentOutOfRangeException>("column", () => converter.ConvertFrom("-2,2")); 156Assert.Throws<ArgumentOutOfRangeException>("row", () => converter.ConvertFrom("1,-2")); 286Assert.Throws<ArgumentOutOfRangeException>("column", () => converter.CreateInstance(null, new Dictionary<string, object> 297Assert.Throws<ArgumentOutOfRangeException>("row", () => converter.CreateInstance(null, new Dictionary<string, object>
System\Windows\Forms\TableLayoutPanelTests.cs (10)
330Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ColumnCount = -1); 622Assert.Throws<ArgumentOutOfRangeException>("value", () => control.RowCount = -1); 664Assert.Throws<ArgumentOutOfRangeException>("column", () => control.GetCellPosition(child)); 673Assert.Throws<ArgumentOutOfRangeException>("row", () => control.GetCellPosition(child)); 871Assert.Throws<ArgumentOutOfRangeException>("column", () => control.GetControlFromPosition(column, 0)); 880Assert.Throws<ArgumentOutOfRangeException>("row", () => control.GetControlFromPosition(0, row)); 1768Assert.Throws<ArgumentOutOfRangeException>("column", () => control.SetColumn(new Control(), -2)); 1882Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SetColumnSpan(new Control(), value)); 1995Assert.Throws<ArgumentOutOfRangeException>("row", () => control.SetRow(new Control(), -2)); 2108Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SetRowSpan(new Control(), value));
System\Windows\Forms\TabPageTests.cs (2)
1490Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ImageIndex = -2); 2680Assert.Throws<ArgumentOutOfRangeException>("value", () => control.TabIndex = -1);
System\Windows\Forms\TextRendererTests.cs (1)
608Assert.Throws<ArgumentOutOfRangeException>("flags", action);
System\Windows\Forms\TimerTests.cs (1)
226Assert.Throws<ArgumentOutOfRangeException>("value", () => timer.Interval = value);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1549Assert.Throws<ArgumentOutOfRangeException>("value", () => control.TabIndex = -1);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2566Assert.Throws<ArgumentOutOfRangeException>("value", () => control.TabIndex = -1);
System\Windows\Forms\ToolStripItemTests.cs (1)
4730Assert.Throws<ArgumentOutOfRangeException>("value", () => item.ImageIndex = -2);
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (2)
230action.Should().Throw<ArgumentOutOfRangeException>() 244action.Should().Throw<ArgumentOutOfRangeException>()
System\Windows\Forms\ToolStripPanelTests.cs (1)
199Assert.Throws<ArgumentOutOfRangeException>("value", () => panel.AutoScrollMargin = value);
System\Windows\Forms\ToolStripSplitButtonTests.cs (1)
327action.Should().Throw<ArgumentOutOfRangeException>();
System\Windows\Forms\ToolTipTests.cs (5)
228Assert.Throws<ArgumentOutOfRangeException>("value", () => toolTip.AutomaticDelay = -1); 275Assert.Throws<ArgumentOutOfRangeException>("value", () => toolTip.AutoPopDelay = -1); 400Assert.Throws<ArgumentOutOfRangeException>("value", () => toolTip.InitialDelay = -1); 485Assert.Throws<ArgumentOutOfRangeException>("value", () => toolTip.ReshowDelay = -1); 775Assert.Throws<ArgumentOutOfRangeException>("duration", () => toolTip.Show("text", mockWindow.Object, -1));
System\Windows\Forms\TreeNodeCollectionTests.cs (2)
65Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 76Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new TreeNode());
System\Windows\Forms\TreeNodeTests.cs (7)
249Assert.Throws<ArgumentOutOfRangeException>("value", () => new TreeNode("text", imageIndex, 0)); 250Assert.Throws<ArgumentOutOfRangeException>("value", () => new TreeNode("text", imageIndex, 0, Array.Empty<TreeNode>())); 257Assert.Throws<ArgumentOutOfRangeException>("value", () => new TreeNode("text", 0, selectedImageIndex)); 258Assert.Throws<ArgumentOutOfRangeException>("value", () => new TreeNode("text", 0, selectedImageIndex, Array.Empty<TreeNode>())); 1304Assert.Throws<ArgumentOutOfRangeException>("value", () => node.ImageIndex = value); 3288Assert.Throws<ArgumentOutOfRangeException>("value", () => node.SelectedImageIndex = value); 3979Assert.Throws<ArgumentOutOfRangeException>("value", () => node.StateImageIndex = value);
System\Windows\Forms\TreeViewTests.cs (6)
2216Assert.Throws<ArgumentOutOfRangeException>("value", () => treeView.ImageIndex = -2); 2684Assert.Throws<ArgumentOutOfRangeException>("value", () => treeView.Indent = value); 2697Assert.Throws<ArgumentOutOfRangeException>("value", () => treeView.Indent = indent); 2796Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemHeight = value); 2810Assert.Throws<ArgumentOutOfRangeException>("value", () => control.ItemHeight = indent); 3576Assert.Throws<ArgumentOutOfRangeException>("value", () => treeView.SelectedImageIndex = -2);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (1)
330Assert.Throws<ArgumentOutOfRangeException>("imageIndex", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), imageList, imageIndex));
TextBoxBaseTests.cs (5)
1788Assert.Throws<ArgumentOutOfRangeException>("value", () => control.MaxLength = -1); 2929Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionLength = -1); 3106Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SelectionStart = -1); 4611Assert.Throws<ArgumentOutOfRangeException>("lineNumber", () => control.GetFirstCharIndexFromLine(-1)); 6314Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Select(-1, 0));
TrackBarTests.cs (3)
1033Assert.Throws<ArgumentOutOfRangeException>("value", () => control.LargeChange = -1); 1767Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SmallChange = -1); 2193Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Value = value);
System.Windows.Input.Manipulations (11)
System\Windows\Input\Manipulations\Exceptions.cs (1)
195private 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)
37/// <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)
311ArgumentOutOfRangeException.ThrowIfNotEqual(index, 0); 364ArgumentOutOfRangeException.ThrowIfNegative(value); 365ArgumentOutOfRangeException.ThrowIfGreaterThan(value, SIZE); 694ArgumentOutOfRangeException.ThrowIfNegative(value); 695ArgumentOutOfRangeException.ThrowIfGreaterThan(value, SIZE); 1264ArgumentOutOfRangeException.ThrowIfNegative(value); 1265ArgumentOutOfRangeException.ThrowIfGreaterThan(value, SIZE); 1517ArgumentOutOfRangeException.ThrowIfNegative(value); 1518ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _entries.Length); 1868ArgumentOutOfRangeException.ThrowIfNegative(index); 2248ArgumentOutOfRangeException.ThrowIfNegative(index);
System.Xaml.Tests (1)
System\Xaml\XamlNodeListTests.cs (1)
41Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new XamlNodeList(context, -1));
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
396ArgumentOutOfRangeException.ThrowIfNegative(milliseconds);
System\Windows\Automation\Text\TextRange.cs (1)
287ArgumentOutOfRangeException.ThrowIfLessThan(maxLength, -1);
UIAutomationClientSideProviders (18)
MS\Internal\AutomationProxies\WindowsButton.cs (1)
93ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
68ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsContainer.cs (1)
59ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
82ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (1)
43ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsIPAddress.cs (1)
55ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsNonControl.cs (1)
45ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsProgressbar.cs (1)
47ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
50ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
62ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (1)
68ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
54ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsSpinner.cs (1)
54ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsStartMenu.cs (1)
41ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
61ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
55ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
51ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
54ArgumentOutOfRangeException.ThrowIfNotEqual(idChild, 0);
WindowsBase.Tests (31)
System\ComponentModel\SortDescriptionCollectionTests.cs (7)
116Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 127Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = description); 295Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, description)); 384Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.InsertItem(index, description)); 614Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveAt(index)); 700Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.RemoveItem(index)); 773Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.SetItem(index, description));
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (1)
101Assert.Throws<ArgumentOutOfRangeException>("value", () => manager.CertificateOption = value);
System\Security\RightsManagement\ContentGrantTests.cs (2)
79Assert.Throws<ArgumentOutOfRangeException>("right", () => new ContentGrant(user, right)); 86Assert.Throws<ArgumentOutOfRangeException>("validFrom", () => new ContentGrant(user, ContentRight.View, new DateTime(2023, 01, 01), new DateTime(2023, 01, 01).AddTicks(-1)));
System\Security\RightsManagement\ContentUserTests.cs (3)
38Assert.Throws<ArgumentOutOfRangeException>("name", () => new ContentUser(name, AuthenticationType.Windows)); 46Assert.Throws<ArgumentOutOfRangeException>("authenticationType", () => new ContentUser("name", authenticationType)); 55Assert.Throws<ArgumentOutOfRangeException>("name", () => new ContentUser(name, AuthenticationType.Internal));
System\Security\RightsManagement\SecureEnvironmentTests.cs (8)
60Assert.Throws<ArgumentOutOfRangeException>("authentication", () => SecureEnvironment.Create("manifest", authentication, UserActivationMode.Permanent)); 68Assert.Throws<ArgumentOutOfRangeException>("userActivationMode", () => SecureEnvironment.Create("manifest", AuthenticationType.Windows, userActivationMode)); 95Assert.Throws<ArgumentOutOfRangeException>("user", () => SecureEnvironment.Create("manifest", user)); 104Assert.Throws<ArgumentOutOfRangeException>("user", () => SecureEnvironment.Create("manifest", user)); 152Assert.Throws<ArgumentOutOfRangeException>("user", () => SecureEnvironment.IsUserActivated(user)); 161Assert.Throws<ArgumentOutOfRangeException>("user", () => SecureEnvironment.IsUserActivated(user)); 190Assert.Throws<ArgumentOutOfRangeException>("user", () => SecureEnvironment.RemoveActivatedUser(user)); 199Assert.Throws<ArgumentOutOfRangeException>("user", () => SecureEnvironment.RemoveActivatedUser(user));
System\Windows\Threading\DispatcherTimerTests.cs (2)
124Assert.Throws<ArgumentOutOfRangeException>("interval", () => new DispatcherTimer(interval, DispatcherPriority.Normal, (s, e) => {}, Dispatcher.CurrentDispatcher)); 198Assert.Throws<ArgumentOutOfRangeException>("value", () => timer.Interval = value);
System\Windows\WeakEventManagerTests.cs (8)
3379Assert.Throws<ArgumentOutOfRangeException>("index", () => list[index]); 3395Assert.Throws<ArgumentOutOfRangeException>("index", () => list[-1]); 3396Assert.Throws<ArgumentOutOfRangeException>("index", () => list[0]); 3397Assert.Throws<ArgumentOutOfRangeException>("index", () => list[1]); 3408Assert.Throws<ArgumentOutOfRangeException>("index", () => list[index]); 3425Assert.Throws<ArgumentOutOfRangeException>("index", () => list[-1]); 3426Assert.Throws<ArgumentOutOfRangeException>("index", () => list[1]); 3427Assert.Throws<ArgumentOutOfRangeException>("index", () => list[2]);