21 references to MaxValue
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
293
ArgumentOutOfRangeException.ThrowIfGreaterThan(inputLength, nint.
MaxValue
);
System.IO.MemoryMappedFiles (1)
Microsoft\Win32\SafeMemoryMappedFileHandle.Unix.cs (1)
64
handlePtr = IntPtr.
MaxValue
;
System.Linq (1)
System\Linq\Sequence.cs (1)
94
if (typeof(T) == typeof(nint) && (range = TryUseRange<Int128>(start, endInclusive, step, nint.
MaxValue
)) is not null) return range;
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1751
nint actualResult = (value >= nint.
MaxValue
) ? nint.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
634
static nint IMinMaxValue<nint>.MaxValue =>
MaxValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
87
/// <param name="value">A number that is greater than <see cref="IntPtr.MinValue" />, but less than or equal to <see cref="IntPtr.
MaxValue
" />.</param>
88
/// <returns>A native signed integer, x, such that 0 \u2264 x \u2264 <see cref="IntPtr.
MaxValue
" />.</returns>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1875
nint actualResult = ((float)value >= nint.
MaxValue
) ? nint.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1648
nint actualResult = (value >= nint.
MaxValue
) ? nint.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
400
result = (result < 0) ? nint.
MaxValue
: nint.MinValue;
1890
result = (result < 0) ? nint.
MaxValue
: nint.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1932
nint actualResult = (value >= new UInt128(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? nint.
MaxValue
: (nint)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
1081
nint actualResult = (value >= (ulong)nint.
MaxValue
) ? nint.
MaxValue
: (nint)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
1076
nint actualResult = (value >= (nuint)nint.
MaxValue
) ? nint.
MaxValue
: (nint)value;
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (2)
4874
nint actualResult = (value >= nint.
MaxValue
) ? nint.
MaxValue
: