IntPtr.INumberBase<IntPtr>.TryConvertToTruncating<TOther> Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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<nint>.TryConvertToTruncating(IntPtr value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<IntPtr>::TryConvertToTruncating;
static bool INumberBase<IntPtr>.TryConvertToTruncating<TOther>(IntPtr value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<nint>.TryConvertToTruncating : nativeint * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As IntPtr, ByRef result As TOther) As Boolean Implements INumberBase(Of IntPtr).TryConvertToTruncating
Parametry typu
- TOther
Typ, na který value se má převést.
Parametry
- value
-
IntPtr
nativeint
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ě .