56 references to MinValue
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
892
return decimal.ToUInt64(ReadIntegralNumericValue(value, underlyingType, ulong.
MinValue
, ulong.MaxValue));
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3532
private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(ulong.
MinValue
, ulong.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
903
if (value < (decimal)UInt64.
MinValue
|| value > (decimal)UInt64.MaxValue)
Microsoft.CodeAnalysis (1)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
214
return startConstant.UInt64Value == UInt64.
MinValue
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Conversions.cs (4)
4306
case SpecialType.System_UInt64: return (ulong.
MinValue
- 1D) < value && value < (ulong.MaxValue + 1D);
4317
maySucceedAtRuntime = (ulong.
MinValue
- 1D) < value && value < (ulong.MaxValue + 1D);
4336
case SpecialType.System_UInt64: return (ulong.
MinValue
- 1M) < value && value < (ulong.MaxValue + 1M);
4345
maySucceedAtRuntime = (ulong.
MinValue
- 1M) < value && value < (ulong.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1398
return (int)ulong.
MinValue
<= value;
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
114
else if (scale == 0 && ulong.
MinValue
<= value && value <= ulong.MaxValue)
Utilities\ValueSetFactory.ULongTC.cs (2)
18
ulong INumericTC<ulong>.MinValue => ulong.
MinValue
;
51
Debug.Assert(value != ulong.
MinValue
);
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
309
return UnmanagedHelper<ulong>.TryCreate(parameterSymbol, attributeData, ulong.
MinValue
, ulong.MaxValue, out parameter);
361
return UnmanagedHelper<ulong>.Validate(parameterSymbol, attributeData, ulong.
MinValue
, ulong.MaxValue, helper, out diagnostics);
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
5166
var ret = ulong.
MinValue
;
5399
var value = ulong.
MinValue
;
5422
var value = ulong.
MinValue
;
Microsoft.ML.Data (1)
Transforms\ValueMapping.cs (1)
477
ulong keyMax = ulong.
MinValue
;
Microsoft.ML.Tests (4)
CollectionsDataViewTest.cs (1)
151
fuLong = ulong.
MinValue
+ 1,
Transformers\ConvertTests.cs (3)
162
AL = new ulong[]{ ulong.
MinValue
, ulong.MaxValue},
230
AL = new ulong[]{ ulong.
MinValue
, ulong.MaxValue},
242
ConvL = 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)
12
private const ulong DefaultValue = ulong.
MinValue
;
122
ulong 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)
113
if (-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)
1209
ulong actualResult = (value <= 0) ? ulong.
MinValue
: (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1260
ulong actualResult = (value <= 0) ? ulong.
MinValue
: (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1256
ulong actualResult = (value <= 0) ? ulong.
MinValue
: (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1280
ulong 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)
1964
result = ulong.
MinValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1188
ulong actualResult = (value <= 0) ? ulong.
MinValue
: (ulong)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (5)
563
static 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)
179
get => 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)
3462
private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(ulong.
MinValue
, ulong.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
818
if (value < (decimal)ulong.
MinValue
|| value > (decimal)ulong.MaxValue)
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4935
IsNegative(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