88 references to MinValue
BinaryFormatTests (1)
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
64{ (byte)PrimitiveType.Byte, byte.MinValue },
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3699private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(byte.MinValue, byte.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
911if (value < (int)Byte.MinValue || value > (int)Byte.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
441if (value < byte.MinValue || value > byte.MaxValue)
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Conversions.cs (2)
3605case SpecialType.System_Byte: return (byte.MinValue - 1D) < value && value < (byte.MaxValue + 1D); 3635case SpecialType.System_Byte: return (byte.MinValue - 1M) < value && value < (byte.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1372return byte.MinValue <= value && value <= byte.MaxValue;
Utilities\ValueSetFactory.ByteTC.cs (3)
18byte INumericTC<byte>.MinValue => byte.MinValue; 51Debug.Assert(value != byte.MinValue); 63return (byte)random.Next(byte.MinValue, byte.MaxValue + 1);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenIncrementTests.cs (1)
96TestIncrementCompilationAndOutput<byte>(byte.MaxValue, byte.MinValue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.cs (1)
310CheckLiteralToString(byte.MinValue, @"0");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
162VerifySyntax<LiteralExpressionSyntax>(Generator.LiteralExpression(byte.MinValue), "0");
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ObjectSerializationTests.cs (2)
364TestRoundTripValue<Int64>(Byte.MinValue); 392TestRoundTripValue<UInt64>(Byte.MinValue);
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
296var ret = byte.MinValue; 529var value = byte.MinValue; 552var value = byte.MinValue;
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
228return byte.MinValue;
Microsoft.ML.Tests (6)
CollectionsDataViewTest.cs (1)
147fByte = byte.MinValue + 1,
Transformers\ConvertTests.cs (5)
157AE = new byte[]{ byte.MinValue, byte.MaxValue}, 225AE = new byte[]{ byte.MinValue, byte.MaxValue}, 237ConvE = new float[] { byte.MinValue, byte.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.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (3)
1744If result >= Byte.MinValue AndAlso result <= Byte.MaxValue Then 2058If result >= Byte.MinValue AndAlso result <= Byte.MaxValue Then 2360If result >= Byte.MinValue AndAlso result <= Byte.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (1)
3286If result < Byte.MinValue Then
System.Data.Common (7)
System\Data\Common\ByteStorage.cs (1)
118byte max = byte.MinValue;
System\Data\SQLTypes\SQLByte.cs (6)
198if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 210if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 222if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 234if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 246if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 525public static readonly SqlByte MinValue = new SqlByte(byte.MinValue);
System.Drawing.Common.Tests (11)
System\Drawing\Imaging\EncoderParameterTests.cs (11)
22yield return new object[] { Encoder.ChrominanceTable, byte.MinValue }; 23yield return new object[] { Encoder.ColorDepth, byte.MinValue }; 24yield return new object[] { Encoder.Compression, byte.MinValue }; 25yield return new object[] { Encoder.LuminanceTable, byte.MinValue }; 26yield return new object[] { Encoder.Quality, byte.MinValue }; 27yield return new object[] { Encoder.RenderMethod, byte.MinValue }; 28yield return new object[] { Encoder.SaveFlag, byte.MinValue }; 29yield return new object[] { Encoder.ScanMethod, byte.MinValue }; 30yield return new object[] { Encoder.Transformation, byte.MinValue }; 31yield return new object[] { Encoder.Version, byte.MinValue }; 32yield return new object[] { new Encoder(Guid.NewGuid()), byte.MinValue };
System.Drawing.Primitives (1)
System\Drawing\Color.cs (1)
435throw new ArgumentException(SR.Format(SR.InvalidEx2BoundArgument, n, v, byte.MinValue, byte.MaxValue));
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (5)
491static byte IMinMaxValue<byte>.MinValue => MinValue; 777(actualValue <= MinValue) ? MinValue : (byte)actualValue; 844(actualValue <= MinValue) ? MinValue : (byte)actualValue;
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1395(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
2097(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1801(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
1182(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1222(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1217(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1213(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1660(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1145byte actualResult = (value <= 0) ? byte.MinValue : (byte)value;
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1414(value <= byte.MinValue) ? byte.MinValue : (byte)value;
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
52if (value < byte.MinValue || value > byte.MaxValue)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
575if (value < byte.MinValue || value > byte.MaxValue)
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
69new List<byte> { byte.MinValue, byte.MaxValue }, 89new byte[] { byte.MinValue, byte.MaxValue },
System\Value\StoringByte.cs (1)
12{ byte.MinValue }
System\Value\StoringEnum.cs (1)
159MinValue = byte.MinValue,
System.Private.Xml (2)
System\Xml\Schema\DataTypeImplementation.cs (1)
3623private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(byte.MinValue, byte.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
826if (value < (int)byte.MinValue || value > (int)byte.MaxValue)
System.Runtime.Numerics (7)
System\Numerics\BigInteger.cs (3)
4666actualResult = IsNegative(value) ? byte.MinValue : byte.MaxValue; 4671(value._sign <= byte.MinValue) ? byte.MinValue : (byte)value._sign;
System\Numerics\Complex.cs (4)
1827(value.m_real <= byte.MinValue) ? byte.MinValue : (byte)value.m_real; 1963(value.m_real <= byte.MinValue) ? byte.MinValue : (byte)value.m_real;
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
307/// is written in scientific notation) or, it represents a number less than <see cref="byte.MinValue"/> or greater