77 references to MinValue
BinaryFormatTests (2)
FormatTests\FormattedObject\ListTests.cs (1)
101new List<ulong>() { 1, 2, ulong.MinValue, ulong.MaxValue },
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
44{ (byte)PrimitiveType.UInt64, ulong.MinValue },
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3532private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(ulong.MinValue, ulong.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
903if (value < (decimal)UInt64.MinValue || value > (decimal)UInt64.MaxValue)
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\RenderBatchWriterTest.cs (2)
77new ArrayRange<ulong>(new ulong[] { 123, ulong.MaxValue, ulong.MinValue, 456 }, 3), // Only use first 3 to show that param is respected 853, (ulong)123, ulong.MaxValue, ulong.MinValue, // DisposedEventHandlerIds as length-prefixed array
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
203new object[] {"ulong", "ulong.MinValue", ulong.MinValue, true },
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
PipelineExtensionTests.cs (1)
34[InlineData(ulong.MinValue)]
Microsoft.CodeAnalysis (1)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
214return startConstant.UInt64Value == UInt64.MinValue
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Conversions.cs (4)
3609case SpecialType.System_UInt64: return (ulong.MinValue - 1D) < value && value < (ulong.MaxValue + 1D); 3620maySucceedAtRuntime = (ulong.MinValue - 1D) < value && value < (ulong.MaxValue + 1D); 3639case SpecialType.System_UInt64: return (ulong.MinValue - 1M) < value && value < (ulong.MaxValue + 1M); 3648maySucceedAtRuntime = (ulong.MinValue - 1M) < value && value < (ulong.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1383return (int)ulong.MinValue <= value;
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
114else if (scale == 0 && ulong.MinValue <= value && value <= ulong.MaxValue)
Utilities\ValueSetFactory.ULongTC.cs (2)
18ulong INumericTC<ulong>.MinValue => ulong.MinValue; 51Debug.Assert(value != ulong.MinValue);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenIncrementTests.cs (1)
84TestIncrementCompilationAndOutput<ulong>(ulong.MaxValue, ulong.MinValue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.cs (1)
337CheckLiteralToString(ulong.MinValue, @"0UL");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
80VerifySyntax<LiteralExpressionSyntax>(Generator.LiteralExpression(ulong.MinValue), "0UL");
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.vb (1)
74CheckLiteralToString(ULong.MinValue, "0UL")
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
76VerifySyntax(Of LiteralExpressionSyntax)(Generator.LiteralExpression(ULong.MinValue), "0UL")
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
ObjectSerializationTests.cs (1)
399TestRoundTripValue<UInt64>(UInt64.MinValue);
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
5166var ret = ulong.MinValue; 5399var value = ulong.MinValue; 5422var value = ulong.MinValue;
Microsoft.ML.Data (1)
Transforms\ValueMapping.cs (1)
477ulong keyMax = ulong.MinValue;
Microsoft.ML.Tests (4)
CollectionsDataViewTest.cs (1)
151fuLong = ulong.MinValue + 1,
Transformers\ConvertTests.cs (3)
162AL = new ulong[]{ ulong.MinValue, ulong.MaxValue}, 230AL = new ulong[]{ ulong.MinValue, ulong.MaxValue}, 242ConvL = new float[] { ulong.MinValue, ulong.MaxValue },
System.Data.Common (2)
System\Data\Common\UInt64Storage.cs (2)
12private const ulong DefaultValue = ulong.MinValue; 122ulong max = ulong.MinValue;
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnDecoder.Integer.cs (2)
346/// <see cref="ulong.MinValue">UInt64.MinValue</see> and <see cref="ulong.MaxValue">UInt64.MaxValue</see>, inclusive; otherwise, 721/// <see cref="ulong.MinValue">Int64.MinValue</see> and <see cref="ulong.MaxValue">Int64.MaxValue</see>, inclusive; otherwise
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
117if (-1m - ulong.MinValue <= mantissa && mantissa <= ulong.MaxValue)
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
1431(value <= ulong.MinValue) ? ulong.MinValue : 1447(value <= ulong.MinValue) ? unchecked((nuint)ulong.MinValue) : (nuint)value;
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2133(value <= Zero) ? ulong.MinValue :
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1836(value <= ulong.MinValue) ? ulong.MinValue : (ulong)value;
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1212ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1254ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1250ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1246ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
1756(value <= ulong.MinValue) ? ulong.MinValue : 1777(value <= ulong.MinValue) ? unchecked((nuint)ulong.MinValue) : (nuint)value;
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1175ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\libraries\System.Private.CoreLib\src\System\Single.cs (4)
1450(value <= ulong.MinValue) ? ulong.MinValue : 1466(value <= ulong.MinValue) ? unchecked((nuint)ulong.MinValue) : (nuint)value;
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (5)
548static ulong IMinMaxValue<ulong>.MinValue => MinValue; 840(actualValue <= MinValue) ? MinValue : (ulong)actualValue; 907(actualValue <= MinValue) ? MinValue : (ulong)actualValue;
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (5)
175get => unchecked((nuint)nuint_t.MinValue); 843(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue; 910(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue;
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
76new List<ulong> { ulong.MinValue, ulong.MaxValue }, 96new ulong[] { ulong.MinValue, ulong.MaxValue },
System\Value\StoringUlong.cs (1)
12{ ulong.MinValue }
System.Private.Xml (2)
System\Xml\Schema\DataTypeImplementation.cs (1)
3462private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(ulong.MinValue, ulong.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
818if (value < (decimal)ulong.MinValue || value > (decimal)ulong.MaxValue)
System.Runtime.Numerics (5)
System\Numerics\BigInteger.cs (1)
4824IsNegative(value) ? ulong.MinValue : (ulong)value;
System\Numerics\Complex.cs (4)
1928(value.m_real <= ulong.MinValue) ? ulong.MinValue : (ulong)value.m_real; 2064(value.m_real <= ulong.MinValue) ? ulong.MinValue : (ulong)value.m_real;
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
548/// is written in scientific notation) or, it represents a number less than <see cref="ulong.MinValue"/> or greater