3199 instantiations of ArgumentOutOfRangeException
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (5)
Aspire.EndToEnd.Tests (3)
Aspire.Hosting (5)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Tests (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.RabbitMQ.Client (1)
Aspire.StackExchange.Redis (1)
Aspire.Workload.Tests (7)
CodeGenerator (2)
csc (1)
dotnet-dev-certs (1)
dotnet-svcutil-lib (503)
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.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\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\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\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\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\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\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,
Extensibility.MessageInterceptor.IntegrationTests (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
illink (10)
Linker\MessageContainer.cs (6)
53 throw new ArgumentOutOfRangeException (nameof (code), $"The provided code '{code}' does not fall into the error category, which is in the range of 1000 to 2000 (inclusive).");
69 throw new ArgumentOutOfRangeException (nameof (id), $"The provided code '{(int) id}' does not fall into the error category, which is in the range of 1000 to 2000 (inclusive).");
90 throw new ArgumentOutOfRangeException (nameof (code), $"The provided code '{code}' does not fall into the permitted range for external errors. To avoid possible collisions " +
111 throw new ArgumentOutOfRangeException (nameof (code), $"The provided code '{code}' does not fall into the warning category, which is in the range of 2001 to 6000 (inclusive).");
130 throw new ArgumentOutOfRangeException (nameof (id), $"The provided code '{(int) id}' does not fall into the warning category, which is in the range of 2001 to 6000 (inclusive).");
154 throw new ArgumentOutOfRangeException (nameof (code), $"The provided code '{code}' does not fall into the permitted range for external warnings. To avoid possible collisions " +
ILLink.RoslynAnalyzer (1)
InMemory.FunctionalTests (3)
installer.tasks (1)
Microsoft.Analyzers.Extra.Tests (2)
Microsoft.Analyzers.Local.Tests (5)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Analyzer.Testing (2)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.AsyncState (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components (9)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Server (9)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.Cryptography.Internal (1)
Microsoft.AspNetCore.Cryptography.KeyDerivation (9)
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)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.HeaderParsing (3)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions (23)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (8)
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)
Microsoft.AspNetCore.Http.Features (1)
Microsoft.AspNetCore.HttpLogging (4)
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.Mvc.Core (35)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.RazorPages (12)
Microsoft.AspNetCore.Mvc.ViewFeatures (16)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (5)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Rewrite (5)
Microsoft.AspNetCore.Routing (9)
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);
Microsoft.AspNetCore.Server.IIS (8)
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));
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);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
Microsoft.AspNetCore.Session (4)
Microsoft.AspNetCore.Shared.Tests (5)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.TestHost (4)
Microsoft.AspNetCore.Testing (3)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.AspNetCore.WebUtilities (9)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.Build (20)
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (10)
Microsoft.Build.Framework (12)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (3)
Microsoft.Build.Utilities.Core (1)
Microsoft.Cci.Extensions (4)
Microsoft.CodeAnalysis (112)
Microsoft.CodeAnalysis.CodeStyle (24)
Microsoft.CodeAnalysis.Collections.Package (14)
Microsoft.CodeAnalysis.CSharp (10)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.Scripting (4)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (44)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (25)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.Data.Analysis (14)
Microsoft.Data.Analysis.Interactive (1)
Microsoft.DotNet.AsmDiff (10)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.VersionTools.Tasks (1)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.AzureAIInference (5)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.Ollama (5)
Microsoft.Extensions.AI.OpenAI (5)
Microsoft.Extensions.AmbientMetadata.Application (3)
Microsoft.Extensions.AsyncState (3)
Microsoft.Extensions.Caching.Abstractions (7)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.Memory (5)
Microsoft.Extensions.Caching.MicroBenchmarks (1)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.Extensions.Compliance.Abstractions (3)
Microsoft.Extensions.Compliance.Redaction (3)
Microsoft.Extensions.Compliance.Testing (3)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyInjection.AutoActivation (3)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
Microsoft.Extensions.Diagnostics.Probes (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Microsoft.Extensions.Diagnostics.Testing (3)
Microsoft.Extensions.Hosting.Testing (3)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Resilience (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.AzureAppServices (7)
Microsoft.Extensions.Logging.Console (8)
Microsoft.Extensions.ObjectPool.DependencyInjection (3)
Microsoft.Extensions.Options.Contextual (3)
Microsoft.Extensions.Primitives (3)
Microsoft.Extensions.Resilience (3)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (3)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.TimeProvider.Testing (3)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Microsoft.Interop.SourceGeneration (2)
Microsoft.JSInterop (4)
Microsoft.Maui (7)
Microsoft.Maui.Controls (39)
Microsoft.Maui.Controls.BindingSourceGen (4)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Compatibility (8)
Microsoft.Maui.Essentials (4)
Microsoft.Maui.Graphics (3)
Microsoft.Maui.Graphics.Skia (2)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
Microsoft.ML.AutoML (1)
Microsoft.ML.Core (31)
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)
Microsoft.ML.DataView (7)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.Samples (1)
Microsoft.ML.Tokenizers (26)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.Net.Http.Headers (13)
Microsoft.VisualBasic.Core (3)
Microsoft.VisualStudio.LanguageServices (5)
MSBuild (1)
MSBuildTaskHost (2)
PresentationBuildTasks (3)
PresentationCore (77)
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);
PresentationFramework (149)
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"));
PresentationUI (2)
ReachFramework (59)
Replay (1)
Roslyn.Test.PdbUtilities (2)
Shared (4)
System.Collections (16)
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.Concurrent (6)
System.Collections.Immutable (3)
System.Collections.NonGeneric (9)
System.Collections.Specialized (1)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (3)
System.Composition.Runtime (1)
System.Configuration.ConfigurationManager (17)
System.Console (4)
System.Data.Common (5)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (7)
System.Diagnostics.TraceSource (2)
System.Formats.Asn1 (12)
System.Formats.Cbor (13)
System.Formats.Tar (6)
System.IO.Compression (3)
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)
System.IO.FileSystem.DriveInfo (1)
System.IO.FileSystem.Watcher (1)
System.IO.Hashing (1)
System.IO.MemoryMappedFiles (23)
System.IO.Packaging (8)
System.IO.Pipelines (5)
System.IO.Pipes (17)
System.IO.Ports (24)
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.Linq (1)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (21)
System.Linq.Parallel (4)
System.Linq.Queryable (1)
System.Memory (3)
System.Memory.Data (4)
System.Net.Http (19)
System.Net.HttpListener (4)
System.Net.Mail (1)
System.Net.NameResolution (1)
System.Net.Primitives (7)
System.Net.Quic (7)
System.Net.Requests (11)
System.Net.Security (1)
System.Net.Sockets (27)
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.WebSockets (9)
System.Net.WebSockets.Client (4)
System.Numerics.Tensors (9)
System.ObjectModel (1)
System.Private.CoreLib (464)
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\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\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\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\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\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\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\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));
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (92)
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\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\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.Private.Uri (12)
System.Private.Windows.Core (5)
System.Private.Xml (24)
System.Private.Xml.Linq (2)
System.Reflection.Emit (1)
System.Reflection.Metadata (24)
System.Runtime.Caching (2)
System.Runtime.InteropServices (2)
System.Runtime.Numerics (1)
System.Runtime.Serialization.Formatters (5)
System.Security.Cryptography (43)
System.Security.Cryptography.Pkcs (16)
System.Security.Cryptography.Xml (1)
System.ServiceModel.Federation (2)
System.ServiceModel.NetFramingBase (13)
System.ServiceModel.NetNamedPipe (5)
System.ServiceModel.Syndication (6)
System.ServiceModel.UnixDomainSocket (10)
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.Text.Encoding.CodePages (65)
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\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.Encodings.Web (9)
System.Text.Json (19)
System.Text.Json.SourceGeneration (2)
System.Text.RegularExpressions (3)
System.Threading (4)
System.Threading.Channels (4)
System.Threading.RateLimiting (12)
System.Threading.Tasks.Dataflow (11)
System.Transactions.Local (10)
System.Windows.Controls.Ribbon (3)
System.Windows.Forms (79)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.Tests (1)
System.Windows.Input.Manipulations (1)
System.Xaml (27)
UIAutomationClientSideProviders (21)
vbc (1)
VBCSCompiler (1)
WinFormsControlsTest (3)
WinShimmer (1)
6174 references to ArgumentOutOfRangeException
Aspire.Hosting (8)
Aspire.Hosting.Azure.ServiceBus (5)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Tests (9)
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)
Aspire.RabbitMQ.Client (2)
BinaryFormatTests (1)
CodeGenerator (1)
dotnet-svcutil-lib (7)
http2cat (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (4)
InProcessWebSite (10)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local.Tests (39)
Microsoft.AspNetCore.Antiforgery.Test (4)
Microsoft.AspNetCore.AsyncState (34)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Server (5)
Microsoft.AspNetCore.Components.Server.Tests (6)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Cors.Test (4)
Microsoft.AspNetCore.Cryptography.KeyDerivation (8)
Microsoft.AspNetCore.DataProtection (1)
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)
Microsoft.AspNetCore.HeaderParsing (34)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections (19)
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)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Features (2)
Microsoft.AspNetCore.HttpLogging (7)
Microsoft.AspNetCore.HttpLogging.Tests (10)
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.HttpOverrides.Tests (4)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OutputCaching (6)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Owin.Tests (1)
Microsoft.AspNetCore.Razor.Test (12)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Server.HttpSys (4)
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));
Microsoft.AspNetCore.Server.HttpSys.Tests (1)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (35)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Shared.Tests (20)
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)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.TestHost.Tests (3)
Microsoft.AspNetCore.Testing (34)
Microsoft.AspNetCore.WebSockets (2)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.AspNetCore.WebUtilities (21)
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)
Microsoft.Bcl.TimeProvider (4)
Microsoft.Build (3)
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.UnitTests (13)
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)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Tasks.UnitTests (4)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (27)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (88)
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\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\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)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (6)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
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\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."
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,
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\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\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}))
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
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)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
Microsoft.Extensions.AI (34)
Microsoft.Extensions.AI.Abstractions (34)
Microsoft.Extensions.AI.Abstractions.Tests (9)
Microsoft.Extensions.AI.AzureAIInference (34)
Microsoft.Extensions.AI.Integration.Tests (34)
Microsoft.Extensions.AI.Ollama (34)
Microsoft.Extensions.AI.OpenAI (34)
Microsoft.Extensions.AmbientMetadata.Application (34)
Microsoft.Extensions.AsyncState (34)
Microsoft.Extensions.Caching.Hybrid (34)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
Microsoft.Extensions.Compliance.Abstractions (34)
Microsoft.Extensions.Compliance.Redaction (35)
Microsoft.Extensions.Compliance.Testing (34)
Microsoft.Extensions.DependencyInjection.AutoActivation (34)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (34)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (34)
Microsoft.Extensions.Diagnostics.Probes (35)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (38)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (9)
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)
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Microsoft.Extensions.Features (17)
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)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Resilience (35)
Microsoft.Extensions.ObjectPool.DependencyInjection (34)
Microsoft.Extensions.Options.Contextual (34)
Microsoft.Extensions.Primitives (14)
Microsoft.Extensions.Resilience (34)
Microsoft.Extensions.Telemetry (35)
Microsoft.Extensions.Telemetry.Abstractions (34)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.TimeProvider.Testing (37)
Microsoft.Extensions.TimeProvider.Testing.Tests (11)
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)
Microsoft.Maui (1)
Microsoft.Maui.Controls (11)
Microsoft.Maui.Graphics (1)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core.Tests (1)
Microsoft.ML.Data (2)
Microsoft.ML.OnnxTransformerTest (2)
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)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (4)
Microsoft.ML.Tests (12)
Microsoft.ML.Tokenizers (1)
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)
Microsoft.Net.Http.Headers.Tests (20)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices (3)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (8)
mscorlib (1)
netstandard (1)
PresentationCore (326)
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));
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\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);
PresentationCore.Tests (5)
PresentationFramework (214)
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);
PresentationUI (1)
ReachFramework (61)
Shared (37)
Shared.Tests (86)
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"));
System.Collections (37)
System.Collections.Concurrent (69)
System.Collections.Immutable (9)
System.Collections.NonGeneric (8)
System.Collections.Specialized (11)
System.ComponentModel.Annotations (2)
System.ComponentModel.TypeConverter (1)
System.Console (7)
System.Data.Common (95)
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\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)
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.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\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.Cbor (6)
System.Formats.Tar (11)
System.IO.Compression (11)
System.IO.Compression.Brotli (7)
System.IO.Compression.ZipFile (4)
System.IO.FileSystem.Watcher (3)
System.IO.Hashing (1)
System.IO.MemoryMappedFiles (7)
System.IO.Packaging (22)
System.IO.Pipelines (1)
System.IO.Pipes (8)
System.Linq (7)
System.Linq.AsyncEnumerable (7)
System.Linq.Expressions (21)
System.Linq.Parallel (8)
System.Linq.Queryable (2)
System.Memory (7)
System.Net.Http (40)
System.Net.HttpListener (17)
System.Net.Mail (4)
System.Net.Ping (13)
System.Net.Primitives (20)
System.Net.Requests (20)
System.Net.Sockets (47)
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.WebSockets (11)
System.Net.WebSockets.Client (9)
System.Numerics.Tensors (11)
System.ObjectModel (6)
System.Private.CoreLib (968)
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\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\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\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);
System.Private.DataContractSerialization (96)
System.Private.Uri (6)
System.Private.Windows.Core (5)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Xml (157)
System.Private.Xml.Linq (2)
System.Reflection.Emit (1)
System.Reflection.Metadata (89)
System.Resources.Extensions (2)
System.Runtime (1)
System.Runtime.Numerics (3)
System.Security.Cryptography (268)
System.Security.Cryptography.Cose (1)
System.ServiceModel.Http.Tests (14)
System.ServiceModel.NetTcp.Tests (7)
System.ServiceModel.Primitives.Tests (10)
System.ServiceModel.UnixDomainSocket.Tests (4)
System.Text.Encodings.Web (1)
System.Text.Json (32)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (14)
System.Threading (38)
System.Threading.RateLimiting (4)
System.Threading.Tasks.Dataflow (12)
System.Threading.Tasks.Parallel (3)
System.Transactions.Local (3)
System.Web.HttpUtility (4)
System.Windows.Controls.Ribbon (2)
System.Windows.Forms (471)
System.Windows.Forms.Design (11)
System.Windows.Forms.Design.Tests (2)
System.Windows.Forms.Primitives (2)
System.Windows.Forms.Primitives.Tests (7)
System.Windows.Forms.Tests (516)
System.Windows.Input.Manipulations (11)
System.Xaml (11)
System.Xaml.Tests (1)
UIAutomationClient (2)
UIAutomationClientSideProviders (18)
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\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\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));