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