UIntPtr.CreateSaturating<TOther>(TOther) 方法

定义

从值创建当前类型的实例,使超出当前类型的可表示范围的任何值饱和。

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static UIntPtr CreateSaturating(TOther value) = System::Numerics::INumberBase<UIntPtr>::CreateSaturating;
public static UIntPtr CreateSaturating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> unativeint (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As UIntPtr

类型参数

TOther

value 的类型。

参数

value
TOther

用于创建 实例的值 TSelf

返回

UIntPtr

unativeint

value创建的 实例TSelf,如果value超出 的可表示范围TSelf,则饱和。

实现

适用于