68 references to MinValue
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
877
return decimal.ToByte(ReadIntegralNumericValue(value, underlyingType, byte.
MinValue
, byte.MaxValue));
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)
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
956
ValueTypeValue.FromInt32((byte)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, byte.
MinValue
, byte.MaxValue)));
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Conversions.cs (2)
4302
case SpecialType.System_Byte: return (byte.
MinValue
- 1D) < value && value < (byte.MaxValue + 1D);
4332
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.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
303
return UnmanagedHelper<ulong>.TryCreate(parameterSymbol, attributeData, byte.
MinValue
, byte.MaxValue, out parameter);
355
return UnmanagedHelper<ulong>.Validate(parameterSymbol, attributeData, byte.
MinValue
, byte.MaxValue, helper, out diagnostics);
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 (23)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (5)
486
static byte IMinMaxValue<byte>.MinValue =>
MinValue
;
772
(actualValue <=
MinValue
) ?
MinValue
: (byte)actualValue;
839
(actualValue <=
MinValue
) ?
MinValue
: (byte)actualValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
2147
(value <= byte.
MinValue
) ? byte.
MinValue
: (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1781
(value <= byte.
MinValue
) ? byte.
MinValue
: (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
1179
(value <= byte.
MinValue
) ? byte.
MinValue
: (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1228
(value <= byte.
MinValue
) ? byte.
MinValue
: (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1223
(value <= byte.
MinValue
) ? byte.
MinValue
: (byte)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1247
(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)
1830
result = byte.
MinValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1158
byte actualResult = (value <= 0) ? 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 (3)
System\Numerics\BigInteger.cs (3)
4771
actualResult = IsNegative(value) ? byte.
MinValue
: byte.MaxValue;
4776
(value._sign <= byte.
MinValue
) ? byte.
MinValue
: (byte)value._sign;
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