103 references to MinValue
Microsoft.AspNetCore.Components.Tests (1)
Routing\RouteTableFactoryTests.cs (1)
383new object[] { "/{value:long}", $"/-9223372036854775808", long.MinValue },
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
199new object[] {"long", "long.MinValue", long.MinValue, true },
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
276{ long.MinValue, int.MinValue },
Microsoft.AspNetCore.Routing.Tests (1)
Constraints\RangeRouteConstraintTests.cs (1)
12[InlineData(long.MinValue, long.MaxValue, 2, true)]
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ResponseBody.cs (2)
17private long _leftToWrite = long.MinValue; 469if (_leftToWrite == long.MinValue)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\ConnectionManager.cs (1)
12private long _lastConnectionId = long.MinValue;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
HttpHeadersTests.cs (1)
296Assert.Throws<ArgumentOutOfRangeException>(() => httpHeaders.ContentLength = long.MinValue);
KestrelServerLimitsTests.cs (4)
20[InlineData(long.MinValue)] 230[InlineData(long.MinValue)] 255[InlineData(long.MinValue)] 286[InlineData(long.MinValue)]
ResourceCounterTests.cs (1)
15[InlineData(long.MinValue)]
Microsoft.AspNetCore.SignalR.Client.Core (6)
src\SignalR\common\Shared\MessageBuffer.cs (6)
47private long _latestReceivedSequenceId = long.MinValue; 48private long _lastAckedId = long.MinValue; 317private long _startingSequenceId = long.MinValue; 413_startingSequenceId = long.MinValue; 462return (null, long.MinValue); 472return (null, long.MinValue);
Microsoft.AspNetCore.SignalR.Core (6)
src\SignalR\common\Shared\MessageBuffer.cs (6)
47private long _latestReceivedSequenceId = long.MinValue; 48private long _lastAckedId = long.MinValue; 317private long _startingSequenceId = long.MinValue; 413_startingSequenceId = long.MinValue; 462return (null, long.MinValue); 472return (null, long.MinValue);
Microsoft.Build (1)
Evaluation\Expander.cs (1)
4677if (d >= long.MinValue && d <= long.MaxValue)
Microsoft.Build.Engine.UnitTests (6)
Evaluation\ExpanderFunction_Tests.cs (1)
150const long expected = long.MinValue;
Evaluation\IntrinsicFunctionOverload_Tests.cs (5)
82string expected = ((long.MinValue - 1D) + 1).ToString(); 173string expected = ((long.MinValue - 1D) - 1).ToString(); 264string expected = ((long.MinValue - 1D) * 1).ToString(); 355string expected = ((long.MinValue - 1D) / 1).ToString(); 446string expected = ((long.MinValue - 1D) % 1).ToString();
Microsoft.Net.Http.Headers.Tests (2)
HeaderUtilitiesTest.cs (2)
112[InlineData(long.MinValue)] 124[InlineData(long.MinValue)]
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (1)
3037If DecimalResult < Int64.MinValue OrElse DecimalResult > Int64.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (3)
1099If operand = Int64.MinValue Then 1100Return -CDec(Int64.MinValue) 4625If left = Int64.MinValue AndAlso right = -1 Then
SocialWeather (1)
Pipe\PipeWeatherStreamFormatter.cs (1)
22var reportTime = long.MinValue;
System.Data.Common (8)
System\Data\Common\Int64Storage.cs (1)
122long max = long.MinValue;
System\Data\SQLTypes\SQLDecimal.cs (1)
566if (value != long.MinValue)
System\Data\SQLTypes\SQLInt64.cs (5)
194if ((x.m_value == long.MinValue) && (y.m_value == -1)) 210if ((x.m_value == long.MinValue) && (y.m_value == -1)) 270if (value > long.MaxValue || value < long.MinValue) 283if (value > long.MaxValue || value < long.MinValue) 600public static readonly SqlInt64 MinValue = new SqlInt64(long.MinValue);
System\Data\SQLTypes\SQLMoney.cs (1)
91!fPositive && ulValue > unchecked((ulong)(long.MinValue)))
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnDecoder.Integer.cs (2)
287/// <see cref="long.MinValue"/> and <see cref="long.MaxValue"/>, inclusive; otherwise, 682/// <see cref="long.MinValue"/> and <see cref="long.MaxValue"/>, inclusive; otherwise
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (1)
32ulong unsignedRepresentation = (value == long.MinValue) ? (ulong)long.MaxValue : (ulong)(-value) - 1;
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\ILGen.cs (1)
1015if (long.MinValue <= value)
System.Private.CoreLib (39)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.cs (2)
137const long MinMilliSeconds = long.MinValue / TimeSpan.TicksPerMillisecond; 160if (ticksWithoutFraction < long.MinValue + fraction)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1774(value <= long.MinValue) ? long.MinValue : (long)value;
src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
1200if (value < 0 && (value != long.MinValue || !pdecIn.IsNegative))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
128internal const long NullOffset = long.MinValue;
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
127Debug.Assert(ticks == long.MinValue /* -9223372036854775808 */);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
608const long MinMilliSeconds = long.MinValue / TimeSpan.TicksPerMillisecond;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (13)
627static long IMinMaxValue<long>.MinValue => MinValue; 1007(actualValue <= MinValue) ? MinValue : (long)actualValue; 1014(actualValue == Half.NegativeInfinity) ? MinValue : (long)actualValue; 1033(actualValue <= MinValue) ? MinValue : (long)actualValue; 1052(actualValue <= MinValue) ? MinValue : (long)actualValue; 1083(actualValue <= MinValue) ? MinValue : (long)actualValue; 1090(actualValue == Half.NegativeInfinity) ? MinValue : (long)actualValue; 1127(actualValue <= MinValue) ? MinValue : (long)actualValue;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (15)
179get => unchecked((nint)nint_t.MinValue); 1018(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1025(actualValue == Half.NegativeInfinity) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1044(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1051(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1064(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1095(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1102(actualValue == Half.NegativeInfinity) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1139(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1709(value <= long.MinValue) ? long.MinValue : (long)value;
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
85internal const long MinTicks = long.MinValue; // -9,223,372,036,854,775,808
System.Private.DataContractSerialization (2)
System\Xml\XmlConverter.cs (2)
530if (value < long.MinValue / 10) 533if (value < long.MinValue + digit)
System.Private.Xml (3)
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)
309result = new TimeSpan(long.MinValue);
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
4708(value <= long.MinValue) ? long.MinValue : (long)value;
System\Numerics\Complex.cs (4)
1903(value.m_real <= long.MinValue) ? long.MinValue : (long)value.m_real; 2039(value.m_real <= long.MinValue) ? long.MinValue : (long)value.m_real;
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHelpers.cs (1)
33ulong unsignedRepresentation = (value == long.MinValue) ? (ulong)long.MaxValue : (ulong)(-value) - 1;
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
444/// is written in scientific notation) or, it represents a number less than <see cref="long.MinValue"/> or greater