180 references to MaxValue
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)
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
75{ ulong.MaxValue, nameof(ulong.MaxValue) },
Microsoft.Build (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
Microsoft.CodeAnalysis (3)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
215&& endConstant.UInt64Value == UInt64.MaxValue;
EnumConstantHelper.cs (1)
103overflowKind = CheckOverflow(ulong.MaxValue, previous, offset);
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
75{ ulong.MaxValue, nameof(ulong.MaxValue) },
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
75{ ulong.MaxValue, nameof(ulong.MaxValue) },
Microsoft.CodeAnalysis.CSharp (7)
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);
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
114else if (scale == 0 && ulong.MinValue <= value && value <= ulong.MaxValue)
Utilities\ValueSetFactory.ULongTC.cs (2)
20ulong INumericTC<ulong>.MaxValue => ulong.MaxValue; 45Debug.Assert(value != ulong.MaxValue);
Microsoft.CodeAnalysis.CSharp.Features (1)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
99SpecialType.System_UInt64 => IsUnsignedBoundary(startValue, endValue, ulong.MaxValue),
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
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.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
75{ ulong.MaxValue, nameof(ulong.MaxValue) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
5230var ret = ulong.MaxValue; 5447var value = ulong.MaxValue; 5470var value = ulong.MaxValue;
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
TargetPointer.cs (1)
12public static TargetPointer Max64Bit = new(ulong.MaxValue);
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (1)
114ulong terminator = _target.PointerSize == 8 ? ulong.MaxValue : uint.MaxValue;
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
29terminator = new TargetPointer(target.PointerSize == 8 ? ulong.MaxValue : uint.MaxValue);
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
5195if (obj != 0 && obj != ulong.MaxValue)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (6)
KubernetesResourceQuotaProviderTests.cs (4)
124ulong maxMemory = ulong.MaxValue; 125ulong maxCpu = ulong.MaxValue; 126ulong requestsMemory = ulong.MaxValue / 2; 127ulong requestsCpu = ulong.MaxValue / 2;
TestKubernetesEnvironmentSetup.cs (2)
59SetEnvironmentVariable($"{prefix}LIMITS_MEMORY", ulong.MaxValue.ToString()); 60SetEnvironmentVariable($"{prefix}LIMITS_CPU", ulong.MaxValue.ToString());
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Providers\FaultProvider.cs (1)
25return new Snapshot(TimeSpan.FromTicks(_clock.GetUtcNow().Ticks), TimeSpan.Zero, TimeSpan.Zero, ulong.MaxValue);
Microsoft.Maui (2)
Services\Crc64HashAlgorithm.cs (2)
149 ulong crc = ulong.MaxValue; 154 crc = ulong.MaxValue;
Microsoft.Maui.Controls.SourceGen (2)
src\Core\src\Services\Crc64HashAlgorithm.cs (2)
149 ulong crc = ulong.MaxValue; 154 crc = ulong.MaxValue;
Microsoft.ML.AutoML (1)
AutoMLExperiment\IDatasetManager.cs (1)
104_rowCount = DatasetDimensionsUtil.CountRows(_trainDataset, ulong.MaxValue);
Microsoft.ML.AutoML.Tests (2)
TrainValidaionDatasetManagerTest.cs (2)
34var trainDataLength = DatasetDimensionsUtil.CountRows(trainData, ulong.MaxValue); 48var subSampleTrainDataLength = DatasetDimensionsUtil.CountRows(subSampleTrainData, ulong.MaxValue);
Microsoft.ML.Core (3)
Data\DataKind.cs (2)
185return ulong.MaxValue; 212return ulong.MaxValue;
Utilities\DoubleParser.cs (1)
567const ulong numMax = (ulong.MaxValue - 9) / 10;
Microsoft.ML.Data (5)
Data\Conversion.cs (1)
1162Contracts.Assert(max < U8.MaxValue);
Data\RowCursorUtils.cs (2)
399keyMax = ulong.MaxValue; 428keyMax = ulong.MaxValue;
Transforms\ValueMapping.cs (2)
476ulong keyMin = ulong.MaxValue; 499if (Data.Conversion.Conversions.DefaultInstance.TryParseKey(in value, ulong.MaxValue - 1, out res))
Microsoft.ML.DataView (1)
KeyDataViewType.cs (1)
94return ulong.MaxValue;
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
131_host.CheckDecode((ulong)NumberOfRows <= ulong.MaxValue - mMin); 140_host.CheckDecode((ulong)NumberOfColumns <= ulong.MaxValue - nMin);
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
280[KeyType(ulong.MaxValue - 1)]
Microsoft.ML.Tests (9)
CollectionsDataViewTest.cs (4)
121fuLong = ulong.MaxValue - 1, 136fuLong = ulong.MaxValue, 386fuLong = new ulong[2] { ulong.MaxValue, 0 }, 438ULongProp = new ulong[2] { ulong.MaxValue, 0 },
SvmLightTests.cs (2)
27[KeyType(ulong.MaxValue - 1)] 28public ulong GroupId = ulong.MaxValue;
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.ML.Transforms (5)
Expression\Lexer.cs (2)
332u = ulong.MaxValue; 354u = ulong.MaxValue;
SvmLight\SvmLightLoader.cs (3)
178intermediate.GroupId = ulong.MaxValue; 217intermediate.GroupId = ulong.MaxValue; 277[KeyType(ulong.MaxValue - 1)]
Microsoft.Private.Windows.Core (7)
src\winforms\src\Microsoft.Private.Windows.Polyfills\system\NativeUintExtensions.cs (1)
21: unchecked((nuint)(UInt64.MaxValue));
System\Value.cs (6)
557_union.UInt64 = ulong.MaxValue; 576_union.UInt64 = ulong.MaxValue; 781ArraySegment<byte> segment = bits != ulong.MaxValue 797ArraySegment<char> segment = bits != ulong.MaxValue 1002value = _union.UInt64 != ulong.MaxValue 1009value = _union.UInt64 != ulong.MaxValue
PresentationCore (1)
System\Windows\LayoutManager.cs (1)
956ulong treeLevel = ulong.MaxValue;
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
101=> ulong.MaxValue / divisor + 1;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
75{ ulong.MaxValue, nameof(ulong.MaxValue) },
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
129UlongValue = ulong.MaxValue, 171UlongValue = ulong.MaxValue,
System.Collections (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System.Collections.Concurrent (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System.Collections.Immutable (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System.Data.Common (1)
System\Data\Common\UInt64Storage.cs (1)
105ulong min = ulong.MaxValue;
System.Diagnostics.Process (2)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (1)
121ulong minLimit = ulong.MaxValue;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ResourceLimits.cs (1)
10internal const ulong RLIM_INFINITY = ulong.MaxValue;
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.Linq (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System\Linq\Sequence.cs (1)
91if (typeof(T) == typeof(ulong) && (range = TryUseRange<UInt128>(start, endInclusive, step, ulong.MaxValue)) is not null) return range;
System.Linq.AsyncEnumerable (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\ILGen.cs (1)
1024if (value <= ulong.MaxValue)
System.Linq.Parallel (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System.Private.CoreLib (52)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs (2)
296if (((ulong)answer) > ulong.MaxValue / 10 || (((ulong)answer) == ulong.MaxValue / 10 && c > '5'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs (1)
321if (parsedValue > ulong.MaxValue / 0x10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1815ulong actualResult = (value >= ulong.MaxValue) ? ulong.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
3741if (decoded.Significand <= TValue.CreateTruncating(ulong.MaxValue))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128.cs (1)
349carry = (lsd == 0) ? 0UL : ulong.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (2)
600Debug.Assert((ulong.MaxValue / 10) >= one.f); 782Debug.Assert((ulong.MaxValue / 10) >= one.f);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (2)
867if (low64 >= ulong.MaxValue / 10) 875if (low64 >= ulong.MaxValue / 10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1918ulong actualResult = ((float)value >= ulong.MaxValue) ? ulong.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
1682ulong actualResult = (value >= ulong.MaxValue) ? ulong.MaxValue : 1703nuint actualResult = (value >= ulong.MaxValue) ? unchecked((nuint)ulong.MaxValue) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
101return (T)(object)ulong.MaxValue; 474result = ulong.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.Unix.cs (1)
12return IntPtr.Size == 4 ? uint.MaxValue : ulong.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (2)
989if (matches == ulong.MaxValue) 1002if (matches == ulong.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
792Debug.Assert(right > ulong.MaxValue); 829: ulong.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (9)
480static ulong IBinaryNumber<ulong>.AllBitsSet => MaxValue; 566static ulong IMinMaxValue<ulong>.MaxValue => MaxValue; 854result = (actualValue >= MaxValue) ? MaxValue : 873result = (actualValue >= MaxValue) ? MaxValue : (ulong)actualValue; 921result = (actualValue >= MaxValue) ? MaxValue : 1290static ulong IBinaryIntegerParseAndFormatInfo<ulong>.MaxValueDiv10 => MaxValue / 10;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (10)
172get => unchecked((nuint)nuint_t.MaxValue); 488get => unchecked((nuint)nuint_t.MaxValue); 853result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : 872result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : (nuint)actualValue; 878result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : (nuint)actualValue; 920result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) :
System\GC.NativeAot.cs (8)
883ulong heapHardLimit = (AppContext.GetData("GCHeapHardLimit") as ulong?) ?? ulong.MaxValue; 884ulong heapHardLimitPercent = (AppContext.GetData("GCHeapHardLimitPercent") as ulong?) ?? ulong.MaxValue; 885ulong heapHardLimitSOH = (AppContext.GetData("GCHeapHardLimitSOH") as ulong?) ?? ulong.MaxValue; 886ulong heapHardLimitLOH = (AppContext.GetData("GCHeapHardLimitLOH") as ulong?) ?? ulong.MaxValue; 887ulong heapHardLimitPOH = (AppContext.GetData("GCHeapHardLimitPOH") as ulong?) ?? ulong.MaxValue; 888ulong heapHardLimitSOHPercent = (AppContext.GetData("GCHeapHardLimitSOHPercent") as ulong?) ?? ulong.MaxValue; 889ulong heapHardLimitLOHPercent = (AppContext.GetData("GCHeapHardLimitLOHPercent") as ulong?) ?? ulong.MaxValue; 890ulong heapHardLimitPOHPercent = (AppContext.GetData("GCHeapHardLimitPOHPercent") as ulong?) ?? ulong.MaxValue;
System.Private.Windows.Core (6)
System\Value.cs (6)
557_union.UInt64 = ulong.MaxValue; 576_union.UInt64 = ulong.MaxValue; 781ArraySegment<byte> segment = bits != ulong.MaxValue 797ArraySegment<char> segment = bits != ulong.MaxValue 1002value = _union.UInt64 != ulong.MaxValue 1009value = _union.UInt64 != ulong.MaxValue
System.Private.Windows.Core.TestUtilities (1)
XUnit\InvalidEnumDataAttribute.cs (1)
22ulong maxValue = ulong.MaxValue >>> ((sizeof(ulong) - sizeof(TEnum)) * 8);
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 (6)
System\Numerics\BigInteger.cs (6)
2565bits = x <= ulong.MaxValue 2575else if (x <= ulong.MaxValue) 2632if (value <= ulong.MaxValue) 2646else if (value <= ulong.MaxValue) 4934ulong actualResult = (value >= ulong.MaxValue) ? ulong.MaxValue :
System.Runtime.Serialization.Formatters (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
94ulong.MaxValue / divisor + 1;
System.Text.Json (2)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
549/// than <see cref="ulong.MaxValue"/>.
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (1)
404initialWordValue: ulong.MaxValue);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
55Array.Fill(bv._blocks, ulong.MaxValue);
System\Text\RegularExpressions\Symbolic\UInt64Solver.cs (2)
22Full = minterms.Length == 64 ? ulong.MaxValue : ulong.MaxValue >> (64 - minterms.Length);