UInt128.INumberBase<UInt128>.TryConvertToTruncating<TOther> Metode

Definisi

Mencoba mengonversi instans jenis saat ini ke jenis lain, memotong nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

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

Jenis parameter

TOther

Jenis yang value harus dikonversi.

Parameter

value
UInt128

Nilai yang digunakan untuk membuat instans TOther.

result
TOther

Ketika metode ini kembali, berisi instans yang TOther dikonversi dari value.

Mengembalikan

false jika TOther tidak didukung; jika tidak, true.

Penerapan

Berlaku untuk