21 references to MaxValue
System.IO.MemoryMappedFiles (1)
Microsoft\Win32\SafeMemoryMappedFileHandle.Unix.cs (1)
64
handlePtr = IntPtr.
MaxValue
;
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1780
nint actualResult = (value >= nint.
MaxValue
) ? nint.
MaxValue
:
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
148
if ((long)uint64Value < nint.MinValue || (long)uint64Value > nint.
MaxValue
) return null;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
621
static 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)
1721
nint actualResult = (value >= nint.
MaxValue
) ? nint.
MaxValue
:
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1899
nint 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)
1066
nint actualResult = (value >= (ulong)nint.
MaxValue
) ? nint.
MaxValue
: (nint)value;
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
1069
nint actualResult = (value >= (nuint)nint.
MaxValue
) ? nint.
MaxValue
: (nint)value;
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (1)
159
new List<nint> { nint.MinValue, nint.
MaxValue
},
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
4763
nint actualResult = (value >= nint.
MaxValue
) ? nint.
MaxValue
:
System\Numerics\Complex.cs (4)
1887
nint actualResult = (value.m_real >= nint.
MaxValue
) ? nint.
MaxValue
:
2023
nint actualResult = (value.m_real >= nint.
MaxValue
) ? nint.
MaxValue
: