106 references to MinValue
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
882return decimal.ToInt16(ReadIntegralNumericValue(value, underlyingType, short.MinValue, short.MaxValue));
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3388private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(short.MinValue, short.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
919if (value < (int)Int16.MinValue || value > (int)Int16.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
423if (value < short.MinValue || value > short.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (1)
963if (i < Int16.MinValue || i > Int16.MaxValue)
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
47{ short.MinValue, nameof(short.MinValue) },
ILCompiler.Compiler (2)
Compiler\TypePreinit.cs (1)
943ValueTypeValue.FromInt32((short)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, short.MinValue, short.MaxValue)));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
227Debug.Assert(addend >= short.MinValue && addend <= short.MaxValue);
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
227Debug.Assert(addend >= short.MinValue && addend <= short.MaxValue);
Microsoft.AspNetCore.Components.Server (3)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (3)
423else if (value >= short.MinValue) 542else if (value >= short.MinValue) 1314>= short.MinValue => 3,
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
47{ short.MinValue, nameof(short.MinValue) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
47{ short.MinValue, nameof(short.MinValue) },
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (2)
4308case SpecialType.System_Int16: return (short.MinValue - 1D) < value && value < (short.MaxValue + 1D); 4338case SpecialType.System_Int16: return (short.MinValue - 1M) < value && value < (short.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1391return short.MinValue <= value && value <= short.MaxValue;
Utilities\ValueSetFactory.ShortTC.cs (2)
18short INumericTC<short>.MinValue => short.MinValue; 51Debug.Assert(value != short.MinValue);
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
313return UnmanagedHelper<long>.TryCreate(parameterSymbol, attributeData, short.MinValue, short.MaxValue, out parameter); 365return UnmanagedHelper<long>.Validate(parameterSymbol, attributeData, short.MinValue, short.MaxValue, helper, out diagnostics);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
118value >= Short.MinValue AndAlso value <= Short.MaxValue Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
118value >= Short.MinValue AndAlso value <= Short.MaxValue Then
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
47{ short.MinValue, nameof(short.MinValue) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
4192var ret = short.MinValue; 4425var value = short.MinValue; 4448var value = short.MinValue;
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
230return short.MinValue;
Microsoft.ML.Core.Tests (1)
UnitTests\DataTypes.cs (1)
119short minValue = short.MinValue;
Microsoft.ML.Data (1)
DataLoadSave\Binary\Codecs.cs (1)
746value = new DateTimeOffset(new DateTime(ticks == long.MinValue ? default : ticks), new TimeSpan(0, offset == short.MinValue ? default : offset, 0));
Microsoft.ML.Tests (6)
CollectionsDataViewTest.cs (1)
152fShort = short.MinValue + 1,
TextLoaderTests.cs (2)
35string.Format("{0},{1},{2},{3}", sbyte.MinValue, short.MinValue, int.MinValue, long.MinValue), 55short[] shortTargets = new short[] { short.MinValue, short.MaxValue, default };
Transformers\ConvertTests.cs (3)
159AG = new short[]{ short.MinValue, short.MaxValue}, 227AG = new short[]{ short.MinValue, short.MaxValue}, 239ConvG = new float[] { short.MinValue, short.MaxValue },
Microsoft.VisualBasic.Core (14)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (5)
1754If result >= Short.MinValue AndAlso result <= Short.MaxValue Then 2068If result >= Short.MinValue AndAlso result <= Short.MaxValue Then 2362ElseIf result >= Int16.MinValue AndAlso result <= Int16.MaxValue Then 2372If result >= Short.MinValue AndAlso result <= Short.MaxValue Then 3010If result < Int16.MinValue OrElse result > Int16.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (7)
1077If operand = Int16.MinValue Then 1078Return -CInt(Int16.MinValue) 2840If result > Int16.MaxValue OrElse result < Int16.MinValue Then 3308If result < Int16.MinValue OrElse result > Int16.MaxValue Then 3748If result > Int16.MaxValue OrElse result < Int16.MinValue Then 4992If left = Short.MinValue AndAlso right = -1 Then 4993Return -CInt(Short.MinValue)
Microsoft\VisualBasic\Conversion.vb (2)
617ivalue = Int16.MinValue + (ivalue And &H7FFFL) 688ivalue = Int16.MinValue + (ivalue And &H7FFFL)
PresentationCore (1)
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
262if (scaled > short.MaxValue || scaled < short.MinValue)
PresentationFramework (1)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2033typeId = Int16.MinValue;
ReachFramework (1)
PrintConfig\PrintSchemaShim.cs (1)
1072devMode.Scale = Clamp(scale, short.MinValue, short.MaxValue);
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
47{ short.MinValue, nameof(short.MinValue) },
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
118value >= Short.MinValue AndAlso value <= Short.MaxValue Then
System.Data.Common (8)
System\Data\Common\Int16Storage.cs (1)
123short max = short.MinValue;
System\Data\SQLTypes\SQLInt16.cs (7)
142if ((x.m_value == short.MinValue) && (y.m_value == -1)) 158if ((x.m_value == short.MinValue) && (y.m_value == -1)) 206if (value > short.MaxValue || value < short.MinValue) 219if (value > short.MaxValue || value < short.MinValue) 232if (value < short.MinValue || value > short.MaxValue) 245if (value < short.MinValue || value > short.MaxValue) 526public static readonly SqlInt16 MinValue = new SqlInt16(short.MinValue);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.Integer.cs (1)
126else if (value >= short.MinValue)
System.Private.CoreLib (24)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (3)
798if (value < short.MinValue || value > short.MaxValue) ThrowInt16OverflowException(); 816if (value < short.MinValue || value > short.MaxValue) ThrowInt16OverflowException(); 2114if (r < short.MinValue || r > short.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1725(value <= short.MinValue) ? short.MinValue : (short)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
117if ((long)uint64Value < short.MinValue || (long)uint64Value > short.MaxValue) return null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (11)
573static short IMinMaxValue<short>.MinValue => MinValue; 957(actualValue <= BitConverter.UInt16BitsToHalf(0xF800)) ? MinValue : (short)actualValue; 964(actualValue <= MinValue) ? MinValue : (short)actualValue; 971(actualValue <= MinValue) ? MinValue : (short)actualValue; 978(actualValue <= MinValue) ? MinValue : (short)actualValue; 985(actualValue <= MinValue) ? MinValue : (short)actualValue; 1044(actualValue <= BitConverter.UInt16BitsToHalf(0xF800)) ? MinValue : (short)actualValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1848((float)value <= short.MinValue) ? short.MinValue : (short)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1621(value <= short.MinValue) ? short.MinValue : (short)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
358result = (result < 0) ? short.MaxValue : short.MinValue; 1848result = (result < 0) ? short.MaxValue : short.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Lock.cs (1)
27private const short SpinCountNotInitialized = short.MinValue;
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
636if (value < short.MinValue || value > short.MaxValue)
System\Xml\XmlBinaryWriter.cs (1)
724if (f >= short.MinValue && f <= short.MaxValue && (i = (int)f) == f)
System\Xml\XmlDictionaryReader.cs (1)
1075if (i < short.MinValue || i > short.MaxValue)
System.Private.Xml (2)
System\Xml\Schema\DataTypeImplementation.cs (1)
3322private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(short.MinValue, short.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
834if (value < (int)short.MinValue || value > (int)short.MaxValue)
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
4830actualResult = IsNegative(value) ? short.MinValue : short.MaxValue; 4835(value._sign <= short.MinValue) ? short.MinValue : (short)value._sign;
System.Speech (2)
Internal\Synthesis\PcmConverter.cs (2)
181if (dtmp < short.MinValue) 183dtmp = short.MinValue;
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
376/// is written in scientific notation) or, it represents a number less than <see cref="short.MinValue"/> or greater
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
792this.Location = new SD.Point(short.MinValue, short.MinValue);