21 references to MaxValue
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
293ArgumentOutOfRangeException.ThrowIfGreaterThan(inputLength, nint.MaxValue);
System.IO.MemoryMappedFiles (1)
Microsoft\Win32\SafeMemoryMappedFileHandle.Unix.cs (1)
64handlePtr = IntPtr.MaxValue;
System.Linq (1)
System\Linq\Sequence.cs (1)
94if (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)
1751nint actualResult = (value >= nint.MaxValue) ? nint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
634static 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)
1875nint actualResult = ((float)value >= nint.MaxValue) ? nint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1648nint actualResult = (value >= nint.MaxValue) ? nint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
400result = (result < 0) ? nint.MaxValue : nint.MinValue; 1890result = (result < 0) ? nint.MaxValue : nint.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1932nint 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)
1081nint actualResult = (value >= (ulong)nint.MaxValue) ? nint.MaxValue : (nint)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
1076nint actualResult = (value >= (nuint)nint.MaxValue) ? nint.MaxValue : (nint)value;
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (2)
4874nint actualResult = (value >= nint.MaxValue) ? nint.MaxValue :