20 references to MaxValue
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
154if (uint64Value > nuint.MaxValue) return null;
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2147nuint actualResult = (value == PositiveInfinity) ? nuint.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1848nuint actualResult = (value >= nuint.MaxValue) ? nuint.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.cs (2)
89return ((elementSize >= multiplyNoOverflow) || (elementCount >= multiplyNoOverflow)) && (elementSize > 0) && ((nuint.MaxValue / elementSize) < elementCount) ? nuint.MaxValue : (elementCount * elementSize);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
81private static nuint Uninitialized => nuint.MaxValue;
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
47return (T)(object)nuint.MaxValue;
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
757Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char)); 987Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char));
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (2)
40Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char)); 204Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char));
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
554static nuint IMinMaxValue<nuint>.MaxValue => MaxValue;
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (1)
160new List<nuint> { nuint.MinValue, nuint.MaxValue }
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
4837nuint actualResult = (value >= nuint.MaxValue) ? nuint.MaxValue :
System\Numerics\Complex.cs (4)
1941nuint actualResult = (value.m_real >= nuint.MaxValue) ? nuint.MaxValue : 2077nuint actualResult = (value.m_real >= nuint.MaxValue) ? nuint.MaxValue :