Sdílet prostřednictvím


UInt128.INumberBase<UInt128>.TryConvertToTruncating<TOther> Metoda

Definice

Pokusí se převést instanci aktuálního typu na jiný typ a zkrátí všechny hodnoty, které spadají mimo reprezentovatelný rozsah aktuálního typu.

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

Parametry typu

TOther

Typ, na který value se má převést.

Parametry

value
UInt128

Hodnota, která se používá k vytvoření instance .TOther

result
TOther

Když tato metoda vrátí, obsahuje instanci TOther převedenou z value.

Návraty

false pokud TOther se nepodporuje, truev opačném případě .

Implementuje

Platí pro