115 references to MaxValue
mscorlib (19)
system\convert.cs (1)
1298if (value > Int64.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int64"));
system\io\isolatedstorage\isolatedstorage.cs (1)
1186m_Quota = Int64.MaxValue;
system\io\isolatedstorage\isolatedstoragefile.cs (3)
330return Int64.MaxValue; 359return Int64.MaxValue; 402return Int64.MaxValue;
system\io\unmanagedmemorystream.cs (1)
93private const long UnmanagedMemStreamMaxLength = Int64.MaxValue;
system\reflection\assembly.cs (1)
2524if (length > Int64.MaxValue)
system\security\permissions\isolatedstoragepermission.cs (6)
72m_userQuota = Int64.MaxValue; 73m_machineQuota = Int64.MaxValue; 74m_expirationDays = Int64.MaxValue ; 256m_userQuota = Int64.MaxValue; 257m_machineQuota = Int64.MaxValue; 258m_expirationDays = Int64.MaxValue ;
system\threading\Tasks\ParallelLoopState.cs (2)
550internal long m_lowestBreakIteration = Int64.MaxValue; 567if (m_lowestBreakIteration == Int64.MaxValue) return null;
system\timespan.cs (4)
58internal const long MaxSeconds = Int64.MaxValue / TicksPerSecond; 61internal const long MaxMilliSeconds = Int64.MaxValue / TicksPerMillisecond; 68public static readonly TimeSpan MaxValue = new TimeSpan(Int64.MaxValue); 234if ((millis > Int64.MaxValue / TicksPerMillisecond) || (millis < Int64.MinValue / TicksPerMillisecond))
PresentationBuildTasks (2)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
812if (index == Int64.MaxValue) 826if (index < Int64.MaxValue)
PresentationCore (2)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
1137&& (_highWaterMark <= Int64.MaxValue - (long) _additionalRequestThreshold) // Ensure that we don't get overflow from the next line
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (1)
893periodInTicks = Int64.MaxValue / 2;
PresentationFramework (3)
src\Framework\System\Windows\Documents\Speller.cs (1)
1579ScanRange(start, end, Int64.MaxValue /* timeLimit */);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
280bamlRecord = ReadNextRecordWithDebugExtension(Int64.MaxValue, recordType);
src\Framework\System\Windows\TriggerBase.cs (1)
367if( _nextGlobalLayerRank == Int64.MaxValue )
System (1)
net\System\Net\_ListenerResponseStream.cs (1)
462m_LeftToWrite = long.MaxValue;
System.Activities (2)
System\Activities\Runtime\ActivityExecutor.cs (1)
2879if (this.lastInstanceId == long.MaxValue)
System\Activities\Runtime\BookmarkManager.cs (1)
183if (this.nextId == long.MaxValue)
System.Configuration (2)
System\Configuration\LongValidator.cs (1)
30private long _maxValue = long.MaxValue;
System\Configuration\LongValidatorAttribute.cs (1)
26private long _max = long.MaxValue;
System.Core (1)
Microsoft\Scripting\Compiler\ILGen.cs (1)
959} else if (Int64.MinValue <= value && value <= Int64.MaxValue) {
System.Data (22)
fx\src\data\System\Data\Common\Int64Storage.cs (1)
97Int64 min = Int64.MaxValue;
fx\src\data\System\Data\Common\TimeSpanStorage.cs (2)
117if (stDev > long.MaxValue) { 118stDev = long.MaxValue;
fx\src\data\System\Data\ProviderBase\TimeoutTimer.cs (2)
148return (_isInfiniteTimeout) ? Int64.MaxValue : _timerExpire; 168milliseconds = long.MaxValue;
fx\src\data\System\Data\SqlClient\SqlStatistics.cs (4)
174if (long.MaxValue - value > summand) { 178value = long.MaxValue; 183if (value < long.MaxValue) value++; 193_connectionTime = long.MaxValue;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
753if (Int64.MaxValue == timerExpire) { 933_timeoutTime = Int64.MaxValue;
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (4)
174if (Int64.MaxValue == timeoutTime) { 196result = Int64.MaxValue; // no timeout... 206result = Int64.MaxValue; 215if (0 != timeoutTime && Int64.MaxValue != timeoutTime) {
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (1)
99internal const ulong x_llMax = Int64.MaxValue; // Max of Int64
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (5)
212if (lPartialResult < 0 || lPartialResult > Int64.MaxValue) 218if (lPartialResult < 0 || lPartialResult > Int64.MaxValue) 335if (value > (float)Int64.MaxValue || value < (float)Int64.MinValue) 350if (value > (double)Int64.MaxValue || value < (double)Int64.MinValue) 690public static readonly SqlInt64 MaxValue = new SqlInt64(Int64.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
115if (fPositive && ulValue > (ulong)(Int64.MaxValue) ||
System.Data.Entity (5)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (1)
174if (previousValue < long.MaxValue)
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
753ValidateIntegralDefaultValue(scalar, long.MinValue, long.MaxValue);
System\Data\Metadata\Helper.cs (1)
521{ PrimitiveTypeKind.Int64, new long[] { Int64.MinValue, Int64.MaxValue } },
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (2)
214_lastDataOffsetRead = long.MaxValue; 231if (_lastColumnRead > ordinal || (_lastColumnRead == ordinal && _lastDataOffsetRead == long.MaxValue)) {
System.Management (1)
managementobjectcollection.cs (1)
543int timeout = (collectionObject.options.Timeout.Ticks == Int64.MaxValue) ?
System.Runtime.Serialization (5)
System\Xml\ValueHandle.cs (1)
291if (value <= long.MaxValue)
System\Xml\XmlBinaryWriter.cs (2)
531if (value <= Int64.MaxValue) 774if (f >= long.MinValue && f <= long.MaxValue && (l = (long)f) == f)
System\Xml\XmlConverter.cs (2)
576if (value > long.MaxValue / 10) 579if (value > long.MaxValue - digit)
System.ServiceModel (5)
System\ServiceModel\Channels\PeerHelpers.cs (1)
535string message = SR.GetString(SR.ArgumentOutOfRange, PeerTransportConstants.MinMessageSize, long.MaxValue);
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (1)
608if (this.nextReplySequenceNumber == Int64.MaxValue)
System\ServiceModel\Channels\TransmissionStrategy.cs (2)
831if (this.windowStart + this.window.Count + this.waitQueue.Count == Int64.MaxValue) 915public const long MaxMeanRtt = long.MaxValue / 3;
System\ServiceModel\Channels\WsrmFault.cs (1)
588writer.WriteValue(Int64.MaxValue);
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\Configuration\UdpTransportSettingsElement.cs (2)
132[LongValidator(MinValue = 1L, MaxValue = long.MaxValue)] 231new LongValidator(1L, long.MaxValue),
System.ServiceModel.Internals (6)
System\Runtime\IOThreadTimer.cs (2)
292timerGroup.WaitableTimer.Set(long.MaxValue); 360this.waitableTimer.Set(long.MaxValue);
System\Runtime\Ticks.cs (4)
49if (firstTicks == long.MaxValue || firstTicks == long.MinValue) 53if (secondTicks == long.MaxValue || secondTicks == long.MinValue) 57if (firstTicks >= 0 && long.MaxValue - firstTicks <= secondTicks) 59return long.MaxValue - 1;
System.Transactions (6)
System\Transactions\InternalTransaction.cs (2)
348this.absoluteTimeout = long.MaxValue; 369this.absoluteTimeout = long.MaxValue;
System\Transactions\TransactionState.cs (1)
2935if ( tx.AbsoluteTimeout == long.MaxValue )
System\Transactions\TransactionTable.cs (3)
185this.headBucketSet = new BucketSet( this, long.MaxValue ); 206return long.MaxValue; 250if ( txNew.AbsoluteTimeout != long.MaxValue )
System.Web (2)
Configuration\CacheSection.cs (1)
87new LongValidator(0, long.MaxValue),
Management\webeventbuffer.cs (1)
94static long Infinite = Int64.MaxValue;
System.Web.DataVisualization (3)
Common\General\ChartAreaAxes.cs (3)
1740 long ticksInterval = long.MaxValue; 1844 if(ticksInterval == long.MaxValue) 1856 long curentTicksInterval = long.MaxValue;
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
966if (value <= (ulong)Int64.MaxValue) return CreateLiteral((long)value, text);
System.Web.Services (4)
System\Web\Services\Protocols\SoapServerProtocol.cs (4)
278Int64 timeoutTicks = Int64.MaxValue - timeout <= nowTicks ? Int64.MaxValue : nowTicks + timeout; 281if (timeoutTicks == Int64.MaxValue) { 289if (timeoutTicks == Int64.MaxValue) {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
826maxDigits = (int)Math.Floor(Math.Log(Int64.MaxValue, baseSize));
System.Windows.Forms.DataVisualization (3)
Common\General\ChartAreaAxes.cs (3)
1740 long ticksInterval = long.MaxValue; 1844 if(ticksInterval == long.MaxValue) 1856 long curentTicksInterval = long.MaxValue;
System.Workflow.Activities (2)
Rules\Parser\Scanner.cs (2)
652if (value > long.MaxValue) // too big for long, keep it ulong 851if (value > long.MaxValue) // too big for long, keep it ulong
System.Xml (4)
System\Xml\BinaryXml\SqlUtils.cs (1)
41internal static readonly ulong x_llMax = Int64.MaxValue; // Max of Int64
System\Xml\Schema\DataTypeImplementation.cs (1)
2963static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(long.MinValue, long.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
817if (value < (decimal) Int64.MinValue || value > (decimal) Int64.MaxValue)
System\Xml\Schema\XsdDuration.cs (1)
332if (ticks == (ulong) Int64.MaxValue + 1) {
WindowsBase (11)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (2)
936private SparseMemoryStream _readCache = new SparseMemoryStream(Int32.MaxValue, Int64.MaxValue, false); 937private SparseMemoryStream _writeCache = new SparseMemoryStream(Int32.MaxValue, Int64.MaxValue, false);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (2)
326Int64.MaxValue/*bytes to copy*/, 677Int64.MaxValue/*bytes to copy*/,
Base\MS\Internal\IO\Zip\ZipIOExtraFieldZip64Element.cs (3)
314if ((_compressedSize >= Int64.MaxValue) || 315(_uncompressedSize >= Int64.MaxValue) || 316(_offsetOfLocalHeader >= Int64.MaxValue))
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (2)
387(_sizeOfTheCentralDirectory > Int64.MaxValue) || 388(_offsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber > Int64.MaxValue))
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs (1)
240if (_offsetOfStartOfZip64EndOfCentralDirectoryRecord > Int64.MaxValue) // C# does proper upcasting to ULONG of both operands
Base\System\IO\Packaging\EncryptedPackage.cs (1)
1162Int64.MaxValue, /*bytes to copy*/