197 references to MinValue
mscorlib (36)
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) 2395if (j != Int32.MinValue) --j;
system\convert.cs (1)
1071if (value < Int32.MinValue || value > Int32.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_Int32"));
System\Diagnostics\Eventing\TraceLogging\TraceLoggingMetadataCollector.cs (2)
19private int bufferedArrayFieldCount = int.MinValue; 257this.bufferedArrayFieldCount = int.MinValue;
system\globalization\CalendricalCalculationsHelper.cs (1)
111new EphemerisCorrectionAlgorithmMap(int.MinValue, CorrectionAlgorithm.Default) // default must be last
system\globalization\hijricalendar.cs (2)
78private int m_HijriAdvance = Int32.MinValue; 217if (m_HijriAdvance == Int32.MinValue) {
system\internal.cs (3)
133new KeyValuePair<Object, Int32>(String.Empty, Int32.MinValue); 134new KeyValuePair<Int32, Int32>(Int32.MinValue, Int32.MinValue);
system\intptr.cs (1)
82if (Size==4 && (l>Int32.MaxValue || l<Int32.MinValue)) {
system\math.cs (1)
287if (value == Int32.MinValue)
system\random.cs (1)
62int subtraction = (Seed == Int32.MinValue) ? Int32.MaxValue : Math.Abs(Seed);
system\resources\resourcereader.cs (1)
1337private const int ENUM_DONE = Int32.MinValue;
system\threading\Tasks\ParallelRangeManager.cs (2)
193Contract.Assert((nFromInclusiveLocal <= Int32.MaxValue) && (nFromInclusiveLocal >= Int32.MinValue) && 194(nToExclusiveLocal <= Int32.MaxValue) && (nToExclusiveLocal >= Int32.MinValue));
PresentationBuildTasks (1)
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (1)
455!( scaledInteger >= Int32.MinValue ) ) // equivalent to scaledInteger < Minvalue but take care of NaN.
PresentationCore (4)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1505minimum = Int32.MinValue;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (1)
321if( Int32.MinValue == propertyInfo.Minimum &&
Core\CSharp\MS\Internal\Media\XamlSerializationHelper.cs (1)
455!( scaledInteger >= Int32.MinValue ) ) // equivalent to scaledInteger < Minvalue but take care of NaN.
Core\CSharp\MS\Internal\Shaping\Positioning.cs (1)
465if (ContourPoint.dx==int.MinValue)
PresentationFramework (30)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (4)
109int startPage = int.MinValue; 113if (startPage == int.MinValue) 116int endPage = int.MinValue; 120if (endPage == int.MinValue)
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
244startOffset = int.MinValue;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
2854cpcCur = tableResult.GetCellBelow(suggestedX, int.MinValue, int.MinValue);
src\Framework\System\Windows\Annotations\LocatorPart.cs (1)
275if (desiredStartOffset == int.MinValue)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
104_itemsGenerated = Int32.MinValue;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1004int absCount = (count == int.MinValue) ? int.MaxValue : Math.Abs(count);
src\Framework\System\Windows\Controls\ValidationResult.cs (1)
127return IsValid.GetHashCode() ^ ((ErrorContent == null) ? int.MinValue : ErrorContent).GetHashCode();
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (3)
2173int firstItemInViewportIndex = Int32.MinValue, lastItemInViewportIndex = Int32.MaxValue, firstItemInViewportChildIndex = Int32.MinValue, firstItemInExtendedViewportIndex = Int32.MinValue;
src\Framework\System\windows\Documents\CaretElement.cs (2)
1150else if (value < Int32.MinValue) 1152i = Int32.MinValue;
src\Framework\System\Windows\Documents\FixedFlowMap.cs (3)
105internal const int FixedOrderStartPage = int.MinValue; 107internal const int FixedOrderStartVisual = int.MinValue; 111internal const int FlowOrderBoundaryScopeId = int.MinValue;
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (2)
38int result = Int32.MinValue; 120if (result == Int32.MinValue)
src\Framework\System\Windows\Documents\FixedSOMGroup.cs (1)
41int result = Int32.MinValue;
src\Framework\System\Windows\Documents\ImmComposition.cs (3)
2026i = Int32.MinValue; 2028else if (value < Int32.MinValue) 2030i = Int32.MinValue;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
2079int minIndexFirstTab = Int32.MinValue; 2121int minIndexFirstTab = Int32.MinValue; 2122int minIndex = Int32.MinValue;
src\Framework\System\Windows\Window.cs (2)
5952((l > Int32.MaxValue) || (l < Int32.MinValue))) 5969(length < Int32.MinValue))
System (5)
net\System\Net\WebSockets\WebSocketBuffer.cs (4)
55private int m_StateWhenDisposing = int.MinValue; 122if (Interlocked.CompareExchange(ref m_StateWhenDisposing, (int)webSocketState, int.MinValue) != int.MinValue) 561case int.MinValue:
regex\system\text\regularexpressions\RegexCompiler.cs (1)
405if (i <= Int32.MaxValue && i >= Int32.MinValue) {
System.Activities (2)
System\Activities\Statements\InternalState.cs (2)
561int originalTriggerId = int.MinValue; 562int originalConditionIndex = int.MinValue;
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
288if (p.X != int.MinValue && p.X != int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue) 1126Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue); 1138Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y);
System.Configuration (2)
System\Configuration\IntegerValidator.cs (1)
32private int _minValue = int.MinValue;
System\Configuration\IntegerValidatorAttribute.cs (1)
25private int _min = int.MinValue;
System.Core (1)
Microsoft\Scripting\Compiler\ILGen.cs (1)
955if (Int32.MinValue <= value && value <= Int32.MaxValue) {
System.Data (17)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
288if (p.X != int.MinValue && p.X != int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue) 1126Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue); 1138Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y);
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
81internal static readonly SqlMoney MinSmallMoney = new SqlMoney( ( (Decimal)Int32.MinValue ) / 10000 );
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2460lval = Math.Max((long)Int32.MinValue, lval);
fx\src\data\System\Data\Common\Int32Storage.cs (1)
111Int32 max = Int32.MinValue;
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
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)
2013using (OleDbDataReader dataReader = new OleDbDataReader(_connection, _command, Int32.MinValue, 0)) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1455private static readonly SqlMoney x_smSmallMin = new SqlMoney(((Decimal)Int32.MinValue)/10000);
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (1)
547if (value != Int32.MinValue)
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (6)
50private const long x_iIntMin = Int32.MinValue; // minimum (signed) int value 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) 632public static readonly SqlInt32 MinValue = new SqlInt32(Int32.MinValue);
System.Data.Entity (6)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
110for (int i = 0, maxTotalRank = int.MinValue; i < functionsMetadata.Count; i++)
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
749ValidateIntegralDefaultValue(scalar, int.MinValue, int.MaxValue);
System\Data\EntityModel\SchemaObjectModel\Utils.cs (1)
271value = int.MinValue;
System\Data\Metadata\Helper.cs (1)
520{ PrimitiveTypeKind.Int32, new long[] { Int32.MinValue, Int32.MaxValue } },
System\Data\SqlClient\SqlProviderManifest.cs (2)
594int maxLength = !isMaxLength ? (int)f.Value : Int32.MinValue; 633int maxLength = !isMaxLength ? (int)f.Value : Int32.MinValue;
System.Data.Linq (2)
SqlClient\SqlTypeSystemProvider.cs (2)
325int p0 = IsTypeKnownByProvider ? GetTypeCoercionPrecedence(this.SqlDbType) : Int32.MinValue; 326int p1 = sqlProviderType.IsTypeKnownByProvider ? GetTypeCoercionPrecedence(sqlProviderType.SqlDbType) : Int32.MinValue;
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
910if (dec >= (decimal) int.MinValue && dec <= (decimal) int.MaxValue && decimal.Truncate(dec) == dec) {
System\Xml\Xsl\Xslt\Compiler.cs (1)
370public const int NeverDeclaredPrec = int.MinValue;
System.Numerics (11)
System\Numerics\BigInteger.cs (11)
31private const int knMaskHighBit = int.MinValue; 32private const uint kuMaskHighBit = unchecked((uint)int.MinValue); 73Contract.Assert(_sign > int.MinValue /*, "Int32.MinValue should not be stored in the _sign field"*/); 394if (value == Int32.MinValue) 422if (Int32.MinValue <= value && value <= Int32.MaxValue) 424if (value == Int32.MinValue) 581if (_sign == Int32.MinValue) 694if (_sign == Int32.MinValue) 738else if (Int32.MinValue == (int)value[0]) { 1392else if (shift == Int32.MinValue) return ((value >> Int32.MaxValue) >> 1); 1424else if (shift == Int32.MinValue) return ((value << Int32.MaxValue) << 1);
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
151hashCode = (hashCode == Int32.MinValue) ? 0 : -hashCode;
System.Runtime.Serialization (6)
System\Xml\ValueHandle.cs (1)
255if (value >= int.MinValue && value <= int.MaxValue)
System\Xml\XmlBinaryWriter.cs (1)
519if (value >= int.MinValue && value <= int.MaxValue)
System\Xml\XmlConverter.cs (4)
510if (value < int.MinValue / 10) 513if (value < int.MinValue + digit) 928while (value < int.MinValue) 936Fx.Assert(value >= int.MinValue && value <= int.MaxValue, "");
System.ServiceModel (14)
System\ServiceModel\Channels\InternalDuplexChannelFactory.cs (1)
26ChannelDemuxerFilter demuxFilter = new ChannelDemuxerFilter(new MatchNoneMessageFilter(), int.MinValue);
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
101int priority = int.MinValue;
System\ServiceModel\Dispatcher\MessageFilterTable.cs (9)
281int pri = int.MinValue; 313int pri = int.MinValue; 365int pri = int.MinValue; 410int pri = int.MinValue; 432int pri = int.MinValue; 450int pri = int.MinValue; 483int pri = int.MinValue; 520int pri = int.MinValue; 542int pri = int.MinValue;
System\ServiceModel\Security\SecuritySessionServerSettings.cs (3)
696return this.ChannelBuilder.BuildChannelListener<IDuplexSessionChannel>(new MatchNoneMessageFilter(), int.MinValue); 700return this.ChannelBuilder.BuildChannelListener<IDuplexChannel>(new MatchNoneMessageFilter(), int.MinValue); 704return this.ChannelBuilder.BuildChannelListener<IReplyChannel>(new MatchNoneMessageFilter(), int.MinValue);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\ByteStreamBufferedMessageData.cs (1)
69this.refCount = int.MinValue;
System.Web.DataVisualization (11)
Common\General\ChartArea.cs (6)
201 private int _circularSectorNumber = int.MinValue; 202 private int _circularUsePolygons = int.MinValue; 1241 this._circularSectorNumber = int.MinValue; 1242 this._circularUsePolygons = int.MinValue; 2768 if(this._circularUsePolygons == int.MinValue) 2862 if(this._circularSectorNumber == int.MinValue)
Common\General\ChartGraphics3D.cs (4)
1403 int pointArrayIndex = int.MinValue; 2492 int pointArrayIndex = int.MinValue; 2548 int pointArrayIndex = int.MinValue; 2695 if(neighborPointIndex != int.MinValue)
Common\General\FormulaData.cs (1)
709int maxNumOfPoints = int.MinValue;
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
667srid = int.MinValue;
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
974if (value >= Int32.MinValue && value <= Int32.MaxValue)
System.Windows.Forms (14)
winforms\Managed\System\WinForms\Button.cs (1)
46private const int InvalidDimensionValue = Int32.MinValue;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
24public static readonly Size InvalidSize = new Size(Int32.MinValue, Int32.MinValue);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
38protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
41protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue); 91protected static readonly Point InvalidPosition = new Point(int.MinValue, int.MinValue);
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
1930if (longLength < int.MinValue) { 1931length = int.MinValue; 2035end = start > 0 ? int.MaxValue : int.MinValue;
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
4603private readonly static Size INVALID_SIZE = new Size(Int32.MinValue,Int32.MinValue);
System.Windows.Forms.DataVisualization (11)
Common\General\ChartArea.cs (6)
201 private int _circularSectorNumber = int.MinValue; 202 private int _circularUsePolygons = int.MinValue; 1241 this._circularSectorNumber = int.MinValue; 1242 this._circularUsePolygons = int.MinValue; 2768 if(this._circularUsePolygons == int.MinValue) 2862 if(this._circularSectorNumber == int.MinValue)
Common\General\ChartGraphics3D.cs (4)
1403 int pointArrayIndex = int.MinValue; 2492 int pointArrayIndex = int.MinValue; 2548 int pointArrayIndex = int.MinValue; 2695 if(neighborPointIndex != int.MinValue)
Common\General\FormulaData.cs (1)
709int maxNumOfPoints = int.MinValue;
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
1444int maximumY = int.MinValue;
System.Workflow.ComponentModel (8)
AuthoringOM\Design\Connector.cs (4)
2275if (p.X != int.MinValue && p.X != int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue) 2742Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y); 2754Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue);
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.Xml (5)
System\Xml\Cache\XPathDocumentNavigator.cs (2)
779return int.MinValue; 787return int.MinValue + 1 + XPathNodeHelper.GetLocation(this.pageCurrent, this.idxCurrent);
System\Xml\Schema\DataTypeImplementation.cs (1)
3022static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(int.MinValue, 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)