共用方式為


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的範圍之外,就會飽和。

實作

適用於