290 references to MaxValue
Aspire.Cli.Tests (1)
Agents\AspireSkillsInstallerTests.cs (1)
562long.MaxValue.ToString(System.Globalization.CultureInfo.InvariantCulture));
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
765string.IsNullOrEmpty(parentSpanId) ? long.MaxValue - receivedTimestampTicks : -startTimeTicks;
Aspire.Dashboard.Components.Tests (1)
Controls\PlotlyChartTests.cs (1)
82TimeUnixNano = long.MaxValue
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (3)
244TimeUnixNano = long.MaxValue 275TimeUnixNano = long.MaxValue 427TimeUnixNano = long.MaxValue
Aspire.Hosting.Kubernetes (2)
KubernetesManifestResource.cs (2)
194if (decimal.Truncate(value) == value && value >= long.MinValue && value <= long.MaxValue) 206throw new ArgumentException($"Whole-number manifest field values must be between {long.MinValue} and {long.MaxValue}.", nameof(value));
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
872return decimal.ToInt64(ReadIntegralNumericValue(value, underlyingType, long.MinValue, long.MaxValue));
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (1)
44internal static readonly ulong x_llMax = Int64.MaxValue; // Max of Int64
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3267private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(long.MinValue, long.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
895if (value < (decimal)Int64.MinValue || value > (decimal)Int64.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (1)
367if (ticks == (ulong)Int64.MaxValue + 1)
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
291if (value <= long.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (2)
529if (value <= Int64.MaxValue) 781if (f >= long.MinValue && f <= long.MaxValue && (l = (long)f) == f)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (2)
581if (value > long.MaxValue / 10) 584if (value > long.MaxValue - digit)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Ticks.cs (4)
43if (firstTicks == long.MaxValue || firstTicks == long.MinValue) 47if (secondTicks == long.MaxValue || secondTicks == long.MinValue) 51if (firstTicks >= 0 && long.MaxValue - firstTicks <= secondTicks) 53return long.MaxValue - 1;
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
70{ long.MaxValue, nameof(long.MaxValue) },
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
715_ => long.MaxValue
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteJSRuntime.cs (1)
46_maximumIncomingBytes = componentHubOptions.Value.MaximumReceiveMessageSize ?? long.MaxValue;
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
1330> long.MaxValue => 9,
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Internal\Http2\Http2KeepAlive.cs (2)
38_keepAliveTimeout = keepAliveTimeout == TimeSpan.MaxValue ? long.MaxValue 78if (_keepAliveTimeout != long.MaxValue)
Internal\Http3\Http3Connection.cs (2)
270stream.StreamTimeoutTimestamp = expiration >= 0 ? expiration : long.MaxValue; 290stream.StreamTimeoutTimestamp = expiration >= 0 ? expiration : long.MaxValue;
Internal\Infrastructure\ResourceCounter.cs (1)
45while (count < _max && count != long.MaxValue)
Internal\Infrastructure\TimeExtensions.cs (1)
19return long.MaxValue;
Internal\Infrastructure\TimeoutControl.cs (6)
17private long _timeoutTimestamp = long.MaxValue; 80if (Interlocked.Read(ref _timeoutTimestamp) != long.MaxValue) 169Debug.Assert(_timeoutTimestamp == long.MaxValue, "Concurrent timeouts are not supported."); 181Interlocked.Exchange(ref _timeoutTimestamp, long.MaxValue); 318if (_timeoutTimestamp != long.MaxValue) 340gracePeriod = gracePeriod >= 0 ? gracePeriod : long.MaxValue;
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (6)
TlsEventPump.cs (6)
149? long.MaxValue 422if (_handshakeTimeoutMs != long.MaxValue && _handshaking.Count > 0) 1087=> _handshakeTimeoutMs == long.MaxValue ? long.MaxValue : nowTimestamp + _handshakeTimeoutMs; 1092=> _handshakeTimeoutMs != long.MaxValue && handshakingCount > 0 ? HandshakeSweepPollTimeoutMs : IdlePollTimeoutMs; 1114if (deadline != long.MaxValue && deadline <= nowTimestamp)
Microsoft.Build (5)
BackEnd\Components\Scheduler\Scheduler.cs (1)
1135long sizeOfSmallestSourceFile = long.MaxValue;
Evaluation\Expander\ArgumentParser.cs (1)
218if (d >= long.MinValue && d <= long.MaxValue)
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (3)
19private long _maxAllowedPosition = long.MaxValue; 58set { _maxAllowedPosition = value.HasValue ? _position + value.Value : long.MaxValue; } 63_maxAllowedPosition == long.MaxValue ? 0 : (int)(_maxAllowedPosition - _position);
Microsoft.CodeAnalysis (2)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
210&& endConstant.Int64Value == Int64.MaxValue;
EnumConstantHelper.cs (1)
93overflowKind = CheckOverflow(long.MaxValue, previous, offset);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
70{ long.MaxValue, nameof(long.MaxValue) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
70{ long.MaxValue, nameof(long.MaxValue) },
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Conversions.cs (4)
4311case SpecialType.System_Int64: return (long.MinValue - 1D) <= value && value < (long.MaxValue + 1D); 4314maySucceedAtRuntime = (long.MinValue - 1D) < value && value < (long.MaxValue + 1D); 4340case SpecialType.System_Int64: return (long.MinValue - 1M) < value && value < (long.MaxValue + 1M); 4342maySucceedAtRuntime = (long.MinValue - 1M) < value && value < (long.MaxValue + 1M);
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
108else if (scale == 0 && long.MinValue <= value && value <= long.MaxValue)
Parser\Lexer.cs (2)
1085else if (val <= Int64.MaxValue) 1117if (val <= Int64.MaxValue)
Utilities\ValueSetFactory.LongTC.cs (2)
20long INumericTC<long>.MaxValue => long.MaxValue; 45Debug.Assert(value != long.MaxValue);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
168var isOutOfRange = d is < long.MinValue or > long.MaxValue;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
168var isOutOfRange = d is < long.MinValue or > long.MaxValue;
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
317return UnmanagedHelper<long>.TryCreate(parameterSymbol, attributeData, long.MinValue, long.MaxValue, out parameter); 369return UnmanagedHelper<long>.Validate(parameterSymbol, attributeData, long.MinValue, long.MaxValue, helper, out diagnostics);
Microsoft.CodeAnalysis.VisualBasic (1)
Scanner\Scanner.vb (1)
2019If TypeCharacter <> TypeCharacter.ULongLiteral AndAlso integralValue > Long.MaxValue Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
241Dim valueIsOutOfRange = d <= Long.MinValue OrElse d > Long.MaxValue 259Dim valueIsOutOfRange = d > Long.MaxValue
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
241Dim valueIsOutOfRange = d <= Long.MinValue OrElse d > Long.MaxValue 259Dim valueIsOutOfRange = d > Long.MaxValue
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
70{ long.MaxValue, nameof(long.MaxValue) },
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
1539if (value <= long.MaxValue)
Microsoft.Data.Analysis (4)
IDataView.Extension.cs (1)
49maxRows = maxRows == -1 ? long.MaxValue : maxRows;
PrimitiveDataFrameColumnComputations.cs (3)
3282var ret = long.MaxValue; 3499var value = long.MaxValue; 3522var value = long.MaxValue;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Windows\WindowsSnapshotProviderTests.cs (1)
171Assert.InRange(usage, 0, long.MaxValue);
Microsoft.Gen.Logging.Generated.Tests (1)
parent\TestClasses\LogPropertiesExtensions.cs (1)
96public long LongProperty { get; set; } = long.MaxValue;
Microsoft.Maui.Controls (2)
Tweener.cs (2)
62 _ = _step.Invoke(long.MaxValue); 114 if (step == long.MaxValue)
Microsoft.ML.Core (5)
Data\DataKind.cs (2)
183return long.MaxValue; 210return long.MaxValue;
Utilities\DoubleParser.cs (1)
704const long eMax = long.MaxValue / 100;
Utilities\OrderedWaiter.cs (2)
108if (_currCleared < long.MaxValue) 124_currCleared = long.MaxValue;
Microsoft.ML.Core.Tests (1)
UnitTests\DataTypes.cs (1)
200var maxValue = long.MaxValue;
Microsoft.ML.Data (10)
Data\Conversion.cs (3)
1277TryParseSigned(I8.MaxValue, in src, out long? res); 1367Contracts.Assert(0 <= result && result <= long.MaxValue); 1477TryParseSigned(I8.MaxValue, in src, out long? res);
DataLoadSave\Binary\BinaryLoader.cs (1)
349ch.CheckDecode(ublockSize <= long.MaxValue, "Metadata block size out of range");
DataLoadSave\Binary\CodecFactory.cs (1)
164Contracts.CheckDecode(ulen <= long.MaxValue, "Codec type definition read from stream too large");
DataLoadSave\Text\TextLoader.cs (1)
1197_maxRows = options.MaxRows ?? long.MaxValue;
DataLoadSave\Text\TextLoaderCursor.cs (1)
350_batch = long.MaxValue;
DataView\CacheDataView.cs (1)
234_cacheDefaultWaiter.Wait(long.MaxValue);
Transforms\SkipTakeFilter.cs (2)
53internal const long DefaultTake = long.MaxValue; 269if (1 > long.MaxValue - _skip)
Microsoft.ML.FastTree (2)
Dataset\IntArray.cs (2)
327long segBits = long.MaxValue; 340rleBits = long.MaxValue;
Microsoft.ML.SearchSpace.Tests (2)
ParameterTest.cs (2)
80parameter = Parameter.FromLong(long.MaxValue); 81parameter.AsType<long>().Should().Be(long.MaxValue);
Microsoft.ML.Tests (8)
CollectionsDataViewTest.cs (2)
120fLong = long.MaxValue - 1, 135fLong = long.MaxValue,
TextLoaderTests.cs (2)
36string.Format("{0},{1},{2},{3}", sbyte.MaxValue, short.MaxValue, int.MaxValue, long.MaxValue), 57long[] longTargets = new long[] { long.MinValue, long.MaxValue, default };
Transformers\ConvertTests.cs (3)
161AK = new long[]{ long.MinValue, long.MaxValue}, 229AK = new long[]{ long.MinValue, long.MaxValue}, 241ConvK = new float[] { long.MinValue, long.MaxValue },
Transformers\HashTests.cs (1)
265if (value <= long.MaxValue)
Microsoft.ML.Transforms (5)
Expression\BuiltinFunctions.cs (3)
1054return neg ? I8.MinValue : I8.MaxValue; 1068return neg ? I8.MinValue : I8.MaxValue; 1090return neg ? I8.MinValue : I8.MaxValue;
Expression\Node.cs (1)
787else if (uu <= I8.MaxValue || ilt.IsHex && !uns)
UngroupTransform.cs (1)
158if (srcRowCount.HasValue && srcRowCount.Value <= (long.MaxValue / commonSize))
Microsoft.NET.HostModel (1)
MachO\MachObjectFile.cs (1)
362lowestSectionOffset = long.MaxValue;
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\system\NativeIntExtensions.cs (1)
21: unchecked((nint)(Int64.MaxValue));
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (1)
3037If DecimalResult < Int64.MinValue OrElse DecimalResult > Int64.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (1)
3786If result > Int64.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
195Val = Int64.MaxValue + Val + 1
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
796if (index == Int64.MaxValue) 810if (index < Int64.MaxValue)
PresentationCore (2)
MS\Internal\IO\Packaging\NetStream.cs (1)
1058&& (_highWaterMark <= Int64.MaxValue - (long) _additionalRequestThreshold) // Ensure that we don't get overflow from the next line
System\Windows\Media\Animation\TimeIntervalCollection.cs (1)
886periodInTicks = Int64.MaxValue / 2;
PresentationFramework (3)
System\Windows\Documents\Speller.cs (1)
1473ScanRange(start, end, Int64.MaxValue /* timeLimit */);
System\Windows\Markup\BamlRecordReader.cs (1)
250bamlRecord = ReadNextRecordWithDebugExtension(Int64.MaxValue, recordType);
System\Windows\TriggerBase.cs (1)
356if( _nextGlobalLayerRank == Int64.MaxValue )
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
70{ long.MaxValue, nameof(long.MaxValue) },
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
168var isOutOfRange = d is < long.MinValue or > long.MaxValue;
Roslyn.Diagnostics.VisualBasic.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
241Dim valueIsOutOfRange = d <= Long.MinValue OrElse d > Long.MaxValue 259Dim valueIsOutOfRange = d > Long.MaxValue
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
123LongValue = long.MaxValue, 165LongValue = long.MaxValue,
System.Configuration.ConfigurationManager (1)
System\Configuration\LongValidatorAttribute.cs (1)
9private long _max = long.MaxValue;
System.Data.Common (10)
System\Data\Common\Int64Storage.cs (1)
105long min = long.MaxValue;
System\Data\Common\TimeSpanStorage.cs (2)
130if (stDev > long.MaxValue) 132stDev = long.MaxValue;
System\Data\SQLTypes\SQLDecimal.cs (1)
61internal const ulong s_llMax = long.MaxValue; // Max of Int64
System\Data\SQLTypes\SQLInt64.cs (5)
166if (lPartialResult < 0 || lPartialResult > long.MaxValue) 173if (lPartialResult < 0 || lPartialResult > long.MaxValue) 270if (value > long.MaxValue || value < long.MinValue) 283if (value > long.MaxValue || value < long.MinValue) 601public static readonly SqlInt64 MaxValue = new SqlInt64(long.MaxValue);
System\Data\SQLTypes\SQLMoney.cs (1)
90if (fPositive && ulValue > long.MaxValue ||
System.Data.Odbc (2)
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\TimeoutTimer.cs (2)
129return (_isInfiniteTimeout) ? long.MaxValue : _timerExpire; 149milliseconds = long.MaxValue;
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\DsesSamplerBuilder.cs (2)
17? long.MaxValue 18: (long)(ratio * long.MaxValue);
System.Diagnostics.Process (4)
System\Diagnostics\Process.Linux.cs (2)
182if (rsslim > long.MaxValue) 183rsslim = long.MaxValue;
System\Diagnostics\Process.Multiplexing.Unix.cs (2)
54long deadline = timeoutMs >= 0 ? Environment.TickCount64 + timeoutMs : long.MaxValue; 285: long.MaxValue;
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnDecoder.Integer.cs (3)
287/// <see cref="long.MinValue">Int64.MinValue</see> and <see cref="long.MaxValue">Int64.MaxValue</see>, inclusive; otherwise, 682/// <see cref="long.MinValue">Int64.MinValue</see> and <see cref="long.MaxValue">Int64.MaxValue</see>, inclusive; otherwise 912/// <see cref="long.MinValue">Int64.MinValue</see> and <see cref="long.MaxValue">Int64.MaxValue</see>, inclusive; otherwise
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
293Debug.Assert(firstIdentifier > long.MaxValue);
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (1)
32ulong unsignedRepresentation = (value == long.MinValue) ? (ulong)long.MaxValue : (ulong)(-value) - 1;
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
36ArgumentOutOfRangeException.ThrowIfGreaterThan(startPosition, long.MaxValue - maxLength);
System.IO.Compression (12)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
36ArgumentOutOfRangeException.ThrowIfGreaterThan(startPosition, long.MaxValue - maxLength);
System\IO\Compression\DeflateEncoder.cs (1)
158if (maxCompressedLength > long.MaxValue)
System\IO\Compression\GZipEncoder.cs (1)
86if (maxCompressedLength > long.MaxValue - 12)
System\IO\Compression\ZipArchive.cs (6)
201_firstDeletedEntryOffset = long.MaxValue; 465if (_firstDeletedEntryOffset != long.MaxValue) 776if (locator == null || locator.OffsetOfZip64EOCD > long.MaxValue) 795if (record.NumberOfEntriesTotal > long.MaxValue) 800if (record.OffsetOfCentralDirectory > long.MaxValue) 885if (startingOffset == long.MaxValue)
System\IO\Compression\ZipArchiveEntry.cs (2)
2543long xOffset = x != null && !x.OriginallyInArchive ? long.MaxValue : x?.OffsetOfLocalHeader ?? long.MinValue; 2544long yOffset = y != null && !y.OriginallyInArchive ? long.MaxValue : y?.OffsetOfLocalHeader ?? long.MinValue;
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
301if (result > long.MaxValue)
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
426return long.MaxValue; 434return long.MaxValue;
System.Linq (1)
System\Linq\Sequence.cs (1)
92if (typeof(T) == typeof(long) && (range = TryUseRange<Int128>(start, endInclusive, step, long.MaxValue)) is not null) return range;
System.Linq.AsyncEnumerable (6)
System\Linq\AverageAsync.cs (4)
18/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception> 53/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception> 187/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception> 219/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception>
System\Linq\SumAsync.cs (2)
44/// <exception cref="OverflowException">The sum is larger than <see cref="long.MaxValue"/>.</exception> 174/// <exception cref="OverflowException">The sum is larger than <see cref="long.MaxValue"/>.</exception>
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\ILGen.cs (1)
1017if (value <= long.MaxValue)
System.Linq.Parallel (7)
System\Linq\ParallelEnumerable.cs (7)
1912/// The number of elements in source is larger than <see cref="long.MaxValue"/>. 1950/// The number of elements in source is larger than <see cref="long.MaxValue"/>. 2025/// The sum is larger than <see cref="long.MaxValue"/>. 2048/// The sum is larger than <see cref="long.MaxValue"/>. 2251/// The sum is larger than <see cref="long.MaxValue"/>. 2275/// The sum is larger than <see cref="long.MaxValue"/>. 3789/// The sum or count of the elements in the sequence is larger than <see cref="long.MaxValue"/>.
System.Management (1)
System\Management\ManagementObjectCollection.cs (1)
529int timeout = (collectionObject.options.Timeout.Ticks == long.MaxValue) ?
System.Memory (2)
System\Buffers\ReadOnlySequence.Helpers.cs (2)
601Debug.Assert(start <= long.MaxValue); 602Debug.Assert(end <= long.MaxValue);
System.Net.Http (5)
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
12private const long DeltaNotSetTicksSentinel = long.MaxValue;
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (1)
271long prevRtt = _minRtt == 0 ? long.MaxValue : _minRtt;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
121_firstRejectedStreamId = long.MaxValue; 395_firstRejectedStreamId = long.MaxValue;
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
111long oldestFailedProxyTicks = long.MaxValue;
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\StringParsingHelpers.Statistics.cs (1)
458return (long)Math.Min(long.MaxValue, ulong.Parse(value, CultureInfo.InvariantCulture));
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
178PingTimeoutTimestamp = long.MaxValue;
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (3)
82Vector128<ulong> sign = x.AsUInt64() & Vector128.Create(~(ulong)long.MaxValue); 107Vector256<ulong> sign = x.AsUInt64() & Vector256.Create(~(ulong)long.MaxValue); 132Vector512<ulong> sign = x.AsUInt64() & Vector512.Create(~(ulong)long.MaxValue);
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (3)
87Vector128<ulong> sign = x.AsUInt64() & Vector128.Create(~(ulong)long.MaxValue); 109Vector256<ulong> sign = x.AsUInt64() & Vector256.Create(~(ulong)long.MaxValue); 131Vector512<ulong> sign = x.AsUInt64() & Vector512.Create(~(ulong)long.MaxValue);
System.Private.CoreLib (43)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomain.Unix.cs (2)
16if (userTime100Nanoseconds > long.MaxValue) 18userTime100Nanoseconds = long.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.N.cs (2)
338if (((ulong)answer) > long.MaxValue / 10) 345if ((ulong)answer > (ulong)(long.MaxValue + (-1 * sign + 1) / 2))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.cs (2)
124const long MaxMilliSeconds = long.MaxValue / TimeSpan.TicksPerMillisecond; 165if (ticksWithoutFraction > long.MaxValue - fraction)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1738long actualResult = (value >= long.MaxValue) ? long.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
177if (timeStamp == long.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (2)
90ulong userTime100Nanoseconds = Math.Min(cpuInfo.lastRecordedUserTime / 100, (ulong)long.MaxValue); 91ulong kernelTime100Nanoseconds = Math.Min(cpuInfo.lastRecordedKernelTime / 100, (ulong)long.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
607const long MaxMilliSeconds = long.MaxValue / TimeSpan.TicksPerMillisecond;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
615static long IMinMaxValue<long>.MaxValue => MaxValue; 1018result = (actualValue >= MaxValue) ? MaxValue : 1473static long IBinaryIntegerParseAndFormatInfo<long>.MaxValueDiv10 => MaxValue / 10;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (5)
176get => unchecked((nint)nint_t.MaxValue); 1041result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1048result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1861long actualResult = ((float)value >= long.MaxValue) ? long.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.CompatImpl.cs (2)
55if (result != long.MaxValue) 176if (result != long.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (4)
105/// <returns>A 64-bit signed integer that is greater than or equal to 0 and less than <see cref="long.MaxValue"/>.</returns> 109AssertInRange(result, 0, long.MaxValue); 325if (maxExclusiveUlong <= (ulong)long.MaxValue && 803AssertInRange(result, 0, long.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
113if (result != long.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (1)
335long qpcDiff = long.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1634long actualResult = (value >= long.MaxValue) ? long.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
386result = (result < 0) ? long.MaxValue : long.MinValue; 1876result = (result < 0) ? long.MaxValue : long.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\TimeoutHelper.cs (1)
26if (elapsedMilliseconds > long.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
208internal const long MaxTicks = long.MaxValue; // +9,223,372,036,854,775,807
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1915long actualResult = (value >= new UInt128(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? long.MaxValue : (long)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
1069long actualResult = (value >= long.MaxValue) ? long.MaxValue : (long)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
1068long actualResult = (value >= long.MaxValue) ? long.MaxValue : (long)value;
System\GC.NativeAot.cs (1)
566newMemValue = long.MaxValue;
System.Private.DataContractSerialization (4)
System\Xml\ValueHandle.cs (1)
276if (value <= long.MaxValue)
System\Xml\XmlBinaryWriter.cs (1)
502if (value <= long.MaxValue)
System\Xml\XmlConverter.cs (2)
545if (value > long.MaxValue / 10) 548if (value > long.MaxValue - digit)
System.Private.Xml (4)
System\Xml\BinaryXml\SqlUtils.cs (1)
38internal const ulong x_llMax = long.MaxValue; // Max of Int64
System\Xml\Schema\DataTypeImplementation.cs (1)
3205private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(long.MinValue, long.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
810if (value < (decimal)long.MinValue || value > (decimal)long.MaxValue)
System\Xml\Schema\XsdDuration.cs (1)
307if (ticks == (ulong)long.MaxValue + 1)
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
47/// Using <see langword="nint"/> would allow values up to <see cref="long.MaxValue"/> to be stored 4860long actualResult = (value >= long.MaxValue) ? long.MaxValue :
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
36ulong unsignedRepresentation = (value == long.MinValue) ? (ulong)long.MaxValue : (ulong)(-value) - 1; 149if (cborNegativeIntRepresentation > long.MaxValue)
System.ServiceModel.NetTcp.Tests (2)
ServiceModel\NetTcpBindingTest.cs (2)
44[InlineData(Int64.MaxValue)] 73[InlineData(Int64.MaxValue)]
System.ServiceModel.Primitives (8)
Internals\System\Runtime\IOThreadTimer.cs (1)
282timerGroup.WaitableTimer.Set(long.MaxValue);
Internals\System\Runtime\Ticks.cs (4)
44if (firstTicks == long.MaxValue || firstTicks == long.MinValue) 48if (secondTicks == long.MaxValue || secondTicks == long.MinValue) 52if (firstTicks >= 0 && long.MaxValue - firstTicks <= secondTicks) 54return long.MaxValue - 1;
System\ServiceModel\Channels\TransmissionStrategy.cs (2)
726if (_windowStart + _window.Count + _waitQueue.Count == long.MaxValue) 813public const long MaxMeanRtt = long.MaxValue / 3;
System\ServiceModel\Channels\WsrmFault.cs (1)
587writer.WriteValue(Int64.MaxValue);
System.ServiceModel.UnixDomainSocket.Tests (2)
ServiceModel\UnixDomainSocketBindingTest.cs (2)
45[InlineData(Int64.MaxValue)] 74[InlineData(Int64.MaxValue)]
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
445/// than <see cref="long.MaxValue"/>.
System.Threading.RateLimiting (3)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
30long lowestAvailablePermits = long.MaxValue;
System\Threading\RateLimiting\ChainedRateLimiterShared.cs (1)
18long lowestAvailablePermits = long.MaxValue;
System\Threading\RateLimiting\NoopLimiter.cs (1)
23CurrentAvailablePermits = long.MaxValue,
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlockOptions.cs (1)
445get { return (_maxNumberOfGroups == Unbounded) ? long.MaxValue : _maxNumberOfGroups; }
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\TaskReplicator.cs (2)
138long timeout = long.MaxValue - 1; 150new Replica<TState>(replicator, maxConcurrencyLevel, timeout: long.MaxValue, action).Start();
System.Transactions.Local (6)
System\Transactions\InternalTransaction.cs (2)
256_absoluteTimeout = long.MaxValue; 274_absoluteTimeout = long.MaxValue;
System\Transactions\TransactionState.cs (1)
2163if (tx.AbsoluteTimeout == long.MaxValue)
System\Transactions\TransactionTable.cs (3)
162_headBucketSet = new BucketSet(this, long.MaxValue); 192return long.MaxValue; 233if (txNew.AbsoluteTimeout != long.MaxValue)
System.Windows.Forms (1)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
780maxDigits = (int)Math.Floor(Math.Log(long.MaxValue, baseSize));
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (1)
753timeDelta = Int64.MaxValue;