14 implementations of MaxValue
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
489static byte IMinMaxValue<byte>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1451static char IMinMaxValue<char>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1222static decimal IMinMaxValue<decimal>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
931static double IMinMaxValue<double>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
576static short IMinMaxValue<short>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
618static int IMinMaxValue<int>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
615static long IMinMaxValue<long>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
638static nint IMinMaxValue<nint>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
555static sbyte IMinMaxValue<sbyte>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
926static float IMinMaxValue<float>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
494static ushort IMinMaxValue<ushort>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
559static uint IMinMaxValue<uint>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
566static ulong IMinMaxValue<ulong>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
565static 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)
1690TValue chunkLimit = TValue.MaxValue / b.Significand; 1801TValue chunkLimit = TValue.MaxValue / b.Significand; 3517UInt128 maxMagnitude = UInt128.CreateTruncating(TInteger.MaxValue); 3538return TInteger.MaxValue; 3560return TInteger.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
508overflow |= 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)
197if (T.MaxValue == T.Zero) 202ArgumentOutOfRangeException.ThrowIfNegative(T.MaxValue); 204int bitLength = T.MaxValue.GetShortestBitLength(); 229if (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)
42T.MaxValue, 46T.MaxValue / (T.One + T.One), 62T.MaxValue, 64T.MaxValue / (T.One + T.One) 69T.MaxValue, 73T.MaxValue / (T.One + T.One) 82T.Zero, T.MaxValue, T.One, T.MaxValue / (T.One + T.One)
System.Runtime.Numerics (2)
System\Numerics\Complex.Generic.cs (2)
36private static readonly T s_sqrtRescaleThreshold = T.MaxValue / (T.Sqrt(T.CreateChecked(2)) + T.One); 39private static readonly T s_asinOverflowThreshold = T.Sqrt(T.MaxValue) / T.CreateChecked(2);
System.Threading.Tasks.Parallel (4)
System\Threading\Tasks\ParallelLoopState.cs (2)
354internal TInt _lowestBreakIteration = TInt.MaxValue; 376return lowestBreakIteration == TInt.MaxValue ? null : long.CreateTruncating(lowestBreakIteration);
System\Threading\Tasks\ParallelRangeManager.cs (2)
183fromInclusiveInt64 <= long.CreateTruncating(TInt.MaxValue) && fromInclusiveInt64 >= long.CreateTruncating(TInt.MinValue) && 184toExclusiveInt64 <= long.CreateTruncating(TInt.MaxValue) && toExclusiveInt64 >= long.CreateTruncating(TInt.MinValue));