Int128.INumberBase<Int128>.TryConvertToSaturating<TOther> 方法

定義

嘗試將目前類型的實例轉換成另一種類型,使落在目前類型可表示範圍以外的任何值飽和。

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<System.Int128>.TryConvertToSaturating(Int128 value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<Int128>::TryConvertToSaturating;
static bool INumberBase<Int128>.TryConvertToSaturating<TOther> (Int128 value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Int128>.TryConvertToSaturating : Int128 * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToSaturating(Of TOther As INumberBase(Of TOther)) (value As Int128, ByRef result As TOther) As Boolean Implements INumberBase(Of Int128).TryConvertToSaturating

類型參數

TOther

應該轉換至的 value 型別。

參數

value
Int128

用來建立 實例的值 TOther

result
TOther

當這個方法傳回時,包含從 value 轉換的 TOther 實例。

傳回

false 如果 TOther 不支援 ,則為 ,否則為 true

實作

適用於