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