语言

UIntPtr.INumberBase<UIntPtr>.MaxMagnitude(UIntPtr, UIntPtr) 方法

定义

比较两个值与计算值更大。

 static UIntPtr System.Numerics.INumberBase<nuint>.MaxMagnitude(UIntPtr x, UIntPtr y) = System::Numerics::INumberBase<UIntPtr>::MaxMagnitude;
static UIntPtr INumberBase<UIntPtr>.MaxMagnitude(UIntPtr x, UIntPtr y);
static member System.Numerics.INumberBase<nuint>.MaxMagnitude : unativeint * unativeint -> unativeint
 Shared Function MaxMagnitude (x As UIntPtr, y As UIntPtr) As UIntPtr Implements INumberBase(Of UIntPtr).MaxMagnitude

参数

x
UIntPtr

unativeint

要与 y.. 进行比较的值。

y
UIntPtr

unativeint

要与 x.. 进行比较的值。

返回

UIntPtr

unativeint

x 如果大于 y,则为 ;否则为 y。

实现

适用于