72 references to 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)
4310case SpecialType.System_Byte: return (byte.MinValue - 1D) < value && value < (byte.MaxValue + 1D); 4340case SpecialType.System_Byte: return (byte.MinValue - 1M) < value && value < (byte.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1387return 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.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.Primitives (1)
System\Drawing\Color.cs (1)
436throw new ArgumentException(SR.Format(SR.InvalidEx2BoundArgument, n, v, byte.MinValue, byte.MaxValue));
System.Net.Quic (2)
System\Net\Quic\QuicStream.cs (2)
135/// <see cref="byte.MinValue"/> represents the lowest priority and <see cref="byte.MaxValue"/> represents the highest priority. 154/// <see cref="byte.MinValue"/> represents the lowest priority and <see cref="byte.MaxValue"/> represents the highest.
System.Private.CoreLib (27)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (5)
492static byte IMinMaxValue<byte>.MinValue => MinValue; 778(actualValue <= MinValue) ? MinValue : (byte)actualValue; 845(actualValue <= MinValue) ? MinValue : (byte)actualValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1417(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
2096(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1790(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
1176(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1241(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1236(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1250(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1883((float)value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1587(value <= byte.MinValue) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
1812result = byte.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1155byte actualResult = (value <= 0) ? byte.MinValue : (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1436(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)
655if (value < byte.MinValue || value > byte.MaxValue)
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)
4579actualResult = IsNegative(value) ? byte.MinValue : byte.MaxValue; 4584(value._sign <= byte.MinValue) ? byte.MinValue : (byte)value._sign;
System\Numerics\Complex.cs (4)
1857(value.m_real <= byte.MinValue) ? byte.MinValue : (byte)value.m_real; 1999(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