Lingua

INumberBase<TSelf>.TryConvertToTruncating<TOther> Metodo

Definizione

Tenta di convertire un'istanza del tipo corrente in un altro tipo, troncando tutti i valori che non rientrano nell'intervallo rappresentabile del tipo corrente.

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

Parametri di tipo

TOther

Tipo in cui value deve essere convertito.

Parametri

value
TSelf

Valore utilizzato per creare l'istanza di TOther.

result
TOther

Quando termina, questo metodo contiene un'istanza di TOther convertita da value.

Valori restituiti

false se TOther non è supportato; in caso contrario, true.

Si applica a