Int32.INumberBase<Int32>.TryConvertToTruncating<TOther> Método

Definição

Tenta converter uma instância do tipo atual em outro tipo, truncando todos os valores que estão fora do intervalo representável do tipo atual.

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

Parâmetros de tipo

TOther

O tipo no qual value deve ser convertido.

Parâmetros

value
Int32

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

result
TOther

Quando esse método retorna, contém uma instância de TOther convertida de value.

Retornos

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

Implementações

Aplica-se a