56 references to MinValue
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
892return decimal.ToUInt64(ReadIntegralNumericValue(value, underlyingType, ulong.MinValue, ulong.MaxValue));
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.CodeAnalysis (1)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
214return startConstant.UInt64Value == UInt64.MinValue
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Conversions.cs (4)
4306case SpecialType.System_UInt64: return (ulong.MinValue - 1D) < value && value < (ulong.MaxValue + 1D); 4317maySucceedAtRuntime = (ulong.MinValue - 1D) < value && value < (ulong.MaxValue + 1D); 4336case SpecialType.System_UInt64: return (ulong.MinValue - 1M) < value && value < (ulong.MaxValue + 1M); 4345maySucceedAtRuntime = (ulong.MinValue - 1M) < value && value < (ulong.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1398return (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.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
309return UnmanagedHelper<ulong>.TryCreate(parameterSymbol, attributeData, ulong.MinValue, ulong.MaxValue, out parameter); 361return UnmanagedHelper<ulong>.Validate(parameterSymbol, attributeData, ulong.MinValue, ulong.MaxValue, helper, out diagnostics);
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 },
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\system\NativeUintExtensions.cs (1)
16: unchecked((nuint)(UInt64.MinValue));
System.Data.Common (2)
System\Data\Common\UInt64Storage.cs (2)
12private const ulong DefaultValue = ulong.MinValue; 122ulong max = ulong.MinValue;
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnDecoder.Integer.cs (3)
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 951/// <see cref="ulong.MinValue">UInt64.MinValue</see> and <see cref="ulong.MaxValue">UInt64.MaxValue</see>, inclusive; otherwise
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
113if (-1m - ulong.MinValue <= mantissa && mantissa <= ulong.MaxValue)
System.Private.CoreLib (23)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1816(value <= ulong.MinValue) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1209ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1260ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1256ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1280ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1919(value <= Zero) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
1683(value <= ulong.MinValue) ? ulong.MinValue : 1704(value <= ulong.MinValue) ? unchecked((nuint)ulong.MinValue) : (nuint)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
1964result = ulong.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1188ulong actualResult = (value <= 0) ? ulong.MinValue : (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (5)
563static ulong IMinMaxValue<ulong>.MinValue => MinValue; 855(actualValue <= MinValue) ? MinValue : (ulong)actualValue; 922(actualValue <= MinValue) ? MinValue : (ulong)actualValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (5)
179get => unchecked((nuint)nuint_t.MinValue); 854(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue; 921(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue;
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 (1)
System\Numerics\BigInteger.cs (1)
4935IsNegative(value) ? ulong.MinValue : (ulong)value;
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