320 references to MaxValue
Aspire.Hosting.Azure.Sql (1)
SubnetAddressAllocator.cs (1)
115var mask = prefix == 0 ? 0u : uint.MaxValue << (32 - prefix);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
135for (uint i = 1; i < uint.MaxValue; i++)
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3588private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(uint.MinValue, uint.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (12)
730builder._ElementDef._MaxLength = uint.MaxValue; 731builder._ElementDef._MinLength = uint.MaxValue; 1032ad._MaxLength = uint.MaxValue; 1033ad._MinLength = uint.MaxValue; 1414builder._GroupDef._MaxVal != uint.MaxValue) 1625uint cVal = uint.MaxValue; 1629(!ParseInteger(s, ref cVal) || (cVal != uint.MaxValue && cVal != 1))) 1640if (cMax == uint.MaxValue) 1656if (uint.MaxValue != cVal) 1669if (uint.MaxValue != cVal) 1682if (cMin != uint.MaxValue && cMax != uint.MaxValue && cMin > cMax)
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (2)
502if (decl.MaxLength != uint.MaxValue) 509if (decl.MinLength != uint.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
951if (value < (long)UInt32.MinValue || value > (long)UInt32.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
479if (value < UInt32.MinValue || value > UInt32.MaxValue)
Metadata\MetadataFileNameManager.cs (1)
43for (uint i = 1; i < uint.MaxValue; i++)
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
64{ uint.MaxValue, nameof(uint.MaxValue) },
ILCompiler.Compiler (9)
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
473else if (value <= uint.MaxValue)
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (6)
104Debug.Assert(stringsOffset < uint.MaxValue); 113Debug.Assert(stringsOffset < uint.MaxValue); 119Debug.Assert(offset < uint.MaxValue); 148Debug.Assert(offset < uint.MaxValue); 168Debug.Assert(offset < uint.MaxValue); 189Debug.Assert(offset < uint.MaxValue);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
273SectionIndex = uint.MaxValue, // IMAGE_SYM_ABSOLUTE 792Debug.Assert(SectionIndex == uint.MaxValue || SectionIndex < ushort.MaxValue);
ILCompiler.MetadataTransform (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
225if (size >= uint.MaxValue / 4)
ILCompiler.ReadyToRun (4)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
273SectionIndex = uint.MaxValue, // IMAGE_SYM_ABSOLUTE 792Debug.Assert(SectionIndex == uint.MaxValue || SectionIndex < ushort.MaxValue);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
2590if (parentIndex != uint.MaxValue) 2708GetTypeLayoutResult result = GetTypeLayoutHelper(metadataType, uint.MaxValue, 0, null, treeNodes, maxFields, numTreeNodes);
ILCompiler.RyuJit (2)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
2590if (parentIndex != uint.MaxValue) 2708GetTypeLayoutResult result = GetTypeLayoutHelper(metadataType, uint.MaxValue, 0, null, treeNodes, maxFields, numTreeNodes);
libmscordaccore_universal (1)
Entrypoints.cs (1)
36if (size > uint.MaxValue)
Microsoft.Analyzers.Local.Tests (3)
Json\JsonValueTest.cs (3)
94Assert.Equal(int.MaxValue, new JsonValue(uint.MaxValue).AsInteger); 217Assert.Equal(0, (int)new JsonValue(uint.MaxValue)); 223Assert.Equal(0, (int?)new JsonValue(uint.MaxValue));
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
482else if (value <= uint.MaxValue)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http3\Http3PeerSettings.cs (1)
10public const uint DefaultMaxRequestHeaderFieldSize = uint.MaxValue;
src\aspnetcore\src\Shared\runtime\Http2\Hpack\Huffman.cs (1)
752uint ones = uint.MaxValue >> (32 - bitsInAcc);
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
21public const uint DefaultMaxConcurrentStreams = uint.MaxValue; 24public const uint DefaultMaxHeaderListSize = uint.MaxValue;
Microsoft.CodeAnalysis (3)
CodeGen\ILBuilderEmit.cs (2)
690else if (value >= uint.MinValue && value <= uint.MaxValue) 709else if (value >= uint.MinValue && value <= uint.MaxValue)
EnumConstantHelper.cs (1)
83overflowKind = CheckOverflow(uint.MaxValue, previous, offset);
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
64{ uint.MaxValue, nameof(uint.MaxValue) },
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
64{ uint.MaxValue, nameof(uint.MaxValue) },
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Conversions.cs (4)
4313case SpecialType.System_UInt32: return (uint.MinValue - 1D) < value && value < (uint.MaxValue + 1D); 4326return (uint.MinValue - 1D) < value && value < (uint.MaxValue + 1D); 4343case SpecialType.System_UInt32: return (uint.MinValue - 1M) < value && value < (uint.MaxValue + 1M); 4354return (uint.MinValue - 1M) < value && value < (uint.MaxValue + 1M);
Binder\PatternExplainer.cs (1)
823if (remainingValues.Any(BinaryOperatorKind.GreaterThan, ConstantValue.Create(uint.MaxValue)))
Binder\SafeContext.cs (1)
58public static readonly SafeContext Empty = new SafeContext(uint.MaxValue);
CommandLine\CSharpCommandLineParser.cs (1)
1444if (baseAddress > uint.MaxValue - 0x8000)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
102else if (scale == 0 && uint.MinValue <= value && value <= uint.MaxValue)
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
132if (folded < uint.MaxValue)
Parser\Lexer.cs (2)
1077else if (val <= UInt32.MaxValue) 1102if (val <= UInt32.MaxValue)
Utilities\ValueSetFactory.DecimalTC.cs (10)
58return new DecimalRep(low: uint.MaxValue, mid: mid - 1, high: high, isNegative: isNegative, scale: scale).Value; 60return new DecimalRep(low: uint.MaxValue, mid: uint.MaxValue, high: high - 1, isNegative: isNegative, scale: scale).Value; 65if (low != uint.MaxValue) 67if (mid != uint.MaxValue) 69if (high != uint.MaxValue) 160if (high * 10L > uint.MaxValue) 167newLow &= uint.MaxValue; 169newMid &= uint.MaxValue; 170if (newHigh > uint.MaxValue)
Utilities\ValueSetFactory.NuintValueSet.cs (2)
24/// A value of type nuint may, in a 64-bit runtime, take on values greater than <see cref="System.UInt32.MaxValue"/>. 27/// to contain all values greater than <see cref="System.UInt32.MaxValue"/> (if any).
Utilities\ValueSetFactory.UIntTC.cs (2)
20uint INumericTC<uint>.MaxValue => uint.MaxValue; 45Debug.Assert(value != uint.MaxValue);
Microsoft.CodeAnalysis.CSharp.Features (1)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
98SpecialType.System_UInt32 => IsUnsignedBoundary(startValue, endValue, uint.MaxValue),
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
64{ uint.MaxValue, nameof(uint.MaxValue) },
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
1551if (value <= uint.MaxValue)
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
4743var ret = uint.MaxValue; 4960var value = uint.MaxValue; 4983var value = uint.MaxValue;
Microsoft.Diagnostics.DataContractReader (1)
ContractDescriptorTarget.cs (1)
414int hr = _dataTargetDelegates.GetThreadContext((uint)(threadId & uint.MaxValue), contextFlags, buffer);
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
TargetPointer.cs (1)
11public static TargetPointer Max32Bit = new(uint.MaxValue);
Microsoft.Diagnostics.DataContractReader.Contracts (5)
Contracts\StackWalk\Context\ARM64\ARM64Unwinder.cs (2)
857if (Fpcr != uint.MaxValue && Fpsr != uint.MaxValue)
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (1)
117ulong terminator = _target.PointerSize == 8 ? ulong.MaxValue : uint.MaxValue;
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
29terminator = new TargetPointer(target.PointerSize == 8 ? ulong.MaxValue : uint.MaxValue);
Contracts\StackWalk\GC\GcScanner.cs (1)
263if (diff > uint.MaxValue)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
SOSDacImpl.cs (1)
6937methodData.Slot = uint.MaxValue;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Windows\WindowsContainerSnapshotProviderTests.cs (1)
138_cpuLimit.ControlFlags = uint.MaxValue; // force all bits in ControlFlags to be 1.
Microsoft.ML.Core (2)
Data\DataKind.cs (2)
181return uint.MaxValue; 208return uint.MaxValue;
Microsoft.ML.Data (6)
Data\Conversion.cs (4)
858public void Convert(in U8 src, ref U4 dst) => dst = src <= U4.MaxValue ? (U4)src : (U4)0; 859public void Convert(in UG src, ref U4 dst) => dst = src.High == 0 && src.Low <= U4.MaxValue ? (U4)src.Low : (U4)0; 1018if (!TryParse(in src, out res) || res > U4.MaxValue) 1510if (res > U4.MaxValue)
Transforms\ValueMapping.cs (2)
526keyMax = uint.MaxValue - 1; 537else if (keyMax < uint.MaxValue)
Microsoft.ML.DataView (4)
KeyDataViewType.cs (4)
45/// exceed <see cref="uint.MaxValue"/>. 53throw Contracts.ExceptParam(nameof(count), $"The cardinality of a {nameof(KeyDataViewType)} must not exceed {type.Name}.{nameof(uint.MaxValue)} " + 71/// exceed <see cref="uint.MaxValue"/>. 92return uint.MaxValue;
Microsoft.ML.Tests (8)
CollectionsDataViewTest.cs (4)
114fuInt = uint.MaxValue - 1, 129fuInt = uint.MaxValue, 385fuInt = new uint[2] { 0, uint.MaxValue }, 437UIntProp = new uint[2] { 0, uint.MaxValue },
Transformers\ConvertTests.cs (3)
156AD = new uint[]{ uint.MinValue, uint.MaxValue}, 224AD = new uint[]{ uint.MinValue, uint.MaxValue}, 236ConvD = new float[] { uint.MinValue, uint.MaxValue },
Transformers\HashTests.cs (1)
240if (value <= uint.MaxValue)
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
484new VectorDataViewType(new KeyDataViewType(typeof(uint), uint.MaxValue)).ToString(), labelCol.GetTypeString());
Microsoft.ML.Transforms (5)
Expression\Node.cs (1)
785if (!lng && (uu <= I4.MaxValue || uu <= uint.MaxValue && ilt.IsHex && !uns))
SvmLight\SvmLightLoader.cs (1)
288[KeyType(uint.MaxValue - 1)]
Text\NgramHashingTransformer.cs (1)
572t => (t.GetItemType() is KeyDataViewType keyType && keyType.Count > 0) ? (uint)keyType.Count : uint.MaxValue).ToArray();
Text\NgramTransform.cs (2)
278keyCount = uint.MaxValue; 682keyCount = uint.MaxValue;
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
821uint label = uint.MaxValue;
Microsoft.NET.HostModel (3)
MachO\BinaryFormat\Blobs\CodeDirectoryBlob.cs (2)
214private set => _execSegmentLimit = value < uint.MaxValue ? 0 : value.ConvertToBigEndian(); 233_codeLimit64 = (signatureStart >= uint.MaxValue ? signatureStart : 0).ConvertToBigEndian();
MachO\MachObjectFile.cs (1)
162if (newStringTableSize > uint.MaxValue)
Microsoft.Private.Windows.Core (1)
src\winforms\src\Microsoft.Private.Windows.Polyfills\system\NativeUintExtensions.cs (1)
20? unchecked((nuint)(UInt32.MaxValue))
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Operators.vb (2)
2873If result > UInt32.MaxValue Then 3785If result > UInt32.MaxValue Then
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Utility\TrxFileHelper.cs (1)
324while (iteration != uint.MaxValue);
PresentationCore (16)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
235internal const UInt32 waitInfinite = UInt32.MaxValue;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
3341uint tabletIndex = UInt32.MaxValue; 3345if (tabletIndex != UInt32.MaxValue) 3428OnTabletRemoved(UInt32.MaxValue); 3441if (tabletIndex != UInt32.MaxValue
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (9)
274uint indexMouseTablet = UInt32.MaxValue; 401tabletIndexChanged = UInt32.MaxValue; 435uint indexFound = UInt32.MaxValue; 448uint tabletIndex = UInt32.MaxValue; 449if (indexFound == UInt32.MaxValue) 507_indexMouseTablet = UInt32.MaxValue; 508return UInt32.MaxValue; // Don't process this notification any further. 525return UInt32.MaxValue; // Don't process this notification any further. 696private uint _indexMouseTablet = UInt32.MaxValue;
System\Windows\InterOp\D3DImage.cs (1)
585if (_lockCount == UInt32.MaxValue)
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
241if (_lockCount == UInt32.MaxValue)
PresentationFramework (3)
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (1)
168if (_chunkID == UInt32.MaxValue)
MS\Internal\IO\Packaging\PackageFilter.cs (1)
477Invariant.Assert(_currentChunkID <= UInt32.MaxValue);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
887Invariant.Assert(_currentChunkID <= UInt32.MaxValue);
ReachFramework (1)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
81public const uint IDS_NULL = uint.MaxValue;
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
441else if (value <= (uint.MaxValue >> 2))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
64{ uint.MaxValue, nameof(uint.MaxValue) },
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
128UintValue = uint.MaxValue, 170UintValue = uint.MaxValue,
System.Data.Common (1)
System\Data\Common\UInt32Storage.cs (1)
105uint min = uint.MaxValue;
System.Diagnostics.EventLog (1)
System\Diagnostics\EventData.cs (1)
54if (value > uint.MaxValue || value < 0)
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnDecoder.Integer.cs (3)
220/// <see cref="uint.MinValue">UInt32.MinValue</see> and <see cref="uint.MaxValue">UInt32.MaxValue</see>, inclusive; otherwise, 642/// <see cref="uint.MinValue">UInt32.MinValue</see> and <see cref="uint.MaxValue">UInt32.MaxValue</see>, inclusive; otherwise 872/// <see cref="uint.MinValue">UInt32.MinValue</see> and <see cref="uint.MaxValue">UInt32.MaxValue</see>, inclusive; otherwise
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.Integer.cs (1)
207if (result <= uint.MaxValue)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (2)
105else if (value <= uint.MaxValue) 135else if (value <= uint.MaxValue)
System.IO.Compression (9)
System\IO\Compression\ZipArchive.Async.cs (2)
437if (startOfCentralDirectory >= uint.MaxValue 438|| sizeOfCentralDirectory >= uint.MaxValue
System\IO\Compression\ZipArchive.cs (2)
918if (startOfCentralDirectory >= uint.MaxValue 919|| sizeOfCentralDirectory >= uint.MaxValue
System\IO\Compression\ZipArchiveEntry.cs (3)
1008private bool AreSizesTooLarge => _compressedSize > uint.MaxValue || _uncompressedSize > uint.MaxValue; 1061private bool IsOffsetTooLarge => _offsetOfLocalHeader > uint.MaxValue;
System\IO\Compression\ZipBlocks.cs (2)
876uint startOfCentralDirectoryTruncated = startOfCentralDirectory > uint.MaxValue ? 878uint sizeOfCentralDirectoryTruncated = sizeOfCentralDirectory > uint.MaxValue ?
System.IO.MemoryMappedFiles (5)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (4)
295if (IntPtr.Size == 4 && capacity > uint.MaxValue) 352if (IntPtr.Size == 4 && capacity > uint.MaxValue) 411if (IntPtr.Size == 4 && size > uint.MaxValue) 445if (IntPtr.Size == 4 && size > uint.MaxValue)
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
86if (IntPtr.Size == 4 && newSize > uint.MaxValue)
System.Linq (1)
System\Linq\Sequence.cs (1)
89if (typeof(T) == typeof(uint) && (range = TryUseRange<ulong>(start, endInclusive, step, uint.MaxValue)) is not null) return range;
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\ILGen.cs (2)
330if (int.MinValue <= value & value <= uint.MaxValue) 1007if (value <= uint.MaxValue)
System.Net.Http (4)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\Huffman.cs (1)
752uint ones = uint.MaxValue >> (32 - bitsInAcc);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
61private uint _maxHeaderListSize = uint.MaxValue; // Defaults to infinite
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
40private uint _maxHeaderListSize = uint.MaxValue; // Defaults to infinite 862_maxHeaderListSize = (uint)Math.Min((ulong)settingValue, uint.MaxValue);
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerTimeoutManager.Managed.cs (1)
68ArgumentOutOfRangeException.ThrowIfGreaterThan(value, uint.MaxValue);
System.Net.Primitives (3)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
14private const long MaxIPv4Value = uint.MaxValue; // the native parser cannot handle MaxIPv4Value, only MaxIPv4Value - 1
System\Net\IPNetwork.cs (2)
83uint mask = uint.MaxValue << (32 - PrefixLength); 242uint mask = uint.MaxValue << (32 - prefixLength);
System.Net.Quic (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
84Debug.Assert(error <= uint.MaxValue, "ErrGetError should only return error codes in the UInt32 range.");
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
14private const long MaxIPv4Value = uint.MaxValue; // the native parser cannot handle MaxIPv4Value, only MaxIPv4Value - 1
System.Net.Security (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
84Debug.Assert(error <= uint.MaxValue, "ErrGetError should only return error codes in the UInt32 range.");
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
14private const long MaxIPv4Value = uint.MaxValue; // the native parser cannot handle MaxIPv4Value, only MaxIPv4Value - 1
System.Private.CoreLib (78)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
225if (size >= uint.MaxValue / 4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs (2)
254if (((uint)answer) > uint.MaxValue / 10 || (((uint)answer) == uint.MaxValue / 10 && num > '5'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs (2)
215if (((uint)answer) > uint.MaxValue / 10 || (((uint)answer) == uint.MaxValue / 10 && c > '5'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs (1)
239if (parsedValue > uint.MaxValue / 0x10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (1)
265absoluteExponent = uint.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
544uint mask = uint.MaxValue >> (BitsPerInt32 - extraBits); 561uint mask = uint.MaxValue >> (BitsPerInt32 - extraBits);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
1176if (value > uint.MaxValue) ThrowUInt32OverflowException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (7)
186if (high > uint.MaxValue) 1009if (low64 <= uint.MaxValue) 1032} while (low64 <= uint.MaxValue); 1057if (tmp64 > uint.MaxValue) 1376if (tmp > uint.MaxValue) 1454if (tmp > uint.MaxValue) 1474if (tmp > uint.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
129if (uint64Value > uint.MaxValue) return null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
194Debug.Assert(totalHoursRemaining <= uint.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
44public static Guid AllBitsSet => new Guid(uint.MaxValue, ushort.MaxValue, ushort.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1817uint actualResult = (value >= uint.MaxValue) ? uint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1262uint actualResult = (value >= uint.MaxValue) ? uint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1276uint actualResult = (value >= uint.MaxValue) ? uint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1677private const double UInt32MaxValueOffset = (double)uint.MaxValue + 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (5)
568if (digit > uint.MaxValue) 570digit = uint.MaxValue; 1004chkLo &= uint.MaxValue; 1029Debug.Assert(q <= uint.MaxValue); 1203if (value <= uint.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (3)
813(high < uint.MaxValue / 10 || (high == uint.MaxValue / 10 && (low64 < 0x99999999_99999999 || (low64 == 0x99999999_99999999 && c <= '5'))))) 868high = uint.MaxValue / 10;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1911uint actualResult = ((float)value >= uint.MaxValue) ? uint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (2)
100if (cbNative > uint.MaxValue) 126if (cbNative > uint.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1675uint actualResult = (value >= uint.MaxValue) ? uint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
91if (IntPtr.Size == 4 && numBytes > uint.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
97return (T)(object)uint.MaxValue; 460result = uint.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\SearchValues\ProbabilisticMapState.cs (1)
214return uint.MaxValue / divisor + 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (2)
1030if (matches == uint.MaxValue) 1043if (matches == uint.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (6)
353Debug.Assert(sseMask != uint.MaxValue); 361Debug.Assert(advSimdIndex != uint.MaxValue); 380uint currentSseMask = uint.MaxValue, secondSseMask = uint.MaxValue; 381uint currentAdvSimdIndex = uint.MaxValue, secondAdvSimdIndex = uint.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
151/// <exception cref="ArgumentOutOfRangeException"><paramref name="delay"/>'s <see cref="TimeSpan.TotalMilliseconds"/> is less than -1 or greater than <see cref="uint.MaxValue"/> - 1.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (3)
29/// <exception cref="ArgumentOutOfRangeException"><paramref name="period"/> must be <see cref="Timeout.InfiniteTimeSpan"/> or represent a number of milliseconds equal to or larger than 1 and smaller than <see cref="uint.MaxValue"/>.</exception> 47/// <exception cref="ArgumentOutOfRangeException"><paramref name="period"/> must be <see cref="Timeout.InfiniteTimeSpan"/> or represent a number of milliseconds equal to or larger than 1 and smaller than <see cref="uint.MaxValue"/>.</exception> 81/// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> must be <see cref="Timeout.InfiniteTimeSpan"/> or represent a number of milliseconds equal to or larger than 1 and smaller than <see cref="uint.MaxValue"/>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (1)
1603spinIndex = uint.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (2)
1458if (millisecondsTimeOutInterval > (uint)int.MaxValue && millisecondsTimeOutInterval != uint.MaxValue) 1478if (millisecondsTimeOutInterval > (uint)int.MaxValue && millisecondsTimeOutInterval != uint.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
192uint nextTimerDuration = uint.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
224if (value._upper > uint.MaxValue) 985Debug.Assert(chkHiUL <= uint.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (13)
479static uint IBinaryNumber<uint>.AllBitsSet => MaxValue; 565static uint IMinMaxValue<uint>.MaxValue => MaxValue; 853result = (actualValue >= MaxValue) ? MaxValue : 866result = (actualValue >= MaxValue) ? MaxValue : (uint)actualValue; 872result = (actualValue >= MaxValue) ? MaxValue : (uint)actualValue; 878result = (actualValue >= MaxValue) ? MaxValue : (uint)actualValue; 920result = (actualValue >= MaxValue) ? MaxValue : 1274static uint IBinaryIntegerParseAndFormatInfo<uint>.MaxValueDiv10 => MaxValue / 10;
System\Threading\ManagedThreadId.cs (1)
104if (bitmap != uint.MaxValue)
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
693if (value < uint.MinValue || value > uint.MaxValue)
System.Private.Reflection.Execution (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
225if (size >= uint.MaxValue / 4)
System.Private.StackTraceMetadata (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
225if (size >= uint.MaxValue / 4)
System.Private.TypeLoader (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
225if (size >= uint.MaxValue / 4)
System.Private.Uri (1)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
14private const long MaxIPv4Value = uint.MaxValue; // the native parser cannot handle MaxIPv4Value, only MaxIPv4Value - 1
System.Private.Xml (16)
System\Xml\Schema\DataTypeImplementation.cs (1)
3516private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(uint.MinValue, uint.MaxValue);
System\Xml\Schema\XdrBuilder.cs (12)
719builder._ElementDef._MaxLength = uint.MaxValue; 720builder._ElementDef._MinLength = uint.MaxValue; 1025ad._MaxLength = uint.MaxValue; 1026ad._MinLength = uint.MaxValue; 1402builder._GroupDef._MaxVal != uint.MaxValue) 1613uint cVal = uint.MaxValue; 1617(!ParseInteger(s, ref cVal) || (cVal != uint.MaxValue && cVal != 1))) 1628if (cMax == uint.MaxValue) 1644if (uint.MaxValue != cVal) 1657if (uint.MaxValue != cVal) 1670if (cMin != uint.MaxValue && cMax != uint.MaxValue && cMin > cMax)
System\Xml\Schema\XdrValidator.cs (2)
503if (decl.MaxLength != uint.MaxValue) 510if (decl.MinLength != uint.MaxValue)
System\Xml\Schema\XmlValueConverter.cs (1)
866if (value < (long)uint.MinValue || value > (long)uint.MaxValue)
System.Reflection.Metadata (2)
System\Reflection\Metadata\Internal\HasCustomAttributeTag.cs (1)
37internal const uint InvalidTokenType = uint.MaxValue;
System\Reflection\Metadata\PortablePdb\HasCustomDebugInformationTag.cs (1)
45internal const uint InvalidTokenType = uint.MaxValue;
System.Runtime.Numerics (14)
System\Numerics\BigInteger.cs (6)
127_bits = x <= uint.MaxValue ? [((uint)x)] : [(uint)x, (uint)(x >> BitsPerUInt32)]; 151_bits = value <= uint.MaxValue ? [((uint)value)] : [(uint)value, (uint)(value >> BitsPerUInt32)]; 2379if (x <= uint.MaxValue) 2450else if (value <= uint.MaxValue) 4735uint actualResult = (value >= uint.MaxValue) ? uint.MaxValue :
System\Numerics\BigIntegerCalculator.GcdInv.cs (1)
20while (right > uint.MaxValue)
System\Numerics\BigIntegerCalculator.PowMod.cs (2)
170bool useUlong = nint.Size == 4 || modulus <= uint.MaxValue; 214bool useUlong = nint.Size == 4 || modulus <= uint.MaxValue;
System\Numerics\BigIntegerCalculator.Utils.cs (1)
176if ((ulong)divisor <= uint.MaxValue)
System\Numerics\Complex.cs (4)
1956uint actualResult = (value.m_real >= uint.MaxValue) ? uint.MaxValue : 2098uint actualResult = (value.m_real >= uint.MaxValue) ? uint.MaxValue :
System.Security.Cryptography (2)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
36private const int MaxPrfOutputSize = (int)(uint.MaxValue / 8);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (1)
286if (_block == uint.MaxValue)
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
68else if (value <= uint.MaxValue) 100else if (value <= uint.MaxValue)
System.Speech (1)
Result\RecognitionResult.cs (1)
448SPSERIALIZEDPHRASE serializedPhrase = RecognizedPhrase.GetPhraseHeader(coMemSerializedPhrase, uint.MaxValue, _isSapi53Header);
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
514/// than <see cref="uint.MaxValue"/>.
System.Transactions.Local (1)
System\Transactions\Oletx\DtcTransactionManager.cs (1)
128returnTimeout = uint.MaxValue;
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2215return (UInt32) ((ulong) last + (ulong) UInt32.MaxValue + 1 - first);