72 references to MinValue
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3699
private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(byte.
MinValue
, byte.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
911
if (value < (int)Byte.
MinValue
|| value > (int)Byte.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
441
if (value < byte.
MinValue
|| value > byte.MaxValue)
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Conversions.cs (2)
4310
case SpecialType.System_Byte: return (byte.
MinValue
- 1D) < value && value < (byte.MaxValue + 1D);
4340
case SpecialType.System_Byte: return (byte.
MinValue
- 1M) < value && value < (byte.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1387
return byte.
MinValue
<= value && value <= byte.MaxValue;
Utilities\ValueSetFactory.ByteTC.cs (3)
18
byte INumericTC<byte>.MinValue => byte.
MinValue
;
51
Debug.Assert(value != byte.
MinValue
);
63
return (byte)random.Next(byte.
MinValue
, byte.MaxValue + 1);
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
296
var ret = byte.
MinValue
;
529
var value = byte.
MinValue
;
552
var value = byte.
MinValue
;
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
228
return byte.
MinValue
;
Microsoft.ML.Tests (6)
CollectionsDataViewTest.cs (1)
147
fByte = byte.
MinValue
+ 1,
Transformers\ConvertTests.cs (5)
157
AE = new byte[]{ byte.
MinValue
, byte.MaxValue},
225
AE = new byte[]{ byte.
MinValue
, byte.MaxValue},
237
ConvE = new float[] { byte.
MinValue
, byte.MaxValue },
252
var allInputTypesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.
MinValue
, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false } };
264
var 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)
1744
If result >= Byte.
MinValue
AndAlso result <= Byte.MaxValue Then
2058
If result >= Byte.
MinValue
AndAlso result <= Byte.MaxValue Then
2360
If result >= Byte.
MinValue
AndAlso result <= Byte.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (1)
3286
If result < Byte.
MinValue
Then
System.Data.Common (7)
System\Data\Common\ByteStorage.cs (1)
118
byte max = byte.
MinValue
;
System\Data\SQLTypes\SQLByte.cs (6)
198
if (x.Value > byte.MaxValue || x.Value < byte.
MinValue
)
210
if (x.Value > byte.MaxValue || x.Value < byte.
MinValue
)
222
if (x.Value > byte.MaxValue || x.Value < byte.
MinValue
)
234
if (x.Value > byte.MaxValue || x.Value < byte.
MinValue
)
246
if (x.Value > byte.MaxValue || x.Value < byte.
MinValue
)
525
public static readonly SqlByte MinValue = new SqlByte(byte.
MinValue
);
System.Drawing.Primitives (1)
System\Drawing\Color.cs (1)
436
throw 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)
492
static 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)
1812
result = byte.
MinValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1155
byte 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)
52
if (value < byte.
MinValue
|| value > byte.MaxValue)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
655
if (value < byte.
MinValue
|| value > byte.MaxValue)
System.Private.Xml (2)
System\Xml\Schema\DataTypeImplementation.cs (1)
3623
private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(byte.
MinValue
, byte.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
826
if (value < (int)byte.
MinValue
|| value > (int)byte.MaxValue)
System.Runtime.Numerics (7)
System\Numerics\BigInteger.cs (3)
4579
actualResult = 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