1045 references to MaxValue
mscorlib (161)
microsoft\win32\registrykey.cs (3)
1193if (size == Int32.MaxValue) { 1197else if (size > (Int32.MaxValue / 2)) { 1199size = Int32.MaxValue;
system\array.cs (21)
182if (len > Int32.MaxValue || len < Int32.MinValue) 322if (length > Int32.MaxValue || length < Int32.MinValue) 331if (sourceIndex > Int32.MaxValue || sourceIndex < Int32.MinValue) 333if (destinationIndex > Int32.MaxValue || destinationIndex < Int32.MinValue) 335if (length > Int32.MaxValue || length < Int32.MinValue) 415if (index > Int32.MaxValue || index < Int32.MinValue) 425if (index1 > Int32.MaxValue || index1 < Int32.MinValue) 427if (index2 > Int32.MaxValue || index2 < Int32.MinValue) 437if (index1 > Int32.MaxValue || index1 < Int32.MinValue) 439if (index2 > Int32.MaxValue || index2 < Int32.MinValue) 441if (index3 > Int32.MaxValue || index3 < Int32.MinValue) 462if (index > Int32.MaxValue || index < Int32.MinValue) 534if (index > Int32.MaxValue || index < Int32.MinValue) 544if (index1 > Int32.MaxValue || index1 < Int32.MinValue) 546if (index2 > Int32.MaxValue || index2 < Int32.MinValue) 556if (index1 > Int32.MaxValue || index1 < Int32.MinValue) 558if (index2 > Int32.MaxValue || index2 < Int32.MinValue) 560if (index3 > Int32.MaxValue || index3 < Int32.MinValue) 581if (index > Int32.MaxValue || index < Int32.MinValue) 1071if (index > Int32.MaxValue || index < Int32.MinValue) 2394if (i != Int32.MaxValue) ++i;
system\bitconverter.cs (2)
383if (length > (Int32.MaxValue / 3)) { 385throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_LengthTooLarge", (Int32.MaxValue / 3)));
system\collections\bitarray.cs (2)
78if (bytes.Length > Int32.MaxValue / BitsPerByte) { 147if (values.Length > Int32.MaxValue / BitsPerInt32) {
system\Collections\Concurrent\ConcurrentDictionary.cs (2)
1814m_budget = int.MaxValue; 1860m_budget = int.MaxValue;
system\Collections\Concurrent\ConcurrentStack.cs (1)
682Random r = new Random(Environment.TickCount & Int32.MaxValue); // avoid the case where TickCount could return Int32.MinValue
system\collections\hashtable.cs (2)
283if (rawsize > Int32.MaxValue) 1731for (int i = (min | 1); i < Int32.MaxValue;i+=2)
system\collections\objectmodel\keyedcollection.cs (1)
40dictionaryCreationThreshold = int.MaxValue;
system\convert.cs (4)
1061if (value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32")); 1071if (value < Int32.MinValue || value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32")); 1078if (value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32")); 2332if (outlen > int.MaxValue)
system\gc.cs (2)
150if( (4 == IntPtr.Size) && (bytesAllocated > Int32.MaxValue) ) { 166if( (4 == IntPtr.Size) && (bytesAllocated > Int32.MaxValue) ) {
system\intptr.cs (1)
82if (Size==4 && (l>Int32.MaxValue || l<Int32.MinValue)) {
system\io\file.cs (1)
922if (fileLength > Int32.MaxValue)
system\io\memorystream.cs (4)
64private const int MemStreamMaxLength = Int32.MaxValue; 528if (value < 0 || value > Int32.MaxValue) { 536Contract.Assert(MemStreamMaxLength == Int32.MaxValue); // Check parameter validation logic in this method if this fails. 537if (value > (Int32.MaxValue - _origin)) {
system\io\unmanagedmemorystream.cs (1)
340if (value > (long) Int32.MaxValue || _mem + value < _mem)
system\number.cs (1)
785Int32 maxParseDigits = bigNumber ? Int32.MaxValue : NumberMaxDigits;
system\random.cs (5)
28private const int MBIG = Int32.MaxValue; 62int subtraction = (Seed == Int32.MinValue) ? Int32.MaxValue : Math.Abs(Seed); 148d += (Int32.MaxValue - 1); // get a number in range [0 .. 2 * Int32MaxValue - 1) 149d /= 2*(uint)Int32.MaxValue - 1 ; 167if( range <= (long)Int32.MaxValue) {
system\reflection\emit\methodbuilder.cs (4)
1496if ((long)tryOffset + tryLength > Int32.MaxValue) 1498throw new ArgumentOutOfRangeException("tryLength", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, Int32.MaxValue - tryOffset)); 1501if ((long)handlerOffset + handlerLength > Int32.MaxValue) 1503throw new ArgumentOutOfRangeException("handlerLength", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, Int32.MaxValue - handlerOffset));
system\resources\resourcewriter.cs (2)
687if (ms.Length > Int32.MaxValue) 699if (s.Length > Int32.MaxValue)
system\runtime\compilerservices\ConditionalWeakTable.cs (3)
177int hashCode = RuntimeHelpers.GetHashCode(key) & Int32.MaxValue; 464int hashCode = RuntimeHelpers.GetHashCode(key) & Int32.MaxValue; 569int hashCode = RuntimeHelpers.GetHashCode(key) & Int32.MaxValue;
system\runtime\interopservices\windowsruntime\bindablevectortocollectionadapter.cs (1)
43if (((uint)Int32.MaxValue) < size)
system\runtime\interopservices\windowsruntime\bindablevectortolistadapter.cs (3)
66if (((uint)Int32.MaxValue) < size) 120if (((uint)Int32.MaxValue) < index) 150if (((uint)Int32.MaxValue) < index)
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (1)
66if (((UInt32)Int32.MaxValue) < data.Size)
system\runtime\interopservices\windowsruntime\ireadonlylisttoivectorviewadapter.cs (1)
134if (((uint)Int32.MaxValue) <= index || index >= (uint)listCapacity)
system\runtime\interopservices\windowsruntime\listtobindablevectoradapter.cs (1)
183if (((uint)Int32.MaxValue) <= index || index >= (uint)listCapacity)
system\runtime\interopservices\windowsruntime\listtobindablevectorviewadapter.cs (1)
42if (((uint)Int32.MaxValue) <= index || index >= (uint)listCapacity)
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (1)
216if (((uint)Int32.MaxValue) <= index || index >= (uint)listCapacity)
system\runtime\interopservices\windowsruntime\maptocollectionadapter.cs (3)
50if (((uint)Int32.MaxValue) < size) 62if (((uint)Int32.MaxValue) < size) 185if (((uint)Int32.MaxValue) < index)
system\runtime\interopservices\windowsruntime\mapviewtoreadonlycollectionadapter.cs (2)
50if (((uint)Int32.MaxValue) < size) 62if (((uint)Int32.MaxValue) < size)
system\runtime\interopservices\windowsruntime\vectortocollectionadapter.cs (2)
42if (((uint)Int32.MaxValue) < size) 121if (((uint)Int32.MaxValue) < index)
system\runtime\interopservices\windowsruntime\vectortolistadapter.cs (1)
69if (((uint)Int32.MaxValue) < index)
system\runtime\interopservices\windowsruntime\vectorviewtoreadonlycollectionadapter.cs (1)
42if (((uint)Int32.MaxValue) < size)
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (1)
1283private const int THRESHOLD_FOR_VALUETYPE_IDS = Int32.MaxValue;
system\runtime\serialization\objectmanager.cs (6)
1619if (newLength==Int32.MaxValue) { 1622newLength=Int32.MaxValue; 1708if (newLength==Int32.MaxValue) { 1711newLength=Int32.MaxValue; 1753if (newLength==Int32.MaxValue) { 1756newLength=Int32.MaxValue;
system\runtime\serialization\serializationinfo.cs (2)
264if (Int32.MaxValue > m_currMember) 266newSize = Int32.MaxValue;
system\security\securestring.cs (1)
294Contract.Assert(index <= Int32.MaxValue / sizeof(char));
system\string.cs (3)
977return SplitInternal(separator, Int32.MaxValue, StringSplitOptions.None); 999return SplitInternal(separator, Int32.MaxValue, options); 1051return Split(separator, Int32.MaxValue, options);
system\text\decoderbestfitfallback.cs (1)
130if (iCount == int.MaxValue)
system\text\decoderreplacementfallback.cs (1)
155if (fallbackCount == int.MaxValue)
system\text\encoderbestfitfallback.cs (1)
157if (iCount == int.MaxValue)
system\text\encoderreplacementfallback.cs (1)
188if (fallbackCount == int.MaxValue)
system\text\stringbuilder.cs (3)
139m_MaxCapacity = Int32.MaxValue; 187int persistedMaxCapacity = Int32.MaxValue; 844Contract.Assert(insertingChars + this.Length < Int32.MaxValue);
system\threading\CancellationTokenSource.cs (2)
289if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 428if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue)
system\threading\CountdownEvent.cs (5)
362else if (observedCount > (Int32.MaxValue - signalCount)) 479/// than <see cref="System.Int32.MaxValue"/>.</exception> 485if (totalMilliseconds < -1 || totalMilliseconds > int.MaxValue) 507/// than <see cref="System.Int32.MaxValue"/>.</exception> 515if (totalMilliseconds < -1 || totalMilliseconds > int.MaxValue)
system\threading\ManualResetEventSlim.cs (4)
460/// than <see cref="System.Int32.MaxValue"/>.</exception> 467if (totalMilliseconds < -1 || totalMilliseconds > int.MaxValue) 489/// than <see cref="System.Int32.MaxValue"/>.</exception> 498if (totalMilliseconds < -1 || totalMilliseconds > int.MaxValue)
system\threading\monitor.cs (1)
135if (tm < -1 || tm > (long)Int32.MaxValue)
system\threading\readerwriterlock.cs (3)
109if (tm < -1 || tm > (long) Int32.MaxValue) 135if (tm < -1 || tm > (long) Int32.MaxValue) 194if (tm < -1 || tm > (long) Int32.MaxValue)
system\threading\SemaphoreSlim.cs (8)
84private const int NO_MAXIMUM = Int32.MaxValue; 240/// than <see cref="System.Int32.MaxValue"/>.</exception> 245if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 269/// than <see cref="System.Int32.MaxValue"/>.</exception> 275if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 545/// an infinite time-out -or- timeout is greater than <see cref="System.Int32.MaxValue"/>. 566/// an infinite time-out -or- timeout is greater than <see cref="System.Int32.MaxValue"/>. 572if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue)
system\threading\SpinLock.cs (3)
222/// than <see cref="System.Int32.MaxValue"/> milliseconds. 228if (totalMilliseconds < -1 || totalMilliseconds > int.MaxValue) 332int turn = int.MaxValue;
system\threading\SpinWait.cs (4)
178m_count = (m_count == int.MaxValue ? YIELD_THRESHOLD : m_count + 1); 222/// <see cref="System.Int32.MaxValue"/>.</exception> 227if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 360if (elapsedMilliseconds > int.MaxValue)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
123if (m_maxConcurrencyLevel == UNLIMITED_PROCESSING) m_maxConcurrencyLevel = Int32.MaxValue; 124if (m_maxItemsPerTask == UNLIMITED_PROCESSING) m_maxItemsPerTask = Int32.MaxValue;
system\threading\Tasks\Parallel.cs (1)
137if ((schedulerMax > 0) && (schedulerMax != Int32.MaxValue))
system\threading\Tasks\ParallelLoopState.cs (2)
484internal volatile int m_lowestBreakIteration = Int32.MaxValue; 497if (m_lowestBreakIteration == Int32.MaxValue) return null;
system\threading\Tasks\ParallelRangeManager.cs (4)
193Contract.Assert((nFromInclusiveLocal <= Int32.MaxValue) && (nFromInclusiveLocal >= Int32.MinValue) && 194(nToExclusiveLocal <= Int32.MaxValue) && (nToExclusiveLocal >= Int32.MinValue)); 252Contract.Assert((uSpan / uRangeSize) < Int32.MaxValue); 265_use32BitCurrentIndex = IntPtr.Size == 4 && nRangeSize <= int.MaxValue;
system\threading\Tasks\ProducerConsumerQueues.cs (1)
150Contract.Assert(MAX_SEGMENT_SIZE < Int32.MaxValue / 2, "Max segment size * 2 must be < Int32.MaxValue, or else overflow could occur.");
system\threading\Tasks\Task.cs (7)
3073/// <see cref="System.Int32.MaxValue"/>. 3078if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 4927/// <see cref="System.Int32.MaxValue"/>. 4933if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 5352/// <see cref="System.Int32.MaxValue"/>. 5358if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue) 5822if (totalMilliseconds < -1 || totalMilliseconds > Int32.MaxValue)
system\threading\Tasks\TaskScheduler.cs (1)
174return Int32.MaxValue;
system\threading\thread.cs (4)
701if (tm < -1 || tm > (long) Int32.MaxValue) 732if (tm < -1 || tm > (long) Int32.MaxValue) 768t_currentProcessorIdCache = ((currentProcessorId << ProcessorIdCacheShift) & Int32.MaxValue) | ProcessorIdRefreshRate; 850maxStackSize = (int)Math.Min(defaultStackSize, (ulong)(uint)int.MaxValue);
system\threading\ThreadLocal.cs (1)
592return int.MaxValue;
system\threading\threadpool.cs (4)
159if (tail == int.MaxValue) 166if (m_tailIndex == int.MaxValue) 1560if (tm > (long) Int32.MaxValue) 1579if (tm > (long) Int32.MaxValue)
system\threading\waithandle.cs (4)
205if (-1 > tm || (long) Int32.MaxValue < tm) 378if (-1 > tm || (long) Int32.MaxValue < tm) 483if (-1 > tm || (long) Int32.MaxValue < tm) 537if (-1 > tm || (long) Int32.MaxValue < tm)
PresentationBuildTasks (4)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (2)
68if (length > (long)System.Int32.MaxValue) 70throw new ApplicationException(SR.Get(SRID.ResourceTooBig, _sourcePath, System.Int32.MaxValue));
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (1)
453if ( !( scaledInteger <= Int32.MaxValue ) // equivalent to scaledInteger > MaxValue, but take care of NaN.
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
654if (fileStream.Length > int.MaxValue)
PresentationCore (31)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
79if (length < 0 || length > int.MaxValue)
Core\CSharp\MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
432return InternalGetHashCode(int.MaxValue);
Core\CSharp\MS\Internal\Generic\Span.cs (1)
433private const int MaxCch = int.MaxValue;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\Codec.cs (1)
94if ( Int32.MaxValue >= MathHelper.AbsNoThrow(llxfData) )
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (2)
189Debug.Assert(nDataLen > 0 && nDataLen - 1 <= Int32.MaxValue); 193Debug.Assert(nDataLen <= Int32.MaxValue);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1506maximum = Int32.MaxValue;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (1)
322Int32.MaxValue == propertyInfo.Maximum &&
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
678if (block.Offset > (Int32.MaxValue - block.Length + 1))
Core\CSharp\MS\Internal\Media\XamlSerializationHelper.cs (1)
453if ( !( scaledInteger <= Int32.MaxValue ) // equivalent to scaledInteger > MaxValue, but take care of NaN.
Core\CSharp\MS\Internal\Shaping\OpenTypeCommon.cs (3)
711FirstChar = int.MaxValue; 712AfterLastChar = int.MaxValue; 774if (FirstChar == int.MaxValue)
Core\CSharp\MS\Internal\Shaping\OpenTypeLayout.cs (1)
151public const int InvalidOffset = int.MaxValue;
Core\CSharp\MS\Internal\Shaping\Substitution.cs (1)
291int firstLigaChar=int.MaxValue;
Core\CSharp\MS\Internal\Span.cs (1)
574_cch = int.MaxValue;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
119int widthLeft = (pap.Wrap && paragraphWidth > 0) ? paragraphWidth : int.MaxValue;
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (1)
218if(plsLineInfo->dvrMultiLineHeight == int.MaxValue)
Core\CSharp\System\Windows\DataObject.cs (1)
2705_current = _current + (int)Math.Min(celt, Int32.MaxValue - _current);
Core\CSharp\System\Windows\Documents\DocumentPaginator.cs (1)
100GetPage(int.MaxValue);
Core\CSharp\System\Windows\GlobalEventManager.cs (1)
435if (_globalIndexToEventMap.Count >= Int32.MaxValue)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (2)
785indexes[x] = Int32.MaxValue; 817if ( indexes[y] != Int32.MaxValue )
Core\CSharp\System\Windows\Media\Animation\RepeatBehavior.cs (1)
250return int.MaxValue - 42;
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (2)
457unicodeScalar = int.MaxValue; 567if (_unicodeScalar < int.MaxValue)
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
2042private int _maxLineCount = int.MaxValue;
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (1)
546Debug.Assert(cbExtraData <= (uint)Int32.MaxValue);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
332Invariant.Assert(lockBufferStride <= Int32.MaxValue);
Core\CSharp\System\Windows\Media\PathGeometry.cs (1)
280Debug.Assert(pSegmentPoly->Count <= Int32.MaxValue);
Core\CSharp\System\Windows\Media\RenderData.cs (1)
512Debug.Assert(index <= (uint)Int32.MaxValue);
PresentationFramework (64)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
385startOffset = Int32.MaxValue;
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
478int bestScore = int.MaxValue;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
149protected const long MaxBufferSize = (Int32.MaxValue / 4) * 3;
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (2)
336_documentPageView.PageNumber = int.MaxValue; 371e.PageNumber != int.MaxValue &&
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
2850cpcCur = tableResult.GetCellAbove(suggestedX, int.MaxValue, int.MaxValue);
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (2)
169_owner.OnPagesChanged(0, int.MaxValue/2); 202_owner.OnPagesChanged(pageStart, int.MaxValue/2);
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (2)
99if (int.MaxValue - size < startIndex) 102highestIndex = int.MaxValue;
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (2)
115if (int.MaxValue - index < indexFirstParaInSubtrack) 117adjustedIndex = int.MaxValue;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (3)
667int iClosestDistance = int.MaxValue; 1050int iClosestDistance = int.MaxValue; 1135int iClosestDistance = int.MaxValue;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
173fstxtprops.cMaxConsecutiveHyphens = int.MaxValue;
src\Framework\MS\Internal\PtsTable\RowSpanVector.cs (3)
53_entries[0].Start = int.MaxValue / 2; 54_entries[0].Range = int.MaxValue / 2; 55_entries[0].Ttl = int.MaxValue;
src\Framework\MS\Internal\Utility\TraceLog.cs (1)
27internal TraceLog() : this(Int32.MaxValue) {}
src\Framework\System\Windows\Annotations\AnnotationService.cs (2)
777AdornerPresentationContext.SetZLevelRange(0, Int32.MaxValue / 2 + 1, Int32.MaxValue);
src\Framework\System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
61else if ((owner.PageNumber >= 0) && (owner.PageNumber < int.MaxValue))
src\Framework\System\Windows\Controls\Grid.cs (4)
954extData.CellGroup1 = int.MaxValue; 955extData.CellGroup2 = int.MaxValue; 956extData.CellGroup3 = int.MaxValue; 957extData.CellGroup4 = int.MaxValue;
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
2873public virtual int ContainerCount { get { return Int32.MaxValue; } }
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
761(e.Count == int.MaxValue || this.PageNumber <= e.Start + e.Count))
src\Framework\System\Windows\Controls\TextBox.cs (4)
669Int32.MaxValue, 677[DefaultValue(Int32.MaxValue)] 1822if (MaxLines < Int32.MaxValue && this.ScrollViewer.MaxHeight != value) 1858if (MaxLines < Int32.MaxValue && RenderScope.MaxHeight != value)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1004int absCount = (count == int.MinValue) ? int.MaxValue : Math.Abs(count);
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
796left = int.MaxValue; 797top = int.MaxValue;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
2173int firstItemInViewportIndex = Int32.MinValue, lastItemInViewportIndex = Int32.MaxValue, firstItemInViewportChildIndex = Int32.MinValue, firstItemInExtendedViewportIndex = Int32.MinValue; 3948CleanupContainers(Int32.MaxValue, Int32.MaxValue, itemsControl); 11889_luThreshold = (luThreshold <= 0) ? Int32.MaxValue : luThreshold;
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
1025private const int DefaultZOrder = System.Int32.MaxValue;
src\Framework\System\windows\Documents\CaretElement.cs (3)
1154else if (value > Int32.MaxValue) 1156i = Int32.MaxValue; 1328internal const int ZOrderValue = System.Int32.MaxValue / 2;
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
872_paginator.NotifyPagesChanged(new PagesChangedEventArgs(PageCount, int.MaxValue));
src\Framework\System\Windows\Documents\FixedFlowMap.cs (2)
106internal const int FixedOrderEndPage = int.MaxValue; 108internal const int FixedOrderEndVisual = int.MaxValue;
src\Framework\System\Windows\Documents\FixedPage.cs (1)
595int zOrder = System.Int32.MaxValue / 2;
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
508int stopAt = Int32.MaxValue;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (2)
355int pageNumber = int.MaxValue; 596_containerElement = new FixedElement(FixedElement.ElementType.Container, _start, _end, int.MaxValue);
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
2032else if (value > Int32.MaxValue) 2034i = Int32.MaxValue;
src\Framework\System\Windows\Documents\List.cs (1)
213if (itemIndex < int.MaxValue)
src\Framework\System\Windows\Documents\Speller.cs (1)
1321leftWordBreak = Int32.MaxValue;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
205new FrameworkPropertyMetadata(Int32.MaxValue)); 2252int maxIndexFirstTab = Int32.MaxValue; 2294int maxIndexFirstTab = Int32.MaxValue; 2295int maxIndex = Int32.MaxValue;
src\Framework\System\Windows\Standard\Utilities.cs (1)
148int bestScore = int.MaxValue;
src\Framework\System\Windows\Window.cs (2)
5952((l > Int32.MaxValue) || (l < Int32.MinValue))) 5968if ((length > Int32.MaxValue) ||
src\Shared\MS\Utility\ItemMap.cs (1)
66int keyPv = Int32.MaxValue;
SMSvcHost (1)
System\ServiceModel\Activation\TransportListener.cs (1)
79ListenerConstants.SharedConnectionBufferSize, null, false, int.MaxValue);
System (75)
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
2951if (fileLength > Int32.MaxValue)
compmod\system\diagnostics\TraceInternal.cs (1)
149if (indentLevel < Int32.MaxValue) {
net\System\Net\_Connection.cs (2)
1880int effectiveMax = maximumHeaderLength <= 0 ? int.MaxValue : (maximumHeaderLength - totalBytesParsed + bytesParsed); 2418if (!fHaveChunked && (contentLength <= (long)Int32.MaxValue))
net\System\Net\_ConnectionGroup.cs (3)
300int minBusyCount = Int32.MaxValue; 311minBusyCount = Int32.MaxValue; 479int minBusyCount = Int32.MaxValue;
net\System\Net\_NTAuthentication.cs (1)
952int maxCount = checked(Int32.MaxValue - 4 - sizes.BlockSize - sizes.SecurityTrailer);
net\System\Net\_ScatterGatherBuffers.cs (2)
28currentChunk = AllocateMemoryChunk(totalSize > Int32.MaxValue ? Int32.MaxValue : (int) totalSize);
net\System\Net\_TimerThread.cs (2)
144(int) (Math.Min((uint) unchecked(Expiration - now), (uint) Int32.MaxValue)) : 0; 699Math.Min(unchecked((uint) (nextTick - newNow)), (uint) (Int32.MaxValue - c_TickCountResolution)) + c_TickCountResolution :
net\System\Net\Cache\_Rfc2616CacheValidators.cs (2)
1511if (ctx.CacheEntry.StreamSize >= Int32.MaxValue) { 1636if (ctx.CacheEntry.StreamSize >= Int32.MaxValue) {
net\System\Net\Cache\IERequestCache.cs (4)
30private const int _MaximumResponseHeadersLength = Int32.MaxValue; 35internal readonly static TimeSpan s_MaxTimeSpanForInt32 = TimeSpan.FromSeconds((double)int.MaxValue); 406entry.OptionalLength = (contentLength < 0L)? 0: contentLength > Int32.MaxValue? Int32.MaxValue: (int)(contentLength);
net\System\Net\Cache\WinInetCache.cs (2)
203if (maxHeadersSize != Int32.MaxValue && (Int32.MaxValue - (key.Length + EntryBuffer.MarshalSize + 1024)*2) > maxHeadersSize) {
net\System\Net\Configuration\WebProxyScriptElement.cs (1)
116SR.GetString(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 0, Int32.MaxValue));
net\System\Net\cookiecontainer.cs (3)
144if (perDomainCapacity != Int32.MaxValue && (perDomainCapacity <= 0 || perDomainCapacity > capacity)) { 164if (value <= 0 || (value < m_maxCookiesPerDomain && m_maxCookiesPerDomain != Int32.MaxValue)) { 207if (value <= 0 || (value > m_maxCookies && value != Int32.MaxValue)) {
net\System\Net\HttpListener.cs (2)
2475Debug.Assert(tokenSize < Int32.MaxValue); 2487Debug.Assert(tokenSize < Int32.MaxValue);
net\System\Net\ServicePoint.cs (8)
34internal const int LoopbackConnectionLimit = Int32.MaxValue; 427if ( !ValidationHelper.ValidateRange(value, Timeout.Infinite, Int32.MaxValue)) { 508if ( !ValidationHelper.ValidateRange(value, Timeout.Infinite, Int32.MaxValue)) { 525int elapsed = elapsedDouble >= (double) Int32.MaxValue ? Int32.MaxValue : (int) elapsedDouble; 559if ( !ValidationHelper.ValidateRange(value, -1, Int32.MaxValue)) { 1291for (retryCount=0; retryCount<int.MaxValue; retryCount++) { 1304if (retryCount == int.MaxValue)
net\System\Net\ServicePointManager.cs (2)
401if (!ValidationHelper.ValidateRange(value, 0, Int32.MaxValue)) { 438if ( !ValidationHelper.ValidateRange(value, Timeout.Infinite, Int32.MaxValue)) {
net\System\Net\webclient.cs (1)
1114if (ContentLength > Int32.MaxValue)
net\System\Net\WebHeaderCollection.cs (1)
1573int effectiveSize = maximumResponseHeadersLength <= 0 ? Int32.MaxValue : maximumResponseHeadersLength - totalResponseHeadersLength + i;
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
448Contract.Assert(dataBufferCount <= (uint)int.MaxValue,
regex\system\text\regularexpressions\Regex.cs (1)
63private static readonly TimeSpan MaximumMatchTimeout = TimeSpan.FromMilliseconds(Int32.MaxValue - 1);
regex\system\text\regularexpressions\RegexCompiler.cs (3)
405if (i <= Int32.MaxValue && i >= Int32.MinValue) { 2801if (c != Int32.MaxValue) { 2954if (c != Int32.MaxValue) {
regex\system\text\regularexpressions\RegexNode.cs (5)
297u._m = min = ((Int32.MaxValue - 1) / u._m < min) ? Int32.MaxValue : u._m * min; 299u._n = max = ((Int32.MaxValue - 1) / u._n < max) ? Int32.MaxValue : u._n * max; 302return min == Int32.MaxValue ? new RegexNode(Nothing, _options) : u;
regex\system\text\regularexpressions\RegexParser.cs (6)
52internal const int MaxValueDiv10 = Int32.MaxValue / 10; 53internal const int MaxValueMod10 = Int32.MaxValue % 10; 371max = Int32.MaxValue; 381max = Int32.MaxValue; 391max = Int32.MaxValue; 1617if (i == Int32.MaxValue)
regex\system\text\regularexpressions\RegexWriter.cs (8)
418if (node._n < Int32.MaxValue || node._m > 1) 435if (node._n < Int32.MaxValue || node._m > 1) 436Emit(RegexCode.Branchcount + Lazy, PopInt(), node._n == Int32.MaxValue ? Int32.MaxValue : node._n - node._m); 508Emit(node._type | bits, (int)node._ch, node._n == Int32.MaxValue ? 509Int32.MaxValue : node._n - node._m); 518(node._n == Int32.MaxValue) ? Int32.MaxValue : node._n - node._m);
services\monitoring\system\diagnosticts\Process.cs (1)
2525return WaitForInputIdle(Int32.MaxValue);
services\timers\system\timers\Timer.cs (1)
66if (roundedInterval > Int32.MaxValue || roundedInterval <= 0) {
sys\system\collections\concurrent\BlockingCollection.cs (8)
339/// <see cref="System.Int32.MaxValue"/>.</exception> 614/// <see cref="System.Int32.MaxValue"/>.</exception> 905/// <see cref="System.Int32.MaxValue"/>.</exception> 1152if (elapsedMilliseconds > int.MaxValue) 1268/// <see cref="System.Int32.MaxValue"/>.</exception> 1781if ((totalMilliseconds < 0 || totalMilliseconds > Int32.MaxValue) && (totalMilliseconds != Timeout.Infinite)) 1784String.Format(CultureInfo.InvariantCulture, SR.GetString(SR.BlockingCollection_TimeoutInvalid), Int32.MaxValue)); 1798String.Format(CultureInfo.InvariantCulture, SR.GetString(SR.BlockingCollection_TimeoutInvalid), Int32.MaxValue));
sys\system\io\ports\SerialPort.cs (1)
1491return (elapsedTime >= 0) ? (int)elapsedTime : Int32.MaxValue;
sys\system\runtime\interopservices\handlecollector.cs (1)
24this( name, initialThreshold, int.MaxValue) {
sys\system\threading\Barrier.cs (1)
586if (totalMilliseconds < -1 || totalMilliseconds > int.MaxValue)
System.Activities (4)
System\Activities\Activity.cs (1)
898Interlocked.CompareExchange(ref nextCacheId, 1, int.MaxValue);
System\Activities\Debugger\SourceLocation.cs (2)
40: this(fileName, line, 1, line, int.MaxValue) 141return this.endColumn == int.MaxValue && this.startLine == this.endLine && this.startColumn == 1;
System\Activities\IdSpace.cs (1)
89if (lastId == int.MaxValue)
System.Activities.DurableInstancing (11)
System\Activities\DurableInstancing\ExtendLockAsyncResult.cs (1)
29base(context, command, store, storeLock, currentTransaction, timeout, int.MaxValue, callback, state)
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (1)
13readonly int expLimit = (int)(Math.Log(Int32.MaxValue, 2)) - 1;
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (2)
74parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\RecoverInstanceLocksAsyncResult.cs (1)
29base(context, command, store, storeLock, currentTransaction, timeout, int.MaxValue, callback, state)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
86parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (1)
184this.bufferedHostLockRenewalPeriod = TimeSpan.FromSeconds(Math.Min(Int32.MaxValue, lockBuffer + this.HostLockRenewalPeriod.TotalSeconds));
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (1)
162if (value < 0 || value > (long)int.MaxValue)
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (2)
47command.Parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.ToInt32(operationTimeout) : Int32.MaxValue });
System.Activities.Presentation (13)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateIdManager.cs (1)
58while (suffix == int.MaxValue)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (1)
46FocusScopeManager.DefaultFocusScopePriority = Int32.MaxValue;
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (1)
513int minimumDistance = int.MaxValue;
System.Activities.Presentation\System\Activities\Presentation\Expressions\TextualExpressionEditor.cs (1)
20new FrameworkPropertyMetadata(Int32.MaxValue));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (6)
288if (p.X != int.MinValue && p.X != int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue) 1127Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue); 1139Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 1270newPoint.X = int.MaxValue; 1274newPoint.Y = int.MaxValue;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
60new FrameworkPropertyMetadata(Int32.MaxValue));
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
53this.tree.Bounds = new Rect(0, 0, int.MaxValue, int.MaxValue);
System.AddIn (1)
System\Addin\Hosting\AddInStore.cs (1)
1033System.Diagnostics.Contracts.Contract.Assert(serializedData.Length <= Int32.MaxValue);
System.Configuration (6)
System\Configuration\InfiniteIntConverter.cs (2)
26if ((int)value == int.MaxValue) { 38return int.MaxValue;
System\Configuration\IntegerValidator.cs (1)
33private int _maxValue = int.MaxValue;
System\Configuration\IntegerValidatorAttribute.cs (1)
26private int _max = int.MaxValue;
System\Configuration\StringValidator.cs (1)
28: this(minLength, int.MaxValue, null) {
System\Configuration\StringValidatorAttribute.cs (1)
26private int _maxLength = int.MaxValue;
System.Core (5)
Microsoft\Scripting\Compiler\ILGen.cs (1)
955if (Int32.MinValue <= value && value <= Int32.MaxValue) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
262if (jumpTableSlots > int.MaxValue) {
System\Linq\Enumerable.cs (1)
1267if (count < 0 || max > Int32.MaxValue) throw Error.ArgumentOutOfRange("count");
System\Linq\ParallelEnumerable.cs (1)
476if (count < 0 || (count > 0 && Int32.MaxValue - (count - 1) < start)) throw new ArgumentOutOfRangeException("count");
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (1)
247if (ltm < -1 || ltm > (long)Int32.MaxValue)
System.Data (75)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateIdManager.cs (1)
58while (suffix == int.MaxValue)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (1)
46FocusScopeManager.DefaultFocusScopePriority = Int32.MaxValue;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (1)
513int minimumDistance = int.MaxValue;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\TextualExpressionEditor.cs (1)
20new FrameworkPropertyMetadata(Int32.MaxValue));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (6)
288if (p.X != int.MinValue && p.X != int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue) 1127Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue); 1139Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 1270newPoint.X = int.MaxValue; 1274newPoint.Y = int.MaxValue;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
60new FrameworkPropertyMetadata(Int32.MaxValue));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
53this.tree.Bounds = new Rect(0, 0, int.MaxValue, int.MaxValue);
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
80internal static readonly SqlMoney MaxSmallMoney = new SqlMoney( ( (Decimal)Int32.MaxValue ) / 10000 );
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
2500if ( bufferLength > Int32.MaxValue ) { 2569if ( bufferLength > Int32.MaxValue ) { 2583if ( bufferLength > Int32.MaxValue ) { 2690if ( bufferLength > Int32.MaxValue ) {
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2459lval = Math.Min((long)Int32.MaxValue, lval);
fx\src\data\System\Data\Common\DataRecordInternal.cs (2)
119if (dataIndex > Int32.MaxValue) { 191if (dataIndex > Int32.MaxValue) {
fx\src\data\System\Data\Common\DataStorage.cs (1)
224return Int32.MaxValue;
fx\src\data\System\Data\Common\Int32Storage.cs (1)
97Int32 min = Int32.MaxValue;
fx\src\data\System\Data\DataTable.cs (1)
47/// <remarks>This limits <see cref="DataRowCollection.Add(DataRow)"/> to <see cref="Int32.MaxValue"/> operations.</remarks>
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (2)
972if (Int32.MaxValue < dataIndex) 2005row[columnSize] = unchecked((int)Math.Min(Math.Max(Int32.MinValue, metadata[i].size.ToInt64()), Int32.MaxValue));
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
774if (dataIndex > Int32.MaxValue) {
fx\src\data\System\Data\OleDb\OleDbParameter.cs (3)
302size = Int32.MaxValue; // WebData 98940 305size = Int32.MaxValue/2; 308size = Int32.MaxValue;
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1454private static readonly SqlMoney x_smSmallMax = new SqlMoney(((Decimal)Int32.MaxValue)/10000);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
6272if (size != Int32.MaxValue) { 6278if (size != Int32.MaxValue/2) { 6286if (size > 0 && size != Int32.MaxValue && requestMetaData[index].MaxLength == SmiMetaData.UnlimitedMaxLengthIndicator) { 6293if (size > 0 && size != Int32.MaxValue/2 && requestMetaData[index].MaxLength == SmiMetaData.UnlimitedMaxLengthIndicator) {
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (5)
156if ((0 < connectionTimeout) && (connectionTimeout < Int32.MaxValue/1000)) 158else if (connectionTimeout >= Int32.MaxValue/1000) 159connectionTimeout = Int32.MaxValue; 163if (connectionTimeout >= Int32.MaxValue / 10) { 164connectionTimeout = Int32.MaxValue;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
1656if (dataIndex > Int32.MaxValue) { 2030if (dataIndex > Int32.MaxValue) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
1279if ((long)Int32.MaxValue > t)
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
30_readTimeout = (int)Math.Min((long)reader.Command.CommandTimeout * 1000L, (long)Int32.MaxValue);
fx\src\data\System\Data\SqlClient\TdsParser.cs (13)
3545Debug.Assert(valLen < (ulong)(Int32.MaxValue), "ProcessReturnValue received data size > 2Gb"); 3547int intlen = valLen > (ulong)(Int32.MaxValue) ? Int32.MaxValue : (int)valLen; 3550intlen = Int32.MaxValue; // If plp data, read it all 4183col.length = Int32.MaxValue; 4738if (!TryReadSqlValue(data, md, md.metaType.IsPlp ? (Int32.MaxValue) : (int)len, stateObj, 5305length = Int32.MaxValue; 7208if (outSSPILength > Int32.MaxValue) { 7602if (s_maxSSPILength > Int32.MaxValue) { 7663if (dtcLength <= Int32.MaxValue) { 10267_size = int.MaxValue; 11336if (stateObj._longlenleft > Int32.MaxValue) 11337bytesSkipped = Int32.MaxValue;
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
532return type == SqlDbType.Udt && length == Int32.MaxValue;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
435remaining = (int)Math.Min((long)Int32.MaxValue, _timeoutMilliseconds); 754timeout = Int32.MaxValue; 758if (timeout > Int32.MaxValue) { 759timeout = Int32.MaxValue; 1629if (!TryReadPlpBytes(ref buf, 0, Int32.MaxValue, out length)) { 1844cbSkip = (int)Math.Min((long)Int32.MaxValue, num);
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (2)
183if (msecRemaining > (long)Int32.MaxValue) { 184return Int32.MaxValue;
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
96 private const long x_lMaxLen = (long)System.Int32.MaxValue;
fx\src\data\System\Data\SQLTypes\SQLChars.cs (1)
87 private const long x_lMaxLen = (long)System.Int32.MaxValue;
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
1082System.Diagnostics.Debug.Assert(Marshal.OffsetOf(typeof(UnsafeNativeMethods.FILE_FULL_EA_INFORMATION), "EaName").ToInt64() <= (Int64) Int32.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (6)
51private const long x_lBitNotIntMax = ~(long)(Int32.MaxValue); 281if (value > (long)Int32.MaxValue || value < (long)Int32.MinValue) 296if (value > (float)Int32.MaxValue || value < (float)Int32.MinValue) 311if (value > (double)Int32.MaxValue || value < (double)Int32.MinValue) 339if (x.m_bLen > 1 || ret > (long)Int32.MaxValue || ret < (long)Int32.MinValue) 636public static readonly SqlInt32 MaxValue = new SqlInt32(Int32.MaxValue);
System.Data.Entity (14)
System\Data\Common\DataRecord.cs (2)
137if (fieldOffset > Int32.MaxValue) 212if (fieldOffset > Int32.MaxValue)
System\Data\Common\DbCommandDefinition.cs (1)
264parameter.Size = Int32.MaxValue;
System\Data\Common\Utils\Boolean\Vertex.cs (3)
35this.Variable = int.MaxValue; 41EntityUtil.BoolExprAssert(variable < int.MaxValue, 108return Variable == int.MaxValue;
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
749ValidateIntegralDefaultValue(scalar, int.MinValue, int.MaxValue);
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlIdentifiers.cs (1)
79for (int count = 0; count < int.MaxValue; count++)
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (4)
358Int32.MaxValue, 381Int32.MaxValue, 450Int32.MaxValue, 473Int32.MaxValue,
System\Data\Metadata\Helper.cs (1)
520{ PrimitiveTypeKind.Int32, new long[] { Int32.MinValue, Int32.MaxValue } },
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
2100return ((DbParameterReferenceExpression)obj).ParameterName.GetHashCode() ^ Int32.MaxValue;
System.Data.Linq (2)
SqlClient\SqlTypeSystemProvider.cs (2)
891if (p1 == int.MaxValue) 902if (p2 == int.MaxValue)
System.Data.Services (19)
parent\Client\System\Data\Services\Client\BatchStream.cs (4)
234if (Int32.MaxValue == offset) 422this.batchLength = Int32.MaxValue; 660this.batchLength = Int32.MaxValue; 1451: base(stream, Int32.MaxValue)
System\Data\Services\DataServiceConfiguration.cs (8)
143this.maxBatchCount = Int32.MaxValue; 144this.maxChangeSetCount = Int32.MaxValue; 145this.maxExpandCount = Int32.MaxValue; 146this.maxExpandDepth = Int32.MaxValue; 147this.maxResultsPerCollection = Int32.MaxValue; 148this.maxObjectCountOnInsert = Int32.MaxValue; 382if (size == Int32.MaxValue) 387if (this.MaxResultsPerCollection != Int32.MaxValue)
System\Data\Services\ExpandSegment.cs (1)
71: this(name, filter, Int32.MaxValue, null, null, null)
System\Data\Services\HttpProcessUtility.cs (1)
93int selectedPreferenceIndex = Int32.MaxValue;
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
616ResourceKeyKind keyKind = (ResourceKeyKind)Int32.MaxValue;
System\Data\Services\RequestQueryProcessor.cs (1)
538segment.MaxResultsExpected != Int32.MaxValue ? (int?)segment.MaxResultsExpected : null);
System\Data\Services\Serializers\Serializer.cs (3)
485Debug.Assert(max == Int32.MaxValue, "Either page size or max result count can be set, but not both"); 490if (max != Int32.MaxValue) 1061if (this.service.Configuration.MaxResultsPerCollection != Int32.MaxValue ||
System.Data.Services.Client (7)
System\Data\Services\Client\ArraySet.cs (1)
72Array.Resize<T>(ref this.items, Math.Min(Math.Max(index, 16), Int32.MaxValue / 2) * 2);
System\Data\Services\Client\BatchStream.cs (4)
234if (Int32.MaxValue == offset) 422this.batchLength = Int32.MaxValue; 660this.batchLength = Int32.MaxValue; 1451: base(stream, Int32.MaxValue)
System\Data\Services\Client\DataServiceContext.cs (1)
1962request.Timeout = (int)Math.Min(Int32.MaxValue, new TimeSpan(0, 0, this.timeout).TotalMilliseconds);
System\Data\Services\Client\QueryResult.cs (1)
400if ((0 < length) && (length <= Int32.MaxValue))
System.Data.SqlXml (21)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
910if (dec >= (decimal) int.MinValue && dec <= (decimal) int.MaxValue && decimal.Truncate(dec) == dec) {
System\Xml\Xsl\QIL\QilPatternVisitor.cs (1)
24private int threshold = Int32.MaxValue;
System\Xml\Xsl\Runtime\NumberFormatter.cs (1)
76protected const int MaxAlphabeticValue = int.MaxValue; // Maximum value that can be represented
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
857public const int Infinity = int.MaxValue;
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
1745if (0 <= dblGroupingSize && dblGroupingSize <= int.MaxValue) { 1754f.Conditional(f.And(f.Lt(f.Double(0), i), f.Lt(i, f.Double(int.MaxValue))),
System\Xml\Xsl\Xslt\XsltInput.cs (2)
175rec.end = new Location(rec.start.Line, int.MaxValue); 299rec.end = new Location(rec.start.Line, int.MaxValue);
System\Xml\Xsl\XsltOld\DbgCompiler.cs (1)
557builtInSheet = compiler.RootAction.CompileImport(compiler, compiler.ResolveUri(builtIn), int.MaxValue);
System\Xml\Xsl\XsltOld\XsltOutput.cs (12)
28private int methodSId = int.MaxValue; 30private int encodingSId = int.MaxValue; 32private int versionSId = int.MaxValue; 34private int omitXmlDeclSId = int.MaxValue; 36private int standaloneSId = int.MaxValue; 38private int doctypePublicSId = int.MaxValue; 40private int doctypeSystemSId = int.MaxValue; 42private int indentSId = int.MaxValue; 44private int mediaTypeSId = int.MaxValue; 56get { return this.standaloneSId != int.MaxValue; } 90if (method == OutputMethod.Html && this.indentSId == int.MaxValue) { // HTML output and Ident wasn't specified 109if (this.indentSId == int.MaxValue) {
System.Drawing (5)
misc\ClientUtils.cs (1)
279private int refCheckThreshold = Int32.MaxValue; // this means this is disabled by default.
misc\GDI\WindowsRegion.cs (4)
191return new Rectangle( -Int32.MaxValue, -Int32.MaxValue, Int32.MaxValue, Int32.MaxValue );
System.IdentityModel (5)
System\IdentityModel\BoundedCache.cs (3)
121if (_capacity == int.MaxValue) 151if (int.MaxValue - size <= _capacity) 153_capacity = int.MaxValue;
System\IdentityModel\XmlAttributeHolder.cs (1)
61int maxSizeOfHeaders = int.MaxValue;
System\IdentityModel\XmlBuffer.cs (1)
64BufferManager.CreateBufferManager(0, int.MaxValue));
System.IO.Log (2)
System\IO\Log\FileRecordSequence.cs (1)
60return Int32.MaxValue;
System\IO\Log\LogLogRecordHeader.cs (1)
140if (padSize > Int32.MaxValue)
System.Net (6)
net\PeerToPeer\Collaboration\Peer.cs (1)
903Interlocked.CompareExchange(ref s_TraceEventId, 0, int.MaxValue);
net\PeerToPeer\PeerNameResolver.cs (5)
572return Resolve(peerName, Cloud.Available, int.MaxValue); 576return Resolve(peerName, cloud, int.MaxValue); 731ResolveAsync(peerName, Cloud.Available, Int32.MaxValue, userState); 736ResolveAsync(peerName, cloud, Int32.MaxValue, userState); 912Interlocked.CompareExchange(ref s_TraceEventId, 0, int.MaxValue);
System.Numerics (11)
System\Numerics\BigInteger.cs (5)
406if (value <= Int32.MaxValue) 422if (Int32.MinValue <= value && value <= Int32.MaxValue) 457if (value <= Int32.MaxValue) 1392else if (shift == Int32.MinValue) return ((value >> Int32.MaxValue) >> 1); 1424else if (shift == Int32.MinValue) return ((value << Int32.MaxValue) << 1);
System\Numerics\BigIntegerBuilder.cs (5)
138if (_uSmall <= int.MaxValue) { 1214if (uuAdNew > int.MaxValue || uuBcNew > int.MaxValue) 1253if (uuAdNew > int.MaxValue || uuBcNew > int.MaxValue)
System\Numerics\NumericsHelpers.cs (1)
47exp = int.MaxValue;
System.Runtime.Caching (9)
System\Caching\Configuration\ConfigUtil.cs (3)
54return Int32.MaxValue; 63int iValue = (milliseconds < (double)Int32.MaxValue) ? (int) milliseconds : Int32.MaxValue;
System\Caching\Configuration\MemoryCacheElement.cs (1)
51new IntegerValidator(0, Int32.MaxValue),
System\Caching\MemoryCacheStatistics.cs (4)
116_configPollingInterval = (milliseconds < (double)Int32.MaxValue) ? (int) milliseconds : Int32.MaxValue; 126_configCacheMemoryLimitMegabytes = ConfigUtil.GetIntValue(config, ConfigUtil.CacheMemoryLimitMegabytes, _configCacheMemoryLimitMegabytes, true, Int32.MaxValue); 275int cacheMemoryLimitMegabytes = ConfigUtil.GetIntValue(config, ConfigUtil.CacheMemoryLimitMegabytes, _configCacheMemoryLimitMegabytes, true, Int32.MaxValue);
System\Caching\MemoryCacheStore.cs (1)
16const int MAX_COUNT = Int32.MaxValue / 2;
System.Runtime.Serialization (62)
System\Runtime\Serialization\CodeExporter.cs (2)
440if (i == Int32.MaxValue) 1578if (i == Int32.MaxValue)
System\Runtime\Serialization\DataContract.cs (2)
548int newSize = (value < Int32.MaxValue / 2) ? value * 2 : Int32.MaxValue;
System\Runtime\Serialization\DataContractSerializer.cs (3)
44: this(type, knownTypes, int.MaxValue, false, false, null) 75: this(type, rootName, rootNamespace, knownTypes, int.MaxValue, false, false, null) 107: this(type, rootName, rootNamespace, knownTypes, int.MaxValue, false, false, null, null)
System\Runtime\Serialization\DataContractSerializerSettings.cs (1)
15private int maxItemsInObjectGraph = int.MaxValue;
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (3)
53: this(type, knownTypes, int.MaxValue, false, null, false) 59: this(type, rootName, knownTypes, int.MaxValue, false, null, false) 64: this(type, rootName, knownTypes, int.MaxValue, false, null, false)
System\Runtime\Serialization\Json\DataContractJsonSerializerSettings.cs (1)
15private int maxItemsInObjectGraph = int.MaxValue;
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
208int newSize = (value < Int32.MaxValue / 2) ? value * 2 : Int32.MaxValue;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
719object forLoop = ilg.For(i, 0, Int32.MaxValue); 907object forLoop = ilg.For(i, 0, Int32.MaxValue);
System\Runtime\Serialization\NetDataContractSerializer.cs (3)
38: this(context, Int32.MaxValue, false, FormatterAssemblyStyle.Full, null) 52: this(rootName, rootNamespace, new StreamingContext(StreamingContextStates.All), Int32.MaxValue, false, FormatterAssemblyStyle.Full, null) 68: this(rootName, rootNamespace, new StreamingContext(StreamingContextStates.All), Int32.MaxValue, false, FormatterAssemblyStyle.Full, null)
System\Runtime\Serialization\ObjectToIdCache.cs (1)
186for (int i = (min | 1); i < Int32.MaxValue; i += 2)
System\Runtime\Serialization\SchemaExporter.cs (1)
353SurrogateDataAnnotationName.Name, SurrogateDataAnnotationName.Namespace, knownTypes, Int32.MaxValue,
System\Runtime\Serialization\SchemaImporter.cs (2)
380if (i == Int32.MaxValue) 1352Int32.MaxValue, false /*ignoreExtensionDataObject*/, true /*preserveObjectReferences*/, null /*dataContractSurrogate*/);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
671object forLoop = ilg.For(i, 0, Int32.MaxValue); 767object forLoop = ilg.For(i, 0, Int32.MaxValue);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
481if (index == Int32.MaxValue) 485SR.GetString(SR.MaxArrayLengthExceeded, Int32.MaxValue, 488int newSize = (index < Int32.MaxValue / 2) ? index * 2 : Int32.MaxValue;
System\Text\Base64Encoding.cs (2)
287if (byteCount < 0 || byteCount > int.MaxValue / 4 * 3 - 2) 288throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", SR.GetString(SR.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2)));
System\Text\BinHexEncoding.cs (2)
125if (byteCount < 0 || byteCount > int.MaxValue / 2) 126throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", SR.GetString(SR.ValueMustBeInRange, 0, int.MaxValue / 2)));
System\Xml\ValueHandle.cs (2)
255if (value >= int.MinValue && value <= int.MaxValue) 263if (value <= int.MaxValue)
System\Xml\XmlBinaryReader.cs (1)
357if (totalLength > int.MaxValue - actual)
System\Xml\XmlBinaryWriter.cs (1)
519if (value >= int.MinValue && value <= int.MaxValue)
System\Xml\XmlBinaryWriterSession.cs (1)
201if (++now == int.MaxValue)
System\Xml\XmlBufferReader.cs (3)
213if (offset > int.MaxValue - count) 274if (windowOffset > int.MaxValue - windowLength) 275windowLength = int.MaxValue - windowOffset;
System\Xml\XmlC14NWriter.cs (6)
379if (prefix.Length > int.MaxValue - ns.Length) 380throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("ns", SR.GetString(SR.CombinedPrefixNSLength, int.MaxValue / maxBytesPerChar))); 382if (totalLength > int.MaxValue / maxBytesPerChar) 383throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("ns", SR.GetString(SR.CombinedPrefixNSLength, int.MaxValue / maxBytesPerChar))); 420if (prefixLength > int.MaxValue - nsLength) 421throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("nsLength", SR.GetString(SR.CombinedPrefixNSLength, int.MaxValue)));
System\Xml\XmlConverter.cs (4)
525if (value > int.MaxValue / 10) 528if (value > int.MaxValue - digit) 918while (value > int.MaxValue) 936Fx.Assert(value >= int.MinValue && value <= int.MaxValue, "");
System\Xml\XmlDictionaryReader.cs (2)
148return CreateMtomReader(stream, encodings, contentType, quotas, int.MaxValue, null); 174return CreateMtomReader(buffer, offset, count, encodings, contentType, quotas, int.MaxValue, null);
System\Xml\XmlDictionaryReaderQuotas.cs (5)
37static XmlDictionaryReaderQuotas maxQuota = new XmlDictionaryReaderQuotas(int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue,
System\Xml\XmlDictionaryString.cs (1)
15internal const int MaxKey = int.MaxValue / 4;
System\Xml\XmlMtomWriter.cs (3)
1168if (newSize == Int32.MaxValue) 1170newSize = (newSize < Int32.MaxValue / 2) ? newSize * 2 : Int32.MaxValue;
System.ServiceModel (156)
System\ServiceModel\Activation\ListenerConstants.cs (1)
21public const int RegistrationMaxConcurrentSessions = int.MaxValue;
System\ServiceModel\Channels\AddressHeader.cs (7)
37return CreateAddressHeader(value, DataContractSerializerDefaults.CreateSerializer(type, int.MaxValue/*maxItems*/)); 49return CreateAddressHeader(name, ns, value, DataContractSerializerDefaults.CreateSerializer(GetObjectType(value), name, ns, int.MaxValue/*maxItems*/)); 107return GetValue<T>(DataContractSerializerDefaults.CreateSerializer(typeof(T), this.Name, this.Namespace, int.MaxValue/*maxItems*/)); 125XmlBuffer buffer = new XmlBuffer(int.MaxValue); 135XmlBuffer buffer = new XmlBuffer(int.MaxValue); 303: base(name.Value, ns.Value, value, DataContractSerializerDefaults.CreateSerializer(GetObjectType(value), name, ns, int.MaxValue/*maxItems*/)) 325buffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Channels\BufferedMessageWriter.cs (2)
33if (maxSizeQuota <= int.MaxValue - initialOffset) 36effectiveMaxSize = int.MaxValue;
System\ServiceModel\Channels\ChannelReliableSession.cs (1)
22Guard guard = new Guard(int.MaxValue);
System\ServiceModel\Channels\Connection.cs (2)
309SR.GetString(SR.ValueMustBeInRange, -1, int.MaxValue))); 324SR.GetString(SR.ValueMustBeInRange, -1, int.MaxValue)));
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (2)
125if (maxReceivedMessageSize > int.MaxValue) 127return int.MaxValue;
System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (1)
35if (bindingElement.TransferMode == TransferMode.Buffered && bindingElement.MaxReceivedMessageSize > int.MaxValue)
System\ServiceModel\Channels\ConnectionOrientedTransportChannelListener.cs (1)
40if (bindingElement.MaxReceivedMessageSize > int.MaxValue)
System\ServiceModel\Channels\ExclusiveNamedPipeTransportManager.cs (1)
32AllowedUsers, true, int.MaxValue),
System\ServiceModel\Channels\FramingChannels.cs (1)
120int.MaxValue, this.BufferManager, SessionEncoder.MaxMessageFrameSize);
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
77if (bindingElement.MaxReceivedMessageSize > int.MaxValue) 551if (MaxBufferSize >= (int.MaxValue - 1024)) // make sure NCL doesn't overflow
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
1474result = messageEncoder.WriteMessage(message, int.MaxValue, bufferManager); 1478result = mtomMessageEncoder.WriteMessage(message, int.MaxValue, bufferManager, 0, this.mtomBoundary);
System\ServiceModel\Channels\HttpChannelListener.cs (1)
70if (bindingElement.MaxReceivedMessageSize > int.MaxValue)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
242if (maxReceivedMessageSize > int.MaxValue) 243return int.MaxValue;
System\ServiceModel\Channels\InternalDuplexBindingElement.cs (2)
250this.priority = Int32.MaxValue - 1; 254this.priority = Int32.MaxValue;
System\ServiceModel\Channels\MaxMessageSizeStream.cs (1)
102if (bytesRemaining > int.MaxValue)
System\ServiceModel\Channels\Message.cs (7)
157return CreateMessage(version, action, body, DataContractSerializerDefaults.CreateSerializer(GetObjectType(body), int.MaxValue/*maxItems*/)); 282return this.GetBodyCore<T>(reader, DataContractSerializerDefaults.CreateSerializer(typeof(T), int.MaxValue/*maxItems*/)); 305XmlBuffer buffer = new XmlBuffer(int.MaxValue); 409XmlBuffer bodyBuffer = new XmlBuffer(int.MaxValue); 1543int maxSizeOfAttributes = int.MaxValue; 1545if (maxSizeOfAttributes < int.MaxValue - 4096) 1861int maxSizeOfHeaders = int.MaxValue;
System\ServiceModel\Channels\MessageBuffer.cs (3)
54return CreateNavigator(int.MaxValue, XmlSpace.None); 64return CreateNavigator(int.MaxValue, space); 146msg = Message.CreateMessage(msgBuffer.GetReader(0), int.MaxValue, this.version);
System\ServiceModel\Channels\MessageEncoderCompressionHandler.cs (2)
19int maxDecompressedSize = (int)Math.Min(maxReceivedMessageSize, int.MaxValue); 60using (BufferManagerOutputStream bufferedOutStream = new BufferManagerOutputStream(SR.MaxSentMessageSizeExceeded, 1024, int.MaxValue, bufferManager))
System\ServiceModel\Channels\MessageFault.cs (3)
35(detail == null ? typeof(object) : detail.GetType()), int.MaxValue/*maxItems*/), "", ""); 168return GetDetail<T>(DataContractSerializerDefaults.CreateSerializer(typeof(T), int.MaxValue/*maxItems*/)); 214XmlBuffer detailBuffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Channels\MessageHeader.cs (1)
431(objectToSerialize == null ? typeof(object) : objectToSerialize.GetType()), this.Name, this.Namespace, int.MaxValue/*maxItems*/);
System\ServiceModel\Channels\MessageHeaders.cs (5)
440XmlBuffer buffer = new XmlBuffer(int.MaxValue); 450XmlBuffer buffer = new XmlBuffer(int.MaxValue); 460XmlBuffer buffer = new XmlBuffer(int.MaxValue); 836return GetHeader<T>(name, ns, DataContractSerializerDefaults.CreateSerializer(typeof(T), name, ns, int.MaxValue/*maxItems*/)); 868return GetHeader<T>(index, DataContractSerializerDefaults.CreateSerializer(typeof(T), headerInfo.Name, headerInfo.Namespace, int.MaxValue/*maxItems*/));
System\ServiceModel\Channels\Msmq3PoisonHandler.cs (1)
32if (seen > (receiver.MsmqReceiveParameters.ReceiveRetryCount + 1) && receiver.MsmqReceiveParameters.ReceiveRetryCount != Int32.MaxValue)
System\ServiceModel\Channels\MsmqOutputChannel.cs (1)
144message, int.MaxValue, this.factory.BufferManager, preamble.Length);
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (2)
47if (sessionGramSize > int.MaxValue) 250int.MaxValue,
System\ServiceModel\Channels\MtomMessageEncoder.cs (4)
356XmlDictionaryReader xmlDictionaryReader = XmlDictionaryReader.CreateMtomReader(messageData.Array, messageData.Offset, messageData.Count, MtomMessageEncoderFactory.GetSupportedEncodings(), contentType, XmlDictionaryReaderQuotas.Max, int.MaxValue, null); 441xmlWriter = XmlDictionaryWriter.CreateMtomWriter(stream, this.writeEncoding, int.MaxValue, startInfo, boundary, startUri, writeMessageHeaders, false); 449((IXmlMtomWriterInitializer)xmlWriter).SetOutput(stream, this.writeEncoding, int.MaxValue, startInfo, boundary, startUri, writeMessageHeaders, false); 702internal int MaxSizeInBytes = int.MaxValue;
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
569if (totalSeconds > int.MaxValue)
System\ServiceModel\Channels\PeerMessageDispatcher.cs (1)
50PeerQuotaHelper quotaHelper = new PeerQuotaHelper(Int32.MaxValue);
System\ServiceModel\Channels\PeerNodeImplementation.cs (2)
403ArraySegment<byte> buffer = encoder.WriteMessage(message, int.MaxValue, bufferManager); 1446ArraySegment<byte> buffer = encoder.WriteMessage(message, int.MaxValue, bufferManager);
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (1)
24Guard guard = new Guard(Int32.MaxValue);
System\ServiceModel\Channels\ReliableInputSessionChannel.cs (1)
418Guard guard = new Guard(Int32.MaxValue);
System\ServiceModel\Channels\ReliableOutputConnection.cs (1)
30Guard sendGuard = new Guard(Int32.MaxValue);
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (3)
1430this.bufferedReply = reply.CreateBufferedCopy(int.MaxValue); 1556this.bufferedReply = reply.CreateBufferedCopy(int.MaxValue); 1594this.bufferedReply = Message.CreateMessage(this.channel.MessageVersion, WsrmFeb2005Strings.LastMessageAction).CreateBufferedCopy(int.MaxValue);
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (1)
48this.replyAckConsistencyGuard = new Guard(Int32.MaxValue);
System\ServiceModel\Channels\SingletonConnectionReader.cs (3)
1511if (int.MaxValue - chunkBytesRemaining >= IntEncoder.MaxEncodedSize) 1641int.MaxValue, settings.BufferManager, envelopeStartBytes.Length + IntEncoder.MaxEncodedSize); 1788int.MaxValue, this.bufferManager, envelopeStartBytes.Length + IntEncoder.MaxEncodedSize);
System\ServiceModel\Channels\TransmissionStrategy.cs (2)
108this.quotaRemaining = Int32.MaxValue; 1091this.Buffer = message.CreateBufferedCopy(int.MaxValue);
System\ServiceModel\Channels\TransportChannelFactory.cs (2)
163if (MaxReceivedMessageSize > int.MaxValue) 164return int.MaxValue;
System\ServiceModel\Channels\TransportChannelListener.cs (2)
388if (MaxReceivedMessageSize > int.MaxValue) 389return int.MaxValue;
System\ServiceModel\Channels\TransportDefaults.cs (4)
39internal const int BufferedReadDefaultMaxStringContentLength = Int32.MaxValue; 40internal const int BufferedReadDefaultMaxArrayLength = Int32.MaxValue; 41internal const int BufferedReadDefaultMaxBytesPerRead = Int32.MaxValue; 42internal const int BufferedReadDefaultMaxNameTableCharCount = Int32.MaxValue;
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
373return MessageEncoder.WriteMessage(message, int.MaxValue, this.BufferManager, 0);
System\ServiceModel\Channels\WsrmFault.cs (1)
766buffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Configuration\ApplicationContainerSettingsElement.cs (1)
89: base(1, int.MaxValue)
System\ServiceModel\Description\DispatcherBuilder.cs (1)
745int transactedBatchSize = int.MaxValue;
System\ServiceModel\Description\MessageContractExporter.cs (1)
288if (i == Int32.MaxValue)
System\ServiceModel\Description\MetadataImporterQuotas.cs (2)
73settings.maxPolicyNodes = int.MaxValue; 74settings.maxPolicyAssertions = int.MaxValue;
System\ServiceModel\Description\ServiceReflector.cs (1)
131for (int i = 0; i < Int32.MaxValue; i++)
System\ServiceModel\Description\ServiceThrottlingBehavior.cs (2)
23int instances = Int32.MaxValue; 67this.instances = Int32.MaxValue;
System\ServiceModel\Diagnostics\MessageLogger.cs (1)
40All = int.MaxValue
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
415buffer = request.RequestMessage.CreateBufferedCopy(int.MaxValue);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
20internal const int MaxItemsInObjectGraph = int.MaxValue;
System\ServiceModel\Dispatcher\FaultContractInfo.cs (2)
63this.serializer = DataContractSerializerDefaults.CreateSerializer(this.detail, this.knownTypes, int.MaxValue /* maxItemsInObjectGraph */); 67this.serializer = DataContractSerializerDefaults.CreateSerializer(this.detail, this.knownTypes, this.elementName, this.ns == null ? string.Empty : this.ns, int.MaxValue /* maxItemsInObjectGraph */);
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
92return DataContractSerializerDefaults.CreateSerializer(detailType, int.MaxValue /* maxItemsInObjectGraph */ );
System\ServiceModel\Dispatcher\QueryMatcher.cs (2)
280this.maxNodes = int.MaxValue; 557if (this.maxNodes < int.MaxValue)
System\ServiceModel\Dispatcher\QuotaThrottle.cs (2)
27this.limit = Int32.MaxValue; 35get { return this.limit != Int32.MaxValue; }
System\ServiceModel\Dispatcher\ServiceThrottle.cs (4)
187FlowThrottle instanceContextsFt = new FlowThrottle(this.GotInstanceContext, Int32.MaxValue, 420((this.calls != null) && (this.calls.Capacity != Int32.MaxValue)) || 421((this.sessions != null) && (this.sessions.Capacity != Int32.MaxValue)) || 422((this.instanceContexts != null) && (this.instanceContexts.Capacity != Int32.MaxValue)));
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
528int quota = quotaString == null ? int.MaxValue : int.Parse(quotaString, NumberFormatInfo.InvariantInfo);
System\ServiceModel\MessageHeaderT.cs (2)
117cacheLock.AcquireReaderLock(int.MaxValue); 122cacheLock.UpgradeToWriterLock(int.MaxValue);
System\ServiceModel\MsmqIntegration\MsmqIntegrationOutputChannel.cs (1)
145if (stream.Length > int.MaxValue)
System\ServiceModel\Security\DerivedKeyCachingSecurityTokenSerializer.cs (1)
97if (this.indexToCache == int.MaxValue)
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (2)
453this.maxMessageSize = Int32.MaxValue; 730if (this.maxMessageSize < int.MaxValue)
System\ServiceModel\Security\SecurityAppliedMessage.cs (5)
284this.fullBodyBuffer = new XmlBuffer(int.MaxValue); 304this.fullBodyBuffer = new XmlBuffer(int.MaxValue); 318XmlBuffer buffer = new XmlBuffer(int.MaxValue); 349BufferedOutputStream bodyContentFragment = new BufferManagerOutputStream(SR.XmlBufferQuotaExceeded, 1024, int.MaxValue, this.securityHeader.StreamBufferManager); 382BufferedOutputStream fullBodyFragment = new BufferManagerOutputStream(SR.XmlBufferQuotaExceeded, 1024, int.MaxValue, this.securityHeader.StreamBufferManager);
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
191this.streamBufferManager = BufferManager.CreateBufferManager(0, int.MaxValue);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
887using (MessageBuffer buffer = message.CreateBufferedCopy(int.MaxValue))
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (2)
26internal const int defaultMaxCachedSessionTokens = Int32.MaxValue; 1163int filterPriority = Int32.MaxValue - 10;
System\ServiceModel\Security\SecuritySessionServerSettings.cs (1)
741int sctPriority = Int32.MaxValue;
System\ServiceModel\Security\SecurityVerifiedMessage.cs (1)
47this.messageBuffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Security\SendSecurityHeader.cs (1)
90this.bufferManager = BufferManager.CreateBufferManager(0, int.MaxValue);
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (1)
74sctResolver = new SecurityContextSecurityTokenResolver(Int32.MaxValue, false);
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (6)
94identities = SctClaimSerializer.DeserializeIdentities(reader, dictionary, DataContractSerializerDefaults.CreateSerializer(typeof(IIdentity), this.knownTypes, int.MaxValue)); 100DataContractSerializer claimSetSerializer = DataContractSerializerDefaults.CreateSerializer(typeof(ClaimSet), this.knownTypes, int.MaxValue); 101DataContractSerializer claimSerializer = DataContractSerializerDefaults.CreateSerializer(typeof(Claim), this.knownTypes, int.MaxValue); 196DataContractSerializer identitySerializer = DataContractSerializerDefaults.CreateSerializer(typeof(IIdentity), this.knownTypes, int.MaxValue); 197DataContractSerializer claimSetSerializer = DataContractSerializerDefaults.CreateSerializer(typeof(ClaimSet), this.knownTypes, int.MaxValue); 198DataContractSerializer claimSerializer = DataContractSerializerDefaults.CreateSerializer(typeof(Claim), this.knownTypes, int.MaxValue);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (1)
226canonicalBuffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Security\WSTrust.cs (2)
292issuedTokenBuffer = new System.IdentityModel.XmlBuffer(Int32.MaxValue); 323System.IdentityModel.XmlBuffer rstrBuffer = new System.IdentityModel.XmlBuffer(Int32.MaxValue);
System\ServiceModel\SynchronizedKeyedCollection.cs (5)
24this.threshold = int.MaxValue; 31this.threshold = int.MaxValue; 41this.threshold = int.MaxValue; 52SR.GetString(SR.ValueMustBeInRange, -1, int.MaxValue))); 54this.threshold = int.MaxValue;
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
61this.maxExtensionSize = int.MaxValue; 70this.maxExtensionSize = int.MaxValue;
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
55this.maxExtensionSize = int.MaxValue; 66this.maxExtensionSize = int.MaxValue;
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (2)
48this.maxExtensionSize = int.MaxValue; 58this.maxExtensionSize = int.MaxValue;
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
57this.maxExtensionSize = int.MaxValue; 74this.maxExtensionSize = int.MaxValue;
System\ServiceModel\Syndication\SyndicationElementExtension.cs (2)
34this.buffer = new XmlBuffer(int.MaxValue); 205this.buffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
212XmlBuffer newBuffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Syndication\XmlSyndicationContent.cs (2)
50this.contentBuffer = new XmlBuffer(int.MaxValue); 198XmlBuffer tmp = new XmlBuffer(int.MaxValue);
System\ServiceModel\WSDualHttpBinding.cs (1)
112if (value > int.MaxValue)
System\ServiceModel\WSHttpBindingBase.cs (1)
92if (value > int.MaxValue)
System\ServiceModel\XmlBuffer.cs (1)
65BufferManager.CreateBufferManager(0, int.MaxValue));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
187context.Server.ScriptTimeout = int.MaxValue;
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Configuration\BufferedReceiveElement.cs (2)
23[IntegerValidator(MinValue = 1, MaxValue = Int32.MaxValue)] 48properties.Add(new ConfigurationProperty(MaxPendingMessagesPerChannelString, typeof(Int32), BufferedReceiveServiceBehavior.DefaultMaxPendingMessagesPerChannel, new Int32Converter(), new IntegerValidator(1, Int32.MaxValue), ConfigurationPropertyOptions.None));
System\ServiceModel\Activities\Configuration\WorkflowInstanceManagementElement.cs (1)
65properties.Add(new ConfigurationProperty(authorizedWindowsGroup, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, int.MaxValue, null), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
86MessageBuffer buffer = message.CreateBufferedCopy(int.MaxValue);
System\ServiceModel\Activities\Tracking\Configuration\StateMachineStateQueryElement.cs (1)
62new StringValidator(1, int.MaxValue, null),
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
339return this.Encoder.WriteMessage(message, int.MaxValue, this.BufferManager);
System\ServiceModel\Channels\XmlStreamedByteStreamReader.cs (1)
88if (streamLength <= int.MaxValue)
System.ServiceModel.Discovery (21)
System\ServiceModel\Discovery\Configuration\FindCriteriaElement.cs (4)
87[ConfigurationProperty(ConfigurationStrings.MaxResults, DefaultValue = int.MaxValue)] 88[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue)] 158int.MaxValue, 160new IntegerValidator(1, int.MaxValue),
System\ServiceModel\Discovery\Configuration\UdpTransportSettingsElement.cs (10)
18[IntegerValidator(MinValue = 0, MaxValue = int.MaxValue)] 32[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue)] 46[IntegerValidator(MinValue = 0, MaxValue = int.MaxValue)] 61[IntegerValidator(MinValue = 0, MaxValue = int.MaxValue)] 89[IntegerValidator(MinValue = UdpConstants.MinReceiveBufferSize, MaxValue = int.MaxValue)] 159new IntegerValidator(0, int.MaxValue), 168new IntegerValidator(1, int.MaxValue), 177new IntegerValidator(0, int.MaxValue), 186new IntegerValidator(0, int.MaxValue), 204new IntegerValidator(UdpConstants.MinReceiveBufferSize, int.MaxValue),
System\ServiceModel\Discovery\DiscoveryClient.cs (2)
390if ((criteria.MaxResults == int.MaxValue) && (criteria.Duration.Equals(TimeSpan.MaxValue))) 1356if (MaxResults != int.MaxValue)
System\ServiceModel\Discovery\DiscoveryClientChannelBase.cs (1)
50this.totalExpectedEndpoints = int.MaxValue;
System\ServiceModel\Discovery\FindCriteria.cs (3)
301this.maxResults = int.MaxValue; 374if (this.maxResults != int.MaxValue) 446this.maxResults = int.MaxValue;
System\ServiceModel\Discovery\SerializationUtility.cs (1)
204int maxResults = int.MaxValue;
System.ServiceModel.Internals (9)
System\Runtime\BufferedOutputStream.cs (4)
44: this(0, maxSize, InternalBufferManager.Create(0, int.MaxValue)) 114if (this.currentChunk.Length > (int.MaxValue / 2)) 116newChunkSize = int.MaxValue; 268if ((int.MaxValue - size) < this.totalSize)
System\Runtime\InternalBufferManager.cs (2)
69int bufferCount = bufferCountLong > int.MaxValue ? int.MaxValue : (int)bufferCountLong;
System\Runtime\TimeoutHelper.cs (3)
15public static readonly TimeSpan MaxWait = TimeSpan.FromMilliseconds(Int32.MaxValue); 57if (ticks / TimeSpan.TicksPerMillisecond > int.MaxValue) 59return int.MaxValue;
System.ServiceModel.Routing (2)
System\ServiceModel\Routing\MessageRpc.cs (1)
168this.messageBuffer = this.originalMessage.CreateBufferedCopy(int.MaxValue);
System\ServiceModel\Routing\SoapProcessingBehavior.cs (1)
235MessageFault messageFault = MessageFault.CreateFault(source, int.MaxValue);
System.Web (76)
Configuration\BufferModeSettings.cs (6)
42int.MaxValue, 50int.MaxValue, 58int.MaxValue, 132[ConfigurationProperty("maxBufferSize", IsRequired = true, DefaultValue = int.MaxValue)] 144[ConfigurationProperty("maxFlushSize", IsRequired = true, DefaultValue = int.MaxValue)] 156[ConfigurationProperty("urgentFlushThreshold", IsRequired = true, DefaultValue = int.MaxValue)]
Configuration\EventMappingSettings.cs (2)
48int.MaxValue, 125[ConfigurationProperty("endEventCode", DefaultValue = int.MaxValue)]
Configuration\GlobalizationSection.cs (1)
267int errorLine = Int32.MaxValue;
Configuration\HealthMonitoringSection.cs (1)
253const int MAX_HEARTBEAT_VALUE = Int32.MaxValue / 1000; // in sec; this value will be converted to ms and passed to Timer ctor, which takes a ms param
Configuration\HttpRuntimeSection.cs (2)
759return ((maxLength < Int32.MaxValue) ? (int)maxLength : Int32.MaxValue);
Configuration\ProcessModelSection.cs (12)
108int.MaxValue, 173new IntegerValidator(1, int.MaxValue - 1), 180new IntegerValidator(1, int.MaxValue - 1), 187new IntegerValidator(1, int.MaxValue - 1), 194new IntegerValidator(1, int.MaxValue - 1), 217new IntegerValidator(1, int.MaxValue - 1), 309[ConfigurationProperty("requestLimit", DefaultValue = int.MaxValue)] 474[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue - 1)] 485[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue - 1)] 496[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue - 1)] 507[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue - 1)] 550[IntegerValidator(MinValue = 1, MaxValue = int.MaxValue - 1)]
Configuration\ProfileSettings.cs (1)
125[ConfigurationProperty("maxLimit", DefaultValue = int.MaxValue)]
Configuration\RegexMatchTimeoutValidator.cs (1)
9private static readonly TimeSpan _maxValue = TimeSpan.FromMilliseconds(Int32.MaxValue - 1); // from Regex.cs
Configuration\RuleSettings.cs (2)
26internal static int DEFAULT_MAX_LIMIT = int.MaxValue; 196[ConfigurationProperty("maxLimit", DefaultValue = int.MaxValue)]
Configuration\StdValidatorsAndConverters.cs (2)
133s_nonZeroPositiveIntegerValidator = new IntegerValidator(1, int.MaxValue); 143s_positiveIntegerValidator = new IntegerValidator(0, int.MaxValue);
Configuration\StrongNameUtility.cs (2)
40Debug.Assert(generatedSize > 0 && generatedSize <= Int32.MaxValue); 41if (generatedSize <= 0 || generatedSize > Int32.MaxValue) {
Hosting\ISAPIWorkerRequest.cs (4)
1376Debug.Assert(offset64 < Int32.MaxValue); 1377Debug.Assert(length64 < Int32.MaxValue); 2919Debug.Assert(offset64 < Int32.MaxValue); 2920Debug.Assert(length64 < Int32.MaxValue);
HttpBufferlessInputStream.cs (1)
55_remainingBytes = (contentLength > 0) ? contentLength : Int32.MaxValue;
HttpRequest.cs (1)
1000int remainingBytes = (ContentLength > 0) ? ContentLength - rawContent.Length : Int32.MaxValue;
HttpResponse.cs (2)
815int secondsToLive = seconds < Int32.MaxValue ? (int) seconds : Int32.MaxValue;
HttpRuntime.cs (5)
1200System.Net.ServicePointManager.DefaultConnectionLimit = Int32.MaxValue; 1913if (milli > Int32.MaxValue) 1914milli = Int32.MaxValue; 2402if (milli > Int32.MaxValue) 2403milli = Int32.MaxValue;
HttpWriter.cs (2)
430if ((!supportsLongTransmitFile && size > Int32.MaxValue) || (size < 0)) { 433if ((!supportsLongTransmitFile && offset > Int32.MaxValue) || (offset < 0)) {
Management\AppDomainResourcePerfCounters.cs (1)
112_MemUsageLastReported = (int) Math.Min(Int32.MaxValue, Math.Max(0, memInKB)); // Make sure its within 0 and Int32.MaxValue
Management\BufferedWebEventProvider.cs (1)
80_webEventBuffer.Flush(Int32.MaxValue, FlushCallReason.StaticFlush);
Profile\ProfileManager.cs (4)
123return Provider.GetAllProfiles(authenticationOption, 0, Int32.MaxValue, out totalRecords); 146return Provider.GetAllInactiveProfiles(authenticationOption, userInactiveSinceDate, 0, Int32.MaxValue, out totalRecords); 176return Provider.FindProfilesByUserName(authenticationOption, usernameToMatch, 0, Int32.MaxValue, out totalRecords); 224return Provider.FindInactiveProfilesByUserName(authenticationOption, usernameToMatch, userInactiveSinceDate, 0, Int32.MaxValue, out totalRecords);
Profile\SqlProfileProvider.cs (1)
495if ( upperBound > Int32.MaxValue )
Security\ADMembershipProvider.cs (3)
2196if ( upperBound > Int32.MaxValue ) 2244if ( upperBound > Int32.MaxValue ) 4171int startsAt = Int32.MaxValue;
Security\Membership.cs (3)
276return GetAllUsers( 0, Int32.MaxValue, out totalRecords); 543Int32.MaxValue, 585return FindUsersByEmail(emailToMatch, 0, Int32.MaxValue, out totalRecords);
Security\SQLMembershipProvider.cs (3)
1223if ( upperBound > Int32.MaxValue ) 1358if ( upperBound > Int32.MaxValue ) 1457if ( upperBound > Int32.MaxValue )
State\OutOfProcStateClientManager.cs (1)
177new ResourcePool(new TimeSpan(0, 0, 5), int.MaxValue),
State\sqlstateclientmanager.cs (1)
240return new SqlPartitionInfo(new ResourcePool(new TimeSpan(0, 0, 5), int.MaxValue),
UI\DataSourceCache.cs (1)
209utcAbsoluteExpiryTime = DateTime.UtcNow.AddSeconds(Duration == 0 ? Int32.MaxValue : Duration);
UI\LegacyPageAsyncTaskManager.cs (1)
357if (timerPeriod >= (double)Int32.MaxValue) {
UI\Page.cs (1)
246private static readonly TimeSpan _maxAsyncTimeout = TimeSpan.FromMilliseconds(Int32.MaxValue);
UI\WebControls\FileUpload.cs (1)
71if (fileStreamLength > Int32.MaxValue) {
UI\WebControls\Menu.cs (1)
622_maximumDepth = int.MaxValue;
UI\WebParts\PersonalizationAdministration.cs (1)
27private const int _defaultPageSize = Int32.MaxValue;
UI\WebParts\PersonalizationProviderHelper.cs (1)
116if (upperBound > Int32.MaxValue) {
Util\AppSettings.cs (3)
322private const int DefaultMaxHttpCollectionKeys = Int32.MaxValue; 332private const int DefaultMaxJsonDeserializerMembers = Int32.MaxValue; 517internal const int UnlimitedRequestsPerSession = Int32.MaxValue;
Util\ProviderUtil.cs (1)
21internal const int Infinite = Int32.MaxValue;
System.Web.DataVisualization (16)
Common\ChartTypes\AreaChart.cs (2)
692 if(centerPointIndex == int.MaxValue) 726 if(matrix.Perspective != 0 && centerPointIndex != int.MaxValue)
Common\ChartTypes\KagiChart.cs (2)
716 if(centerPointIndex == int.MaxValue) 801 if(centerPointIndex != int.MaxValue)
Common\ChartTypes\LineChart.cs (6)
150 protected int centerPointIndex = int.MaxValue; 1246 int order = int.MaxValue; // 0 - Ascending; 1 - Descending; 1262 if(order == int.MaxValue) 1326 this.centerPointIndex = int.MaxValue; 1502 if(centerPointIndex == int.MaxValue) 1585 return int.MaxValue;
Common\ChartTypes\RangeChart.cs (2)
797 if(centerPointIndex == int.MaxValue) 830 if(matrix.Perspective != 0 && centerPointIndex != int.MaxValue)
Common\ChartTypes\StepLineChart.cs (2)
254 if(centerPointIndex == int.MaxValue) 312 if(centerPointIndex != int.MaxValue)
Common\General\BaseCollections.cs (1)
376for (int i = 1; i < System.Int32.MaxValue; i++)
Common\General\Legend.cs (1)
1530 int columnMinHeight = int.MaxValue;
System.Web.DynamicData (6)
DynamicData\MetaColumn.cs (1)
23private static readonly int s_longStringLengthCutoff = ((Int32.MaxValue >> 1) - 4);
DynamicData\ModelProviders\DLinqColumnProvider.cs (4)
69return Int32.MaxValue >> 1; // see sql server 2005 spec for ntext 73return Int32.MaxValue; // see sql server 2005 spec for text 77return (Int32.MaxValue >> 1) - 2; // see sql server 2005 spec for nvarchar 81return Int32.MaxValue - 2; // see sql server 2005 spec for varchar
DynamicData\ModelProviders\EFColumnProvider.cs (1)
67MaxLength = Int32.MaxValue;
System.Web.Extensions (8)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (2)
673public override int MaxInvalidPasswordAttempts { get { return int.MaxValue; } } 674public override int PasswordAttemptWindow { get { return int.MaxValue; } }
ClientServices\Providers\ClientWindowsAuthenticationMembershipProvider.cs (2)
47public override int MaxInvalidPasswordAttempts { get { return int.MaxValue; } } 48public override int PasswordAttemptWindow { get { return int.MaxValue; } }
Configuration\ScriptingJsonSerializationSection.cs (2)
27new IntegerValidator(1, int.MaxValue), 35new IntegerValidator(1, int.MaxValue),
UI\WebControls\Dynamic.cs (2)
964if (value <= (ulong)Int32.MaxValue) return CreateLiteral((int)value, text); 974if (value >= Int32.MinValue && value <= Int32.MaxValue)
System.Web.Mobile (1)
UI\MobileControls\MobileControlsSection.cs (1)
31new IntegerValidator( 0 ,int.MaxValue),
System.Web.Services (9)
System\Web\Services\Configuration\SoapEnvelopeProcessingElement.cs (2)
30[ConfigurationProperty("readTimeout", DefaultValue = int.MaxValue)] 48readonly ConfigurationProperty readTimeout = new ConfigurationProperty("readTimeout", typeof(int), int.MaxValue, new InfiniteIntConverter(), null, ConfigurationPropertyOptions.None);
System\Web\Services\Configuration\SoapExtensionTypeElement.cs (1)
83readonly ConfigurationProperty priority = new ConfigurationProperty("priority", typeof(int), 0, null, new IntegerValidator( 0, int.MaxValue ), ConfigurationPropertyOptions.IsKey);
System\Web\Services\Description\MimeFormatExtensions.cs (2)
184get { return repeats == int.MaxValue ? "*" : repeats.ToString(CultureInfo.InvariantCulture); } 187repeats = int.MaxValue;
System\Web\Services\Description\MimeTextImporter.cs (2)
76if (match.Repeats != 1 && match.Repeats != int.MaxValue) 96if (match.Repeats != 1 && match.Repeats != int.MaxValue) {
System\Web\Services\Protocols\PatternMatcher.cs (1)
194member.maxRepeats = memberType.IsArray ? int.MaxValue : 1;
System\Web\Services\Protocols\SoapMessage.cs (1)
72if (index == int.MaxValue)
System.Windows.Forms (56)
misc\GDI\WindowsGraphics2.cs (4)
40public static readonly Size MaxSize = new Size(Int32.MaxValue, Int32.MaxValue); 167Rectangle bounds = new Rectangle( pt.X, pt.Y, Int32.MaxValue, Int32.MaxValue );
misc\GDI\WindowsRegion.cs (4)
191return new Rectangle( -Int32.MaxValue, -Int32.MaxValue, Int32.MaxValue, Int32.MaxValue );
winforms\Managed\System\WinForms\ComboBox.cs (1)
3268Select(0, Int32.MaxValue);
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (2)
444if (_nextComponentId == int.MaxValue) { 452if (_nextComponentId == int.MaxValue) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
2867Size requiredSize = TextRenderer.MeasureText(text, font, new Size(maxWidth, System.Int32.MaxValue), flags); 2915textSize = TextRenderer.MeasureText(text, font, new Size((int)maxWidth, System.Int32.MaxValue), flags); 2950return TextRenderer.MeasureText(text, font, new Size(System.Int32.MaxValue, System.Int32.MaxValue), flags);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (3)
368if (value == Int32.MaxValue) 370throw new ArgumentOutOfRangeException("DisplayIndex", value, SR.GetString(SR.DataGridViewColumn_DisplayIndexTooLarge, Int32.MaxValue.ToString(CultureInfo.CurrentCulture))); 433Debug.Assert(value < Int32.MaxValue);
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (3)
345smallestDisplayIndex = Int32.MaxValue; 841int indexMin = Int32.MaxValue, displayIndexMin = Int32.MaxValue;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
1057return DataGridViewCell.MeasureTextHeight(graphics, " ", cellStyle.Font, System.Int32.MaxValue, TextFormatFlags.Default) + adjustment;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
7899int lRowIndex = int.MaxValue;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (2)
323Size sizeRequired = TextRenderer.MeasureText(text, font, new Size(System.Int32.MaxValue, System.Int32.MaxValue), flags);
winforms\Managed\System\WinForms\FontDialog.cs (1)
604cf.nSizeMax = Int32.MaxValue;
winforms\Managed\System\WinForms\Form.cs (2)
7202mmi.ptMaxTrackSize.y = int.MaxValue; 7205mmi.ptMaxTrackSize.x = int.MaxValue;
winforms\Managed\System\WinForms\GroupBox.cs (1)
602textSize = wg.MeasureText(Text, wfont, new Size(textRectangle.Width , int.MaxValue), flags );
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (2)
112displayRect.Width = Int32.MaxValue - displayRect.X; 186Size elementConstraints = new Size(Int32.MaxValue, rowBounds.Height - elementProxy.Margin.Size.Height);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (6)
23public static readonly Size MaxSize = new Size(Int32.MaxValue, Int32.MaxValue); 26public static readonly Rectangle MaxRectangle = new Rectangle(0, 0, Int32.MaxValue, Int32.MaxValue); 131if(size.Width == 0) size.Width = Int32.MaxValue; 132if(size.Height == 0) size.Height = Int32.MaxValue;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (5)
361xAssignRowsAndColumns(containerInfo, childrenInfo, numCols, numRows == 0 ? Int32.MaxValue : numRows, growStyle); 379xAssignRowsAndColumns(containerInfo, childrenInfo, /* numCols = */ Math.Max(minColumn,1), /* numRows = */ Int32.MaxValue, growStyle); 505numRows = (numRows == Int32.MaxValue) ? rowStop : Math.Max(numRows, rowStop); 506numColumns = (numColumns == Int32.MaxValue) ? colStop : Math.Max(numColumns, colStop); 524numRows = (maxRows == Int32.MaxValue) ? numRows : maxRows;
winforms\Managed\System\WinForms\NativeWindow.cs (1)
964for (int j = ((minSize - 2) | 1); j < Int32.MaxValue; j += 2) {
winforms\Managed\System\WinForms\RichTextBox.cs (3)
150MaxLength = int.MaxValue; 623DefaultValue(int.MaxValue), 3060SendMessage(RichTextBoxConstants.EM_EXLIMITTEXT, 0, Int32.MaxValue);
winforms\Managed\System\WinForms\StatusStrip.cs (2)
309proposedSize.Width = Int32.MaxValue; 312proposedSize.Height = Int32.MaxValue;
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
2035end = start > 0 ? int.MaxValue : int.MinValue;
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
235Size textSize = new Size(scaledMaxWidth - scaledPaddingWidth, int.MaxValue);
winforms\Managed\System\WinForms\ToolStrip.cs (4)
52internal static Point InvalidMouseEnter = new Point(Int32.MaxValue, Int32.MaxValue); 2451proposedSize.Width = Int32.MaxValue; 2454proposedSize.Height = Int32.MaxValue;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
799int minY = int.MaxValue, maxY = 0;
winforms\Managed\System\WinForms\TreeView.cs (1)
2045SafeNativeMethods.SetWindowPos(new HandleRef(this, this.Handle), NativeMethods.NullHandleRef, this.Left, this.Top, Int32.MaxValue, this.Height, flags);
System.Windows.Forms.DataVisualization (16)
Common\ChartTypes\AreaChart.cs (2)
692 if(centerPointIndex == int.MaxValue) 726 if(matrix.Perspective != 0 && centerPointIndex != int.MaxValue)
Common\ChartTypes\KagiChart.cs (2)
716 if(centerPointIndex == int.MaxValue) 801 if(centerPointIndex != int.MaxValue)
Common\ChartTypes\LineChart.cs (6)
150 protected int centerPointIndex = int.MaxValue; 1246 int order = int.MaxValue; // 0 - Ascending; 1 - Descending; 1262 if(order == int.MaxValue) 1326 this.centerPointIndex = int.MaxValue; 1502 if(centerPointIndex == int.MaxValue) 1585 return int.MaxValue;
Common\ChartTypes\RangeChart.cs (2)
797 if(centerPointIndex == int.MaxValue) 830 if(matrix.Perspective != 0 && centerPointIndex != int.MaxValue)
Common\ChartTypes\StepLineChart.cs (2)
254 if(centerPointIndex == int.MaxValue) 312 if(centerPointIndex != int.MaxValue)
Common\General\BaseCollections.cs (1)
376for (int i = 1; i < System.Int32.MaxValue; i++)
Common\General\Legend.cs (1)
1530 int columnMinHeight = int.MaxValue;
System.Workflow.Activities (4)
Designers\StateDesigner.cs (2)
1416int freeSpaceHeight = int.MaxValue; 1439if (freeSpaceHeight == int.MaxValue)
Rules\Parser\Scanner.cs (2)
654else if (value <= int.MaxValue) // fits into an int 853else if (value <= int.MaxValue) // fits into an int
System.Workflow.ComponentModel (11)
AuthoringOM\Design\Connector.cs (6)
2275if (p.X != int.MinValue && p.X != int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue) 2695newPoint.X = int.MaxValue; 2697newPoint.Y = int.MaxValue; 2743Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 2755Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue);
AuthoringOM\Design\DesignerHelpers.cs (1)
1657while (duplicate && tryCount < Int32.MaxValue)
AuthoringOM\Design\FreeFormDesigner.cs (4)
1111Point leftTop = new Point(int.MaxValue, int.MaxValue), rightBottom = new Point(int.MinValue, int.MinValue); 1137if (leftTop.X != int.MaxValue && rightBottom.X != int.MinValue) 1142if (leftTop.Y != int.MaxValue && rightBottom.Y != int.MinValue)
System.Workflow.Runtime (1)
Tracking\SqlTrackingService.cs (1)
2464if (stream.Length > Int32.MaxValue)
System.WorkflowServices (4)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (4)
26static readonly TimeSpan maxSecondsTimeSpan = TimeSpan.FromSeconds(int.MaxValue); 144(value > TimeSpan.FromSeconds(int.MaxValue) && value != TimeSpan.MaxValue)) 197Fx.Assert(this.lockTimeout <= TimeSpan.FromSeconds(int.MaxValue), 299Fx.Assert(timeout <= TimeSpan.FromSeconds(int.MaxValue),
System.Xml (15)
System\Xml\Cache\XPathDocumentNavigator.cs (1)
795return int.MaxValue;
System\Xml\Dom\DocumentXPathNavigator.cs (1)
392int index = Int32.MaxValue;
System\Xml\Dom\XPathNodeList.cs (1)
28ReadUntil(Int32.MaxValue);
System\Xml\HWStack.cs (1)
21internal HWStack(int GrowthRate) : this (GrowthRate, int.MaxValue) {}
System\Xml\Schema\DataTypeImplementation.cs (1)
3022static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(int.MinValue, int.MaxValue);
System\Xml\Schema\Parser.cs (2)
74markupDepth = int.MaxValue; 221markupDepth = int.MaxValue;
System\Xml\Schema\ParserAsync.cs (1)
34markupDepth = int.MaxValue;
System\Xml\Schema\XmlValueConverter.cs (2)
810if (value < (decimal) Int32.MinValue || value > (decimal) Int32.MaxValue) 859if (value < (long) Int32.MinValue || value > (long) Int32.MaxValue)
System\Xml\Schema\XsdDuration.cs (1)
633if (result > (Int32.MaxValue - digit) / 10) {
System\Xml\Serialization\Types.cs (1)
397int leastDerivedLevel = int.MaxValue;
System\Xml\Serialization\XmlCountingReader.cs (1)
26if (advanceCount == Int32.MaxValue)
System\Xml\Serialization\XmlReflectionImporter.cs (1)
2034this.maxDepth = DiagnosticsSwitches.NonRecursiveTypeLoading.Enabled ? 1 : int.MaxValue;
System\Xml\Serialization\XmlSerializationWriter.cs (1)
494if (index <= Int32.MaxValue) {
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 (4)
383Invariant.Assert(lowWaterMark <= Int32.MaxValue); // low water mark must fit single memory stream 2G 507&& gap + length + memStreamBlock.Stream.Length <= Int32.MaxValue) 549if (prevMemStreamBlock.Stream.Length + count <= Int32.MaxValue) // Make sure there is enough space to append 620if (prevMemStreamBlock.Stream.Length + leftoverSize <= Int32.MaxValue)
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (2)
385if ((_totalNumberOfEntriesInTheCentralDirectoryOnThisDisk > Int32.MaxValue) || 386(_totalNumberOfEntriesInTheCentralDirectory > Int32.MaxValue) ||
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
519if (dataLen > System.Int32.MaxValue)
Base\System\Windows\Threading\DispatcherTimer.cs (2)
94if (interval.TotalMilliseconds > Int32.MaxValue) 157if (value.TotalMilliseconds > Int32.MaxValue)
WsatConfig (1)
CommandLine\OptionUsage.cs (1)
483return int.MaxValue;