14 implementations of MaxValue
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
489
static byte IMinMaxValue<byte>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1451
static char IMinMaxValue<char>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1222
static decimal IMinMaxValue<decimal>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
931
static double IMinMaxValue<double>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
576
static short IMinMaxValue<short>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
618
static int IMinMaxValue<int>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
615
static long IMinMaxValue<long>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
638
static nint IMinMaxValue<nint>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
555
static sbyte IMinMaxValue<sbyte>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
926
static float IMinMaxValue<float>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
494
static ushort IMinMaxValue<ushort>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
559
static uint IMinMaxValue<uint>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
566
static ulong IMinMaxValue<ulong>.
MaxValue
=> MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
565
static nuint IMinMaxValue<nuint>.
MaxValue
=> MaxValue;
44 references to MaxValue
System.Private.CoreLib (30)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
488
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1450
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1221
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
930
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
103
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1113
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
575
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
617
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
614
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
172
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
637
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (5)
1690
TValue chunkLimit = TValue.
MaxValue
/ b.Significand;
1801
TValue chunkLimit = TValue.
MaxValue
/ b.Significand;
3517
UInt128 maxMagnitude = UInt128.CreateTruncating(TInteger.
MaxValue
);
3538
return TInteger.
MaxValue
;
3560
return TInteger.
MaxValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
508
overflow |= TInteger.IsGreaterThanAsUnsigned(answer, TInteger.
MaxValue
+ (isNegative ? TInteger.One : TInteger.Zero));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
95
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (4)
197
if (T.
MaxValue
== T.Zero)
202
ArgumentOutOfRangeException.ThrowIfNegative(T.
MaxValue
);
204
int bitLength = T.
MaxValue
.GetShortestBitLength();
229
if (value <= T.
MaxValue
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
554
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
925
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1353
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
493
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
558
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
565
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
168
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
564
/// <inheritdoc cref="IMinMaxValue{TSelf}.
MaxValue
" />
System.Private.Windows.Core.TestUtilities (8)
XUnit\TestData.cs (8)
42
T.
MaxValue
,
46
T.
MaxValue
/ (T.One + T.One),
62
T.
MaxValue
,
64
T.
MaxValue
/ (T.One + T.One)
69
T.
MaxValue
,
73
T.
MaxValue
/ (T.One + T.One)
82
T.Zero, T.
MaxValue
, T.One, T.
MaxValue
/ (T.One + T.One)
System.Runtime.Numerics (2)
System\Numerics\Complex.Generic.cs (2)
36
private static readonly T s_sqrtRescaleThreshold = T.
MaxValue
/ (T.Sqrt(T.CreateChecked(2)) + T.One);
39
private static readonly T s_asinOverflowThreshold = T.Sqrt(T.
MaxValue
) / T.CreateChecked(2);
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\ParallelLoopState.cs (2)
354
internal TInt _lowestBreakIteration = TInt.
MaxValue
;
376
return lowestBreakIteration == TInt.
MaxValue
? null : long.CreateTruncating(lowestBreakIteration);
System\Threading\Tasks\ParallelRangeManager.cs (2)
183
fromInclusiveInt64 <= long.CreateTruncating(TInt.
MaxValue
) && fromInclusiveInt64 >= long.CreateTruncating(TInt.MinValue) &&
184
toExclusiveInt64 <= long.CreateTruncating(TInt.
MaxValue
) && toExclusiveInt64 >= long.CreateTruncating(TInt.MinValue));