223 references to MinValue
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (1)
69var end = VirtualChars.Length == 0 ? int.MinValue : VirtualChars[VirtualChars.Length - 1].Span.End;
Microsoft.AspNetCore.Components (2)
Rendering\RenderBatchBuilder.cs (1)
77_parameterViewValidityStamp = int.MinValue;
RenderTree\RenderTreeDiffBuilder.cs (1)
19public const int SystemAddedAttributeSequenceNumber = int.MinValue;
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\RazorComponentsEndpointRouteBuilderExtensions.cs (2)
60blazorEndpoint.Add((builder) => ((RouteEndpointBuilder)builder).Order = int.MinValue); 66.Add((builder) => ((RouteEndpointBuilder)builder).Order = int.MinValue);
Microsoft.AspNetCore.Components.Server (3)
Builder\ComponentEndpointRouteBuilderExtensions.cs (2)
117blazorEndpoint.Add((builder) => ((RouteEndpointBuilder)builder).Order = int.MinValue); 123.Add((builder) => ((RouteEndpointBuilder)builder).Order = int.MinValue);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
549else if (value >= int.MinValue)
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\RenderBatchWriterTest.cs (2)
49new ArrayRange<int>(new[] { 123, int.MaxValue, int.MinValue, 456 }, 3), // Only use first 3 to show that param is respected 573, 123, int.MaxValue, int.MinValue, // DisposedComponentIds as length-prefixed array
Microsoft.AspNetCore.Mvc.Core (4)
Filters\ControllerActionFilter.cs (1)
15public int Order { get; set; } = int.MinValue;
Filters\ControllerResultFilter.cs (1)
15public int Order { get; set; } = int.MinValue;
RequireHttpsAttribute.cs (1)
31public int Order { get; set; } = int.MinValue + 50;
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
28public override int Order => int.MinValue + 100;
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
276{ long.MinValue, int.MinValue },
Microsoft.AspNetCore.Mvc.Cors (3)
CorsAuthorizationFilter.cs (1)
60public int Order => int.MinValue + 100;
CorsAuthorizationFilterFactory.cs (1)
28public int Order => int.MinValue + 100;
DisableCorsAuthorizationFilter.cs (1)
19public int Order => int.MinValue + 100;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ModelMetadataProviderTest.cs (2)
367new DisplayAttribute { Order = int.MinValue }, int.MinValue
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
BsonTempDataSerializer.cs (1)
112if (longValue >= int.MinValue && longValue <= int.MaxValue)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (1)
48[InlineData(int.MinValue)]
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
PageLoaderMatcherPolicy.cs (1)
31public override int Order => int.MinValue + 100;
Microsoft.AspNetCore.Mvc.RazorPages (3)
Filters\PageHandlerPageFilter.cs (1)
13public int Order => int.MinValue;
Filters\PageHandlerResultFIlter.cs (1)
13public int Order => int.MinValue;
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
31public override int Order => int.MinValue + 100;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
RenderAtEndOfFormTagHelperTest.cs (1)
137return int.MinValue;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
SaveTempDataAttribute.cs (1)
26Order = int.MinValue + 100;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Infrastructure\TempDataSerializerTestBase.cs (1)
48[InlineData(int.MinValue)]
Microsoft.AspNetCore.Razor.Runtime.Test (10)
Runtime\TagHelpers\TagHelperRunnerTest.cs (10)
52new[] { int.MaxValue, int.MaxValue, int.MinValue }, 53new[] { int.MinValue, int.MaxValue, int.MaxValue } 56new[] { 0, 0, int.MinValue }, 57new[] { int.MinValue, 0, 0 } 60new[] { int.MinValue, -1000, 0 }, 61new[] { int.MinValue, -1000, 0 } 68new[] { int.MaxValue, int.MinValue, int.MaxValue, -1000, int.MaxValue, 0 }, 69new[] { int.MinValue, -1000, 0, int.MaxValue, int.MaxValue, int.MaxValue } 77new[] { 1000, int.MaxValue, 0, -1000, int.MinValue }, 78new[] { int.MinValue, -1000, 0, 1000, int.MaxValue }
Microsoft.AspNetCore.Razor.Test (1)
TagHelpers\NullHtmlEncoderTest.cs (1)
135[InlineData(int.MinValue)]
Microsoft.AspNetCore.Routing (1)
Matching\ILEmitTrieFactory.cs (1)
21public const int NotAscii = int.MinValue;
Microsoft.AspNetCore.Server.IIS (1)
Core\IO\AsyncIOOperation.cs (1)
132_result = int.MinValue;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
KestrelServerLimitsTests.cs (5)
75[InlineData(int.MinValue)] 103[InlineData(int.MinValue)] 129[InlineData(int.MinValue)] 333[InlineData(int.MinValue)] 348[InlineData(int.MinValue)]
Microsoft.Build (2)
Evaluation\Expander.cs (2)
4640if (d >= int.MinValue && d <= int.MaxValue) 4651if (l >= int.MinValue && l <= int.MaxValue)
Microsoft.Build.Engine.UnitTests (3)
Evaluation\ExpanderFunction_Tests.cs (2)
67const int expected = int.MinValue; 85const double value = int.MinValue - 1.0;
InternalEngineHelpers.cs (1)
140public override int Priority => int.MinValue;
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
908[InlineData(int.MinValue, true)]
Microsoft.Interop.SourceGeneration (1)
TypePositionInfo.cs (1)
48public const int UnsetIndex = int.MinValue;
Microsoft.VisualBasic.Core (14)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (4)
1763If result >= Integer.MinValue AndAlso result <= Integer.MaxValue Then 2077If result >= Integer.MinValue AndAlso result <= Integer.MaxValue Then 2381If result >= Integer.MinValue AndAlso result <= Integer.MaxValue Then 3022If result < Int32.MinValue OrElse result > Int32.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (8)
1088If operand = Int32.MinValue Then 1089Return -CLng(Int32.MinValue) 2862If result > Int32.MaxValue OrElse result < Int32.MinValue Then 3330If result < Int32.MinValue OrElse result > Int32.MaxValue Then 3774If result > Int32.MaxValue OrElse result < Int32.MinValue Then 4612If left = Integer.MinValue AndAlso right = -1 Then 5004If left = Integer.MinValue AndAlso right = -1 Then 5005Return -CLng(Integer.MinValue)
Microsoft\VisualBasic\Conversion.vb (2)
612ivalue = Int32.MinValue + (ivalue And &H7FFFFFFFL) 683ivalue = Int32.MinValue + (ivalue And &H7FFFFFFFL)
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\XamlSerializationHelper.cs (1)
446!( scaledInteger >= Int32.MinValue ) ) // equivalent to scaledInteger < Minvalue but take care of NaN.
PresentationCore (15)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1491minimum = Int32.MinValue;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (1)
324if( Int32.MinValue == propertyInfo.Minimum &&
MS\Internal\Media\XamlSerializationHelper.cs (1)
446!( scaledInteger >= Int32.MinValue ) ) // equivalent to scaledInteger < Minvalue but take care of NaN.
MS\Internal\Shaping\Positioning.cs (1)
422if (ContourPoint.dx==int.MinValue)
System\Windows\Input\Stylus\Common\StylusPointPropertyInfoDefaults.cs (11)
21Int32.MinValue, 31Int32.MinValue, 41Int32.MinValue, 51Int32.MinValue, 61Int32.MinValue, 81Int32.MinValue, 92Int32.MinValue, 182Int32.MinValue, 192Int32.MinValue, 202Int32.MinValue, 242Int32.MinValue,
PresentationFramework (30)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (4)
106int startPage = int.MinValue; 110if (startPage == int.MinValue) 113int endPage = int.MinValue; 117if (endPage == int.MinValue)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
238startOffset = int.MinValue;
MS\Internal\Documents\TextDocumentView.cs (2)
2845cpcCur = tableResult.GetCellBelow(suggestedX, int.MinValue, int.MinValue);
System\Windows\Annotations\LocatorPart.cs (1)
268if (desiredStartOffset == int.MinValue)
System\Windows\Controls\ItemContainerGenerator.cs (1)
102_itemsGenerated = Int32.MinValue;
System\Windows\Controls\TextRangeAdaptor.cs (1)
995int absCount = (count == int.MinValue) ? int.MaxValue : Math.Abs(count);
System\Windows\Controls\ValidationResult.cs (1)
119return IsValid.GetHashCode() ^ ((ErrorContent == null) ? int.MinValue : ErrorContent).GetHashCode();
System\Windows\Controls\VirtualizingStackPanel.cs (3)
2223int firstItemInViewportIndex = Int32.MinValue, lastItemInViewportIndex = Int32.MaxValue, firstItemInViewportChildIndex = Int32.MinValue, firstItemInExtendedViewportIndex = Int32.MinValue;
System\windows\Documents\CaretElement.cs (2)
1117else if (value < Int32.MinValue) 1119i = Int32.MinValue;
System\Windows\Documents\FixedFlowMap.cs (3)
97internal const int FixedOrderStartPage = int.MinValue; 99internal const int FixedOrderStartVisual = int.MinValue; 103internal const int FlowOrderBoundaryScopeId = int.MinValue;
System\Windows\Documents\FixedSOMContainer.cs (2)
33int result = Int32.MinValue; 114if (result == Int32.MinValue)
System\Windows\Documents\FixedSOMGroup.cs (1)
36int result = Int32.MinValue;
System\Windows\Documents\ImmComposition.cs (3)
1836i = Int32.MinValue; 1838else if (value < Int32.MinValue) 1840i = Int32.MinValue;
System\Windows\Input\KeyboardNavigation.cs (3)
1993int minIndexFirstTab = Int32.MinValue; 2035int minIndexFirstTab = Int32.MinValue; 2036int minIndex = Int32.MinValue;
System\Windows\Window.cs (2)
5602((l > Int32.MaxValue) || (l < Int32.MinValue))) 5619(length < Int32.MinValue))
ReachFramework (3)
AlphaFlattener\BrushProxy.cs (2)
4500if (v < System.Int32.MinValue) 4502return System.Int32.MinValue;
PrintConfig\PrintSchema.cs (1)
1785public const int UnspecifiedIntValue = System.Int32.MinValue;
SocialWeather (2)
Pipe\PipeWeatherStreamFormatter.cs (2)
28temperature = int.MinValue; 38reportTime = int.MinValue;
System.Console (1)
System\TerminalFormatStrings.cs (1)
164MaxKeyFormatLength = int.MinValue;
System.Data.Common (8)
System\Data\Common\Int32Storage.cs (1)
122int max = int.MinValue;
System\Data\SQLTypes\SQLDecimal.cs (1)
541if (value != int.MinValue)
System\Data\SQLTypes\SQLInt32.cs (6)
25private const long s_iIntMin = int.MinValue; // minimum (signed) int value 215if (value > int.MaxValue || value < int.MinValue) 228if (value > int.MaxValue || value < int.MinValue) 241if (value > int.MaxValue || value < int.MinValue) 265if (x._bLen > 1 || ret > int.MaxValue || ret < int.MinValue) 541public static readonly SqlInt32 MinValue = new SqlInt32(int.MinValue);
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnDecoder.Integer.cs (2)
154/// <see cref="int.MinValue"/> and <see cref="int.MaxValue"/>, inclusive; otherwise, 603/// <see cref="int.MinValue"/> and <see cref="int.MaxValue"/>, inclusive; otherwise
System\Formats\Asn1\AsnWriter.Integer.cs (1)
130else if (value >= int.MinValue)
System.Linq (3)
System\Linq\SkipTake.SpeedOpt.cs (3)
445int comparand = HasLimit ? 0 : int.MinValue; // If we don't have an upper bound, have the comparison always return true. 471int comparand = HasLimit ? 0 : int.MinValue; // If we don't have an upper bound, have the comparison always return true. 501int comparand = HasLimit ? 0 : int.MinValue; // If we don't have an upper bound, have the comparison always return true.
System.Linq.Expressions (5)
System\Linq\Expressions\Compiler\ILGen.cs (2)
330if (int.MinValue <= value & value <= uint.MaxValue) 984if (int.MinValue <= value)
System\Linq\Expressions\Interpreter\BranchLabel.cs (2)
29internal const int UnknownIndex = int.MinValue; 30internal const int UnknownDepth = int.MinValue;
System\Linq\Expressions\Interpreter\ControlFlowInstructions.cs (1)
15internal const int Unknown = int.MinValue;
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
67Math.Abs(int.MinValue); // throw OverflowException 95Math.Abs(int.MinValue); // throw OverflowException 123Math.Abs(int.MinValue); // throw OverflowException
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (2)
289if (number.Scale < int.MinValue + (long)absoluteExponent) 294number.Scale = int.MinValue;
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
1038if (value < int.MinValue || value > int.MaxValue) ThrowInt32OverflowException();
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1767(value <= int.MinValue) ? int.MinValue : (int)value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (2)
17private int bufferedArrayFieldCount = int.MinValue; 264this.bufferedArrayFieldCount = int.MinValue;
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
127if ((long)uint64Value < int.MinValue || (long)uint64Value > int.MaxValue) return null;
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (1)
101new EphemerisCorrectionAlgorithmMap(int.MinValue, CorrectionAlgorithm.Default) // default must be last
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (2)
53private int _hijriAdvance = int.MinValue; 111if (_hijriAdvance == int.MinValue)
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1562return int.MinValue;
src\libraries\System.Private.CoreLib\src\System\Int32.cs (17)
630static int IMinMaxValue<int>.MinValue => MinValue; 1010(actualValue <= MinValue) ? MinValue : (int)actualValue; 1017(actualValue == Half.NegativeInfinity) ? MinValue : (int)actualValue; 1030(actualValue <= MinValue) ? MinValue : (int)actualValue; 1037(actualValue <= MinValue) ? MinValue : (int)actualValue; 1044(actualValue <= MinValue) ? MinValue : (int)actualValue; 1057(actualValue <= MinValue) ? MinValue : (int)actualValue; 1088(actualValue <= MinValue) ? MinValue : (int)actualValue; 1095(actualValue == Half.NegativeInfinity) ? MinValue : (int)actualValue; 1132(actualValue <= MinValue) ? MinValue : (int)actualValue;
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
853return int.MinValue;
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
204return int.MinValue;
src\libraries\System.Private.CoreLib\src\System\Random.Net5CompatImpl.cs (1)
264int subtraction = (seed == int.MinValue) ? int.MaxValue : Math.Abs(seed);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1059private const int ENUM_DONE = int.MinValue;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1702(value <= int.MinValue) ? int.MinValue : (int)value;
System.Private.DataContractSerialization (5)
System\Xml\ValueHandle.cs (1)
240if (value >= int.MinValue && value <= int.MaxValue)
System\Xml\XmlConverter.cs (4)
481if (value < int.MinValue / 10) 484if (value < int.MinValue + digit) 698while (value < int.MinValue) 706Debug.Assert(value >= int.MinValue && value <= int.MaxValue);
System.Private.Xml (7)
System\Xml\Cache\XPathDocumentNavigator.cs (2)
872return int.MinValue; 880XPathNodeType.Namespace => int.MinValue + 1 + XPathNodeHelper.GetLocation(_pageCurrent, _idxCurrent),
System\Xml\Schema\DataTypeImplementation.cs (1)
3267private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(int.MinValue, int.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (2)
802if (value < (decimal)int.MinValue || value > (decimal)int.MaxValue) 858if (value < (long)int.MinValue || value > (long)int.MaxValue)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
923if (dec >= (decimal)int.MinValue && dec <= (decimal)int.MaxValue && decimal.Truncate(dec) == dec)
System\Xml\Xsl\Xslt\Compiler.cs (1)
412public const int NeverDeclaredPrec = int.MinValue;
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1059private const int ENUM_DONE = int.MinValue;
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
178hashCode = (hashCode == int.MinValue) ? 0 : -hashCode;
System.Runtime.Numerics (21)
System\Numerics\BigInteger.cs (17)
25internal const uint kuMaskHighBit = unchecked((uint)int.MinValue); 45if (value == int.MinValue) 74if (int.MinValue < value && value <= int.MaxValue) 79else if (value == int.MinValue) 348if (_sign == int.MinValue) 510if (_sign == int.MinValue) 557else if (int.MinValue == unchecked((int)value[0])) 2168if ((int.MinValue < value) && (value <= int.MaxValue)) 2173else if (value == int.MinValue) 2489if (shift == int.MinValue) 2548if (shift == int.MinValue) 3135Debug.Assert(_sign > int.MinValue); 3240if (rotateAmount == int.MinValue) 3375if (rotateAmount == int.MinValue) 4694actualResult = IsNegative(value) ? int.MinValue : int.MaxValue; 4699(value._sign <= int.MinValue) ? int.MinValue : (int)value._sign;
System\Numerics\Complex.cs (4)
1896(value.m_real <= int.MinValue) ? int.MinValue : (int)value.m_real; 2032(value.m_real <= int.MinValue) ? int.MinValue : (int)value.m_real;
System.Text.Json (2)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
410/// is written in scientific notation) or, it represents a number less than <see cref="int.MinValue"/> or greater
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1058int previousPropertyOrder = int.MinValue;
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
5642value is < 0 and > int.MinValue ? $"{variable} -= {-value};" :
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
2121if (currentIndex == Int32.MinValue) 2195return Int32.MinValue; 2204return Int32.MinValue; 2218return Int32.MinValue;
TagHelpersWebSite (2)
TagHelpers\BoldTagHelper.cs (1)
15return int.MinValue;
TagHelpers\SurroundTagHelper.cs (1)
16return int.MinValue;
WindowsFormsIntegration (2)
System\Windows\Integration\Convert.cs (2)
314if (value < int.MinValue) 316return int.MinValue;