INumberBase<TSelf>.TryConvertFromTruncating<TOther> Método

Definição

Tenta converter um valor em uma instância do tipo atual, truncando todos os valores que estejam fora do intervalo representável do tipo atual.

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

Parâmetros de tipo

TOther

O tipo de value.

Parâmetros

value
TOther

O valor usado para criar a instância de TSelf.

result
TSelf

Quando esse método é retornado, contém uma instância de TSelf conversão de value.

Retornos

false se TOther não houver suporte; caso contrário, true.

Aplica-se a