121 references to MaxValue
mscorlib (8)
system\convert.cs (2)
1194if (value < 0 || value > UInt32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32")); 1201if (value > UInt32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt32"));
system\runtime\interopservices\safebuffer.cs (3)
87((UIntPtr) UInt32.MaxValue) : ((UIntPtr) UInt64.MaxValue); 106if (IntPtr.Size == 4 && numBytes > UInt32.MaxValue) 128if (IntPtr.Size == 4 && numElements * sizeOfEachElement > UInt32.MaxValue)
system\threading\timer.cs (2)
278uint nextAppDomainTimerDuration = uint.MaxValue; 345uint nextAppDomainTimerDuration = uint.MaxValue;
system\uintptr.cs (1)
65if (Size==4 && l>UInt32.MaxValue) {
PresentationCore (3)
Core\CSharp\System\Windows\Interop\D3DImage.cs (1)
655if (_lockCount == UInt32.MaxValue)
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
291if (_lockCount == UInt32.MaxValue)
Graphics\include\exports.cs (1)
277internal const UInt32 waitInfinite = UInt32.MaxValue;
PresentationFramework (3)
src\Framework\MS\Internal\IO\Packaging\CorePropertiesFilter.cs (1)
177if (_chunkID == UInt32.MaxValue)
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (1)
493Invariant.Assert(_currentChunkID <= UInt32.MaxValue);
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
920Invariant.Assert(_currentChunkID <= UInt32.MaxValue);
SMSvcHost (1)
System\ServiceModel\Activation\MsmqActivation.cs (1)
564static readonly TimeSpan InfiniteTimeout = TimeSpan.FromMilliseconds(UInt32.MaxValue);
System (6)
net\System\_IPv4Address.cs (1)
17private const long MaxIPv4Value = UInt32.MaxValue;
net\System\Net\Configuration\HttpListenerTimeoutsElement.cs (2)
130if (input < 0 || input > UInt32.MaxValue) 133SR.GetString(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 0, UInt32.MaxValue));
net\System\Net\HttpListenerTimeoutManager.cs (2)
52Debug.Assert(configTimeouts[5] <= uint.MaxValue, "Timeout out of range: " + configTimeouts[5]); 212if (value < 0 || value > uint.MaxValue)
services\monitoring\system\diagnosticts\EventData.cs (1)
45if (value > UInt32.MaxValue || value < 0)
System.Core (5)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (4)
279if (IntPtr.Size == 4 && capacity > UInt32.MaxValue) { 345if (IntPtr.Size == 4 && capacity > UInt32.MaxValue) { 565if (IntPtr.Size == 4 && size > UInt32.MaxValue) { 598if (IntPtr.Size == 4 && size > UInt32.MaxValue) {
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
98if (IntPtr.Size == 4 && nativeSize > UInt32.MaxValue) {
System.Data (2)
fx\src\data\System\Data\Common\UInt32Storage.cs (1)
97UInt32 min = UInt32.MaxValue;
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
2931if (seqNum == UInt32.MaxValue) {
System.Data.Entity (1)
System\Data\Common\QueryCache\QueryCacheKey.cs (1)
104if (uint.MaxValue != _hitCount)
System.Data.Services.Client (3)
System\Data\Services\Client\DataServiceContext.cs (2)
2626resource.ChangeOrder = UInt32.MaxValue; 4147.Where(o => o.IsModified && o.ChangeOrder != UInt32.MaxValue)
System\Data\Services\Client\Descriptor.cs (1)
20private uint changeOrder = UInt32.MaxValue;
System.IdentityModel (1)
System\IdentityModel\SspiWrapper.cs (1)
822uint retCode = uint.MaxValue;
System.Messaging (21)
System\Messaging\Design\SizeConverter.cs (2)
49return (long)uint.MaxValue; 80if ((long)value == uint.MaxValue)
System\Messaging\Design\TimeoutConverter.cs (4)
52return TimeSpan.FromSeconds((double)uint.MaxValue); 56if (totalSeconds > (double)uint.MaxValue) 57totalSeconds = (double)uint.MaxValue; 86if (totalSeconds >= uint.MaxValue)
System\Messaging\Message.cs (7)
48public static readonly TimeSpan InfiniteTimeout = TimeSpan.FromSeconds(UInt32.MaxValue); 1705if (timeoutInSeconds > UInt32.MaxValue) 1706timeoutInSeconds = UInt32.MaxValue; 1709if (timeoutInSeconds == UInt32.MaxValue) 1755if (timeoutInSeconds > UInt32.MaxValue) 1756timeoutInSeconds = UInt32.MaxValue; 1758if (timeoutInSeconds == UInt32.MaxValue)
System\Messaging\MessageEnumerator.cs (2)
159if (timeoutInMilliseconds < 0 || timeoutInMilliseconds > UInt32.MaxValue) 265if (timeoutInMilliseconds < 0 || timeoutInMilliseconds > UInt32.MaxValue)
System\Messaging\MessageQueue.cs (4)
51public static readonly TimeSpan InfiniteTimeout = TimeSpan.FromMilliseconds(UInt32.MaxValue); 56public static readonly long InfiniteQueueSize = UInt32.MaxValue; 2512if (timeoutInMilliseconds < 0 || timeoutInMilliseconds > UInt32.MaxValue) 3019if (timeoutInMilliseconds < 0 || timeoutInMilliseconds > UInt32.MaxValue)
System\Messaging\MessageQueueInstaller.cs (2)
39private long maximumJournalSize = UInt32.MaxValue; 40private long maximumQueueSize = UInt32.MaxValue;
System.Numerics (17)
System\Numerics\BigInteger.cs (8)
346highDWord = (_sign < 0) ? UInt32.MaxValue : 0; 351highDWord = UInt32.MaxValue; 1341uint xExtend = (left._sign < 0) ? UInt32.MaxValue : 0; 1342uint yExtend = (right._sign < 0) ? UInt32.MaxValue : 0; 1361uint xExtend = (left._sign < 0) ? UInt32.MaxValue : 0; 1362uint yExtend = (right._sign < 0) ? UInt32.MaxValue : 0; 1376uint xExtend = (left._sign < 0) ? UInt32.MaxValue : 0; 1377uint yExtend = (right._sign < 0) ? UInt32.MaxValue : 0;
System\Numerics\BigIntegerBuilder.cs (7)
855Contract.Assert(uuQuo <= (ulong)uint.MaxValue + 2); 856if (uuQuo > uint.MaxValue) { 857uuRem += uDen * (uuQuo - uint.MaxValue); 858uuQuo = uint.MaxValue; 860while (uuRem <= uint.MaxValue && uuQuo * uDenNext > NumericsHelpers.MakeUlong((uint)uuRem, uNumNext)) { 1207if (uuQuo > uint.MaxValue) 1246if (uuQuo > uint.MaxValue)
System\Numerics\NumericsHelpers.cs (2)
186if (uu1 <= uint.MaxValue) 201if (uu2 <= uint.MaxValue)
System.Runtime.Serialization (1)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
641if (value < UInt32.MinValue || value > UInt32.MaxValue)
System.ServiceModel (1)
System\ServiceModel\Channels\PeerMaintainer.cs (1)
597uint minUtility = UInt32.MaxValue;
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\DiscoveryMessageSequence.cs (2)
26Fx.Assert((instanceId >= 0) && (instanceId <= UInt32.MaxValue), "The instanceId must be within UInt32 range"); 27Fx.Assert((messageNumber >= 0) && (messageNumber <= UInt32.MaxValue), "The messageNumber must be within UInt32 range");
System\ServiceModel\Discovery\DiscoveryMessageSequenceGenerator.cs (1)
28if (instanceId < 0 || instanceId > UInt32.MaxValue)
System.Transactions (1)
System\Transactions\Oletx\DTCTransactionManager.cs (1)
177returnTimeout = UInt32.MaxValue;
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
965if (value <= (ulong)UInt32.MaxValue) return CreateLiteral((uint)value, text);
System.Workflow.Activities (2)
Rules\Parser\Scanner.cs (2)
666if (value <= uint.MaxValue) 865if (value <= uint.MaxValue)
System.Xml (16)
System\Xml\Schema\DataTypeImplementation.cs (1)
3264static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(uint.MinValue, uint.MaxValue);
System\Xml\Schema\XdrBuilder.cs (12)
664builder._ElementDef._MaxLength = uint.MaxValue; 665builder._ElementDef._MinLength = uint.MaxValue; 921ad._MaxLength = uint.MaxValue; 922ad._MinLength = uint.MaxValue; 1247builder._GroupDef._MaxVal != uint.MaxValue) { 1422uint cVal = uint.MaxValue; 1426(!ParseInteger(s, ref cVal) || (cVal != uint.MaxValue && cVal != 1))) { 1434if (cMax == uint.MaxValue) { 1447if (uint.MaxValue != cVal) { 1457if (uint.MaxValue != cVal) { 1467if (cMin != uint.MaxValue && cMax != uint.MaxValue && cMin > cMax) {
System\Xml\Schema\XdrValidator.cs (2)
414if (decl.MaxLength != uint.MaxValue) { 419if (decl.MinLength != uint.MaxValue) {
System\Xml\Schema\XmlValueConverter.cs (1)
866if (value < (long) UInt32.MinValue || value > (long) UInt32.MaxValue)
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2236return (UInt32) ((ulong) last + (ulong) UInt32.MaxValue + 1 - first);
WindowsBase (24)
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryBlock.cs (2)
308(Offset >= UInt32.MaxValue) || 309(Size >= UInt32.MaxValue);
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (9)
84if (header._compressedSize == UInt32.MaxValue) 88if (header._uncompressedSize == UInt32.MaxValue) 92if (header._relativeOffsetOfLocalHeader == UInt32.MaxValue) 351if ((compressedSize >= UInt32.MaxValue) || 352(uncompressedSize >= UInt32.MaxValue) || 353(offset >= UInt32.MaxValue)) 361_compressedSize = UInt32.MaxValue; 362_uncompressedSize = UInt32.MaxValue; 363_relativeOffsetOfLocalHeader = UInt32.MaxValue;
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (4)
128UInt32 centralDirBlockSize = UInt32.MaxValue; 129UInt32 centralDirOffset = UInt32.MaxValue; 288(_sizeOfTheCentralDirectory == UInt32.MaxValue) || 289(_offsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber == UInt32.MaxValue));
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (7)
119if (header._compressedSize == UInt32.MaxValue) 123if (header._uncompressedSize == UInt32.MaxValue) 337if ((compressedSize >= UInt32.MaxValue) || 338(uncompressedSize >= UInt32.MaxValue) || 339(offset >= UInt32.MaxValue)) 346_compressedSize = UInt32.MaxValue; 347_uncompressedSize = UInt32.MaxValue;
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (2)
347if (zipIoEocd.SizeOfTheCentralDirectory < UInt32.MaxValue) 350if (zipIoEocd.OffsetOfStartOfCentralDirectory < UInt32.MaxValue)