24 references to 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 (15)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1780nint actualResult = (value >= nint.MaxValue) ? nint.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
148if ((long)uint64Value < nint.MinValue || (long)uint64Value > nint.MaxValue) return null;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
621static nint IMinMaxValue<nint>.MaxValue => MaxValue;
src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
90/// <param name="value">A number that is greater than <see cref="IntPtr.MinValue" />, but less than or equal to <see cref="IntPtr.MaxValue" />.</param> 91/// <returns>A native signed integer, x, such that 0 \u2264 x \u2264 <see cref="IntPtr.MaxValue" />.</returns>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1721nint actualResult = (value >= nint.MaxValue) ? nint.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
366result = (result < 0) ? nint.MaxValue : nint.MinValue; 1877result = (result < 0) ? nint.MaxValue : nint.MinValue;
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1899nint actualResult = (value >= new UInt128(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? nint.MaxValue : (nint)value;
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
1066nint actualResult = (value >= (ulong)nint.MaxValue) ? nint.MaxValue : (nint)value;
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
1069nint actualResult = (value >= (nuint)nint.MaxValue) ? nint.MaxValue : (nint)value;
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (1)
159new List<nint> { nint.MinValue, nint.MaxValue },
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
4790nint actualResult = (value >= nint.MaxValue) ? nint.MaxValue :
System\Numerics\Complex.cs (4)
1887nint actualResult = (value.m_real >= nint.MaxValue) ? nint.MaxValue : 2023nint actualResult = (value.m_real >= nint.MaxValue) ? nint.MaxValue :