125 references to MinValue
BinaryFormatTests (2)
FormatTests\FormattedObject\ListTests.cs (1)
96new List<sbyte>() { 0, -2, sbyte.MaxValue, sbyte.MinValue },
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
63{ (byte)PrimitiveType.SByte, sbyte.MinValue },
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3444private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(sbyte.MinValue, sbyte.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
927if (value < (int)SByte.MinValue || value > (int)SByte.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
460if (value < SByte.MinValue || value > SByte.MaxValue)
http2cat (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
Microsoft.AspNetCore.Components.Server (3)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (3)
314else if (value >= sbyte.MinValue) 416else if (value >= sbyte.MinValue) 535else if (value >= sbyte.MinValue)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
Microsoft.CodeAnalysis (1)
ExtendedSpecialType.cs (1)
21Debug.Assert(value >= sbyte.MinValue && value <= sbyte.MaxValue);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
41{ sbyte.MinValue, nameof(sbyte.MinValue) },
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (2)
3610case SpecialType.System_SByte: return (sbyte.MinValue - 1D) < value && value < (sbyte.MaxValue + 1D); 3640case SpecialType.System_SByte: return (sbyte.MinValue - 1M) < value && value < (sbyte.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1374return sbyte.MinValue <= value && value <= sbyte.MaxValue;
Utilities\ValueSetFactory.SByteTC.cs (2)
17sbyte INumericTC<sbyte>.MinValue => sbyte.MinValue; 50Debug.Assert(value != sbyte.MinValue);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenIncrementTests.cs (1)
90TestIncrementCompilationAndOutput<sbyte>(sbyte.MaxValue, sbyte.MinValue);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
11267CreateEnumValues(300, "E", sbyte.MinValue));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\GetSemanticInfoTests.cs (4)
888EnumOffset(ConstantValue.Create((sbyte)sbyte.MinValue), 1, EnumOverflowKind.NoOverflow, ConstantValue.Create((sbyte)(sbyte.MinValue + 1))); 889EnumOffset(ConstantValue.Create((sbyte)sbyte.MinValue), 2, EnumOverflowKind.NoOverflow, ConstantValue.Create((sbyte)(sbyte.MinValue + 2)));
Symbols\Source\CompletionTests.cs (1)
146for (int i = sbyte.MinValue; i <= sbyte.MaxValue; i++)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.cs (1)
315CheckLiteralToString(sbyte.MinValue, @"-128");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
153VerifySyntax<MemberAccessExpressionSyntax>(Generator.LiteralExpression(sbyte.MinValue), "global::System.SByte.MinValue");
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\Conversions.vb (2)
570New TypeAndValue(sbyteType, SByte.MinValue), 1131New TypeAndValue(sbyteType, SByte.MinValue),
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
41{ sbyte.MinValue, nameof(sbyte.MinValue) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
3705var ret = sbyte.MinValue; 3938var value = sbyte.MinValue; 3961var value = sbyte.MinValue;
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
226return sbyte.MinValue;
Microsoft.ML.Core.Tests (2)
UnitTests\DataTypes.cs (2)
79sbyte minValue = sbyte.MinValue; 93src = (sbyte.MinValue - 1).ToString().AsMemory();
Microsoft.ML.Tests (8)
CollectionsDataViewTest.cs (1)
146fsByte = sbyte.MinValue + 1,
TextLoaderTests.cs (2)
35string.Format("{0},{1},{2},{3}", sbyte.MinValue, short.MinValue, int.MinValue, long.MinValue), 54sbyte[] sByteTargets = new sbyte[] { sbyte.MinValue, sbyte.MaxValue, default };
Transformers\ConvertTests.cs (5)
158AF = new sbyte[]{ sbyte.MinValue, sbyte.MaxValue}, 226AF = new sbyte[]{ sbyte.MinValue, sbyte.MaxValue}, 238ConvF = new float[] { sbyte.MinValue, sbyte.MaxValue }, 252var allInputTypesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.MinValue, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false } }; 264var expectedValuesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.MinValue, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false,
Microsoft.ML.Transforms (1)
Expression\IlGeneratorExtensions.cs (1)
278if (sbyte.MinValue <= arg && arg <= sbyte.MaxValue)
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\Operators.vb (7)
1066If operand = SByte.MinValue Then 1067Return -CShort(SByte.MinValue) 2829If result > SByte.MaxValue OrElse result < SByte.MinValue Then 3297If result < SByte.MinValue OrElse result > SByte.MaxValue Then 3737If result > SByte.MaxValue OrElse result < SByte.MinValue Then 4980If left = SByte.MinValue AndAlso right = -1 Then 4981Return -CShort(SByte.MinValue)
System.Data.Common (1)
System\Data\Common\SByteStorage.cs (1)
118sbyte max = sbyte.MinValue;
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.Integer.cs (1)
124if (value >= sbyte.MinValue)
System.Net.Http (1)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\IntegerEncoder.cs (1)
75private static byte MaskHigh(int n) => (byte)(sbyte.MinValue >> (n - 1));
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (4)
573if (value < sbyte.MinValue || value > sbyte.MaxValue) ThrowSByteOverflowException(); 587if (value < sbyte.MinValue || value > sbyte.MaxValue) ThrowSByteOverflowException(); 601if (value < sbyte.MinValue || value > sbyte.MaxValue) ThrowSByteOverflowException(); 2090if (r < sbyte.MinValue || r > sbyte.MaxValue)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1788(value <= sbyte.MinValue) ? sbyte.MinValue : (sbyte)value;
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
109if ((long)uint64Value < sbyte.MinValue || (long)uint64Value > sbyte.MaxValue) return null;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1729(value <= sbyte.MinValue) ? sbyte.MinValue : (sbyte)value;
src\libraries\System.Private.CoreLib\src\System\SByte.cs (23)
548static sbyte IMinMaxValue<sbyte>.MinValue => MinValue; 928(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 935(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 942(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 949(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 956(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 963(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 970(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 977(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 1008(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 1015(actualValue <= MinValue) ? MinValue : (sbyte)actualValue; 1052(actualValue <= MinValue) ? MinValue : (sbyte)actualValue;
src\System\Reflection\Emit\RuntimeILGenerator.cs (1)
215if (updateAddr < sbyte.MinValue || updateAddr > sbyte.MaxValue)
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
594if (value < sbyte.MinValue || value > sbyte.MaxValue)
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
70new List<sbyte> { sbyte.MinValue, sbyte.MaxValue }, 90new sbyte[] { sbyte.MinValue, sbyte.MaxValue },
System\Value\StoringSByte.cs (1)
13{ sbyte.MinValue }
System.Private.Xml (2)
System\Xml\Schema\DataTypeImplementation.cs (1)
3376private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(sbyte.MinValue, sbyte.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
842if (value < (int)sbyte.MinValue || value > (int)sbyte.MaxValue)
System.Runtime.Numerics (7)
System\Numerics\BigInteger.cs (3)
4780actualResult = IsNegative(value) ? sbyte.MinValue : sbyte.MaxValue; 4785(value._sign <= sbyte.MinValue) ? sbyte.MinValue : (sbyte)value._sign;
System\Numerics\Complex.cs (4)
1901(value.m_real <= sbyte.MinValue) ? sbyte.MinValue : (sbyte)value.m_real; 2037(value.m_real <= sbyte.MinValue) ? sbyte.MinValue : (sbyte)value.m_real;
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
341/// is written in scientific notation) or, it represents a number less than <see cref="sbyte.MinValue"/> or greater
System.Windows.Forms.Primitives.Tests (15)
Interop\Oleaut32\VARIANTTests.cs (15)
177yield return new object[] { VT_I1, (nint)sbyte.MinValue, sbyte.MinValue }; 208yield return new object[] { VT_I2, (nint)sbyte.MinValue, (short)sbyte.MinValue }; 238yield return new object[] { VT_I4, (nint)sbyte.MinValue, (int)sbyte.MinValue }; 269yield return new object[] { VT_INT, (nint)sbyte.MinValue, (int)sbyte.MinValue }; 304yield return new object[] { VT_ERROR, (nint)sbyte.MinValue, (int)sbyte.MinValue }; 395yield return new object[] { (nint)sbyte.MinValue, (long)sbyte.MinValue }; 423yield return new object[] { sbyte.MinValue }; 686yield return new object[] { (nint)sbyte.MinValue, (int)sbyte.MinValue };