1213 references to MaxValue
AssemblyStripper (1)
http2cat (1)
IIS.FunctionalTests (2)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (29)
Http2\Http2ConnectionTests.cs (15)
800_clientSettings.InitialWindowSize = int.MaxValue;
805await SendWindowUpdateAsync(0, int.MaxValue - (int)Http2PeerSettings.DefaultInitialWindowSize);
1029_clientSettings.InitialWindowSize = int.MaxValue;
1034await SendWindowUpdateAsync(0, int.MaxValue - (int)Http2PeerSettings.DefaultInitialWindowSize);
1245_clientSettings.InitialWindowSize = int.MaxValue;
1250await SendWindowUpdateAsync(0, int.MaxValue - (int)Http2PeerSettings.DefaultInitialWindowSize);
1357_clientSettings.InitialWindowSize = int.MaxValue;
1380await SendWindowUpdateAsync(0, int.MaxValue - (int)Http2PeerSettings.DefaultInitialWindowSize);
1647_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = int.MaxValue;
1651Assert.Equal((uint)int.MaxValue * 2, _connection.MaxTrackedStreams);
1729expectedLastStreamId: int.MaxValue,
3575[InlineData((int)(Http2SettingsParameter.SETTINGS_INITIAL_WINDOW_SIZE), (uint)int.MaxValue + 1, (int)(Http2ErrorCode.FLOW_CONTROL_ERROR))]
4815VerifyGoAway(await ReceiveFrameAsync(), int.MaxValue, Http2ErrorCode.INTERNAL_ERROR);
4884VerifyGoAway(await ReceiveFrameAsync(), Int32.MaxValue, Http2ErrorCode.NO_ERROR);
4914VerifyGoAway(await ReceiveFrameAsync(), Int32.MaxValue, Http2ErrorCode.NO_ERROR);
Interop.FunctionalTests (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Components (5)
Microsoft.AspNetCore.Components.Server.Tests (4)
Circuits\RenderBatchWriterTest.cs (4)
49new ArrayRange<int>(new[] { 123, int.MaxValue, int.MinValue, 456 }, 3), // Only use first 3 to show that param is respected
573, 123, int.MaxValue, int.MinValue, // DisposedComponentIds as length-prefixed array
104new RenderTreeDiff(int.MaxValue, default),
118int.MaxValue, // ComponentId
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.Core.Test (6)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
DefaultHtmlGeneratorTest.cs (8)
868{ nameof(Model.FlagsEnum), int.MaxValue, new [] { "2147483647" } },
869{ nameof(Model.FlagsEnum), (uint)int.MaxValue + 1, new [] { "2147483648" } },
881{ nameof(Model.Id), int.MaxValue, new [] { "2147483647" } },
882{ nameof(Model.Id), (uint)int.MaxValue + 1, new [] { "2147483648" } }, // no limit checks
901{ nameof(Model.NullableEnum), int.MaxValue, new [] { "2147483647" } },
902{ nameof(Model.NullableEnum), (uint)int.MaxValue + 1, new [] { "2147483648" } },
921{ nameof(Model.RegularEnum), int.MaxValue, new [] { "2147483647" } },
922{ nameof(Model.RegularEnum), (uint)int.MaxValue + 1, new [] { "2147483648" } },
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Razor.Runtime.Test (16)
Runtime\TagHelpers\TagHelperRunnerTest.cs (16)
48new[] { 1000, int.MaxValue, 0 },
49new[] { 0, 1000, int.MaxValue }
52new[] { int.MaxValue, int.MaxValue, int.MinValue },
53new[] { int.MinValue, int.MaxValue, int.MaxValue }
64new[] { 0, 1000, int.MaxValue },
65new[] { 0, 1000, int.MaxValue }
68new[] { int.MaxValue, int.MinValue, int.MaxValue, -1000, int.MaxValue, 0 },
69new[] { int.MinValue, -1000, 0, int.MaxValue, int.MaxValue, int.MaxValue }
77new[] { 1000, int.MaxValue, 0, -1000, int.MinValue },
78new[] { int.MinValue, -1000, 0, 1000, int.MaxValue }
Microsoft.AspNetCore.Razor.Test (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Routing.Tests (7)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
src\Shared\test\Shared.Tests\runtime\Http2\HPackIntegerTest.cs (2)
87yield return new object[] { int.MaxValue, 1, new byte[] { 0x01, 0xfe, 0xff, 0xff, 0xff, 0x07 } };
88yield return new object[] { int.MaxValue, 8, new byte[] { 0xff, 0x80, 0xfe, 0xff, 0xff, 0x07 } };
Microsoft.AspNetCore.Shared.Tests (6)
runtime\Http2\HPackIntegerTest.cs (2)
87yield return new object[] { int.MaxValue, 1, new byte[] { 0x01, 0xfe, 0xff, 0xff, 0xff, 0x07 } };
88yield return new object[] { int.MaxValue, 8, new byte[] { 0xff, 0x80, 0xfe, 0xff, 0xff, 0x07 } };
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.WebUtilities.Tests (6)
Microsoft.Build (7)
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
195sa = QuotingUtilities.SplitUnquoted("abc,,;dxyz", int.MaxValue, false, false, out emptySplits, ';', ',');
202sa = QuotingUtilities.SplitUnquoted("abc,,;dxyz", int.MaxValue, true, false, out emptySplits, ';', ',');
Microsoft.Build.Engine.UnitTests (20)
Evaluation\SimpleVersion_Tests.cs (14)
24[InlineData(int.MaxValue)]
33[InlineData(int.MaxValue, int.MaxValue)]
42[InlineData(int.MaxValue, int.MaxValue, int.MaxValue)]
58[InlineData(int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue)]
221yield return new object[] { $"{prefix}2147483647.2147483647.2147483647.2147483647{suffix}", new SimpleVersion(int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue) };
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.Core (3)
Microsoft.Build.Tasks.UnitTests (14)
Microsoft.Build.Utilities.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.SignTool (4)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Caching.MicroBenchmarks (6)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.NET.StringTools (1)
Microsoft.VisualBasic.Core (10)
MSBuild (3)
MSBuildTaskHost (3)
Mvc.RoutingWebSite (1)
PresentationBuildTasks (3)
PresentationCore (43)
System\Windows\Input\Stylus\Common\StylusPointPropertyInfoDefaults.cs (11)
22Int32.MaxValue,
32Int32.MaxValue,
42Int32.MaxValue,
52Int32.MaxValue,
62Int32.MaxValue,
82Int32.MaxValue,
93Int32.MaxValue,
183Int32.MaxValue,
193Int32.MaxValue,
203Int32.MaxValue,
243Int32.MaxValue,
PresentationFramework (69)
ReachFramework (7)
Sockets.FunctionalTests (1)
System.Collections (4)
System.Collections.Concurrent (17)
System.Collections.Immutable (4)
System.ComponentModel.TypeConverter (3)
System.Console (1)
System.Data.Common (13)
System.Diagnostics.Process (4)
System.Formats.Asn1 (5)
System.Formats.Cbor (1)
System.IO.Compression (1)
System.IO.Compression.Brotli (3)
System.IO.FileSystem.Watcher (1)
System.IO.Pipelines (2)
System.IO.Pipes (3)
System.Linq (11)
System\Linq\Select.SpeedOpt.cs (4)
190return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue);
240Debug.Assert((uint)(end - start) <= (uint)int.MaxValue);
413return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue);
516return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue);
System.Linq.Expressions (6)
System.Linq.Parallel (15)
System.Memory (9)
System.Memory.Data (3)
System.Net.Http (26)
System.Net.Http.Json (1)
System.Net.Ping (3)
System.Net.Primitives (3)
System.Net.Quic (2)
System.Net.Requests (1)
System.Net.Security (3)
System.Net.Sockets (6)
System.Net.WebClient (2)
System.Numerics.Tensors (9)
System.ObjectModel (1)
System.Private.CoreLib (182)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (11)
220if (totalLength > int.MaxValue)
258if (totalLength > int.MaxValue)
403if (totalLengthLong > int.MaxValue)
1030if (totalSeparatorsLength > int.MaxValue)
1414if (dstLength > int.MaxValue)
1636return SplitInternal(new ReadOnlySpan<char>(in separator), int.MaxValue, options);
1655return SplitInternal(separator, int.MaxValue, StringSplitOptions.None);
1665return SplitInternal(separator, int.MaxValue, StringSplitOptions.None);
1686return SplitInternal(separator, int.MaxValue, options);
1738return SplitInternal(separator ?? Empty, null, int.MaxValue, options);
1748return SplitInternal(null, separator, int.MaxValue, options);
System.Private.DataContractSerialization (49)
System\Runtime\Serialization\DataContractSerializer.cs (3)
72: this(type, knownTypes, int.MaxValue, false, false)
90Initialize(type, dictionary.Add(rootName), dictionary.Add(DataContract.GetNamespace(rootNamespace)), knownTypes, int.MaxValue, ignoreExtensionDataObject, preserveObjectReferences, null, false);
100Initialize(type, rootName, rootNamespace, knownTypes, int.MaxValue, false, false, null, false);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (2)
63: this(type, null, knownTypes, int.MaxValue, false, false)
77: this(type, rootName, knownTypes, int.MaxValue, false, false)
System\Xml\XmlDictionaryReader.cs (2)
138return CreateMtomReader(stream, encodings, contentType, quotas, int.MaxValue, null);
161return CreateMtomReader(buffer, offset, count, encodings, contentType, quotas, int.MaxValue, null);
System.Private.Xml (34)
System.Reflection.Metadata (7)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (3)
System.Resources.Writer (2)
System.Runtime.Caching (9)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (21)
System.Runtime.Serialization.Formatters (6)
System.Security.Cryptography (16)
System.Text.Encoding.CodePages (2)
System.Text.Json (148)
System.Text.RegularExpressions (85)
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (4)
148_anyStar = SymbolicRegexNode<TSet>.CreateLoop(this, _anyChar, 0, int.MaxValue, isLazy: false);
149_anyStarLazy = SymbolicRegexNode<TSet>.CreateLoop(this, _anyChar, 0, int.MaxValue, isLazy: true);
217internal SymbolicRegexNode<TSet> CreateLoop(SymbolicRegexNode<TSet> node, bool isLazy, int lower = 0, int upper = int.MaxValue)
232if (!isLazy && lower == 0 && upper == int.MaxValue && node._kind == SymbolicRegexNodeKind.Singleton)
System.Text.RegularExpressions.Generator (61)
RegexGenerator.Emitter.cs (21)
1328Debug.Assert(target.LoopNode.N == int.MaxValue);
3448if (node.N != int.MaxValue)
3661Debug.Assert(node.M < int.MaxValue, $"Unexpected M={node.M}");
3905if (maxIterations != int.MaxValue || iterationMayBeEmpty)
3910if (maxIterations == int.MaxValue)
4108if (node.IsSetFamily && maxIterations == int.MaxValue && node.Str == RegexCharClass.AnyClass)
4123string maxClause = maxIterations != int.MaxValue ? $"{CountIsLessThan(iterationLocal, maxIterations)} && " : "";
4131else if (node.IsSetFamily && maxIterations == int.MaxValue && node.Str == RegexCharClass.AnyClass)
4154if (maxIterations != int.MaxValue)
4162writer.WriteLine(maxIterations != int.MaxValue ?
4177if (minIterations != 0 || maxIterations != int.MaxValue)
4188string maxClause = maxIterations != int.MaxValue ? $"{CountIsLessThan(iterationLocal, maxIterations)} && " : "";
4262Debug.Assert(node.M < int.MaxValue, $"Unexpected M={node.M}");
4282Debug.Assert(node.M < int.MaxValue, $"Unexpected M={node.M}");
4408if (maxIterations == int.MaxValue && !iterationMayBeEmpty)
4425else if (minIterations > 0 && maxIterations == int.MaxValue)
4441else if (maxIterations == int.MaxValue)
5601(0, int.MaxValue) => " any number of times",
5602(1, int.MaxValue) => " at least once",
5603(2, int.MaxValue) => " at least twice",
5604(_, int.MaxValue) => $" at least {node.M} times",
System.Threading (13)
System.Threading.Channels (1)
System.Threading.Tasks.Dataflow (8)
System.Threading.Tasks.Parallel (4)
System.Windows.Controls.Ribbon (4)
System.Xaml (2)
VersioningWebSite (1)
WindowsFormsIntegration (10)